diff --git a/.gitattributes b/.gitattributes index 917237b2f799b04f0ad1aedd321fb4acc3afda16..a22eac7bf31e0425d937c533c2ced5c8d5896b64 100644 --- a/.gitattributes +++ b/.gitattributes @@ -62,3 +62,11 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text 20k/corpus.jsonl filter=lfs diff=lfs merge=lfs -text 50k/corpus.jsonl filter=lfs diff=lfs merge=lfs -text 5k/corpus.jsonl filter=lfs diff=lfs merge=lfs -text +100k/corpus.jsonl filter=lfs diff=lfs merge=lfs -text +100k/tier0-2/corpus.jsonl filter=lfs diff=lfs merge=lfs -text +10k/tier0-2/corpus.jsonl filter=lfs diff=lfs merge=lfs -text +200k/corpus.jsonl filter=lfs diff=lfs merge=lfs -text +200k/tier0-2/corpus.jsonl filter=lfs diff=lfs merge=lfs -text +20k/tier0-2/corpus.jsonl filter=lfs diff=lfs merge=lfs -text +50k/tier0-2/corpus.jsonl filter=lfs diff=lfs merge=lfs -text +5k/tier0-2/corpus.jsonl filter=lfs diff=lfs merge=lfs -text diff --git a/100k/corpus-full.parquet b/100k/corpus-full.parquet new file mode 100644 index 0000000000000000000000000000000000000000..7b09ad18d394ee932913ecd9e8955c80c929c67e --- /dev/null +++ b/100k/corpus-full.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:29e2c389fe84c44fe4af175ed9fb6a77859127d110da758f82948f6c1e7d29ab +size 54542452039 diff --git a/100k/corpus-geo.parquet b/100k/corpus-geo.parquet new file mode 100644 index 0000000000000000000000000000000000000000..4b206038d66f1d85b6635616e71cb6eae14f97be --- /dev/null +++ b/100k/corpus-geo.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3aa6e1411557df5fdc750a004e71e9a509e1365935c7dacf6f6a40a44d61b074 +size 48020003878 diff --git a/100k/corpus-renders.parquet b/100k/corpus-renders.parquet new file mode 100644 index 0000000000000000000000000000000000000000..de767653be766e0c6631fe6b3b7d352bc7dd2174 --- /dev/null +++ b/100k/corpus-renders.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:62558ead3aa74e9b852de4afacecac7e518ac7ff8c9575c20d2e896fa6ace939 +size 38300856064 diff --git a/100k/corpus-step.parquet b/100k/corpus-step.parquet new file mode 100644 index 0000000000000000000000000000000000000000..2d4131e23f59fc80b7c2e4b51f7d212f35ac4d56 --- /dev/null +++ b/100k/corpus-step.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:04ca535dbbe9193429dfebbf56fd2ce53e89cf37af7dc6566829896b680d9477 +size 6569493463 diff --git a/100k/corpus-stl.parquet b/100k/corpus-stl.parquet new file mode 100644 index 0000000000000000000000000000000000000000..590da069d60b6c33400d164a61e51fe9f3dfab7d --- /dev/null +++ b/100k/corpus-stl.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b429ab2f35d1519e71e3351e55e14c495c21767e7cb8c367aff5d73d72cb6263 +size 9766193116 diff --git a/100k/corpus.jsonl b/100k/corpus.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..7ffd1b1f784028950aeebd025885ab5556537857 --- /dev/null +++ b/100k/corpus.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ec63f7a417c48c9ecdeaa3666165786341a770279d897c34df3c0d9521def186 +size 279699548 diff --git a/100k/tier0-2/corpus-full.parquet b/100k/tier0-2/corpus-full.parquet new file mode 100644 index 0000000000000000000000000000000000000000..ee62e84b847466879aa972fc177f598d7e5cc185 --- /dev/null +++ b/100k/tier0-2/corpus-full.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2bfc0087f6a7ca0d5b779062b53915de9b8321f08f2ff0369afd91b7d82985e1 +size 48815530194 diff --git a/100k/tier0-2/corpus-geo.parquet b/100k/tier0-2/corpus-geo.parquet new file mode 100644 index 0000000000000000000000000000000000000000..3055b8016f55463b36081fe09d9129734628a053 --- /dev/null +++ b/100k/tier0-2/corpus-geo.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:651e7e989be501873a7f94af818edfb132942939e1c0db2844e3829b04aeef54 +size 43199527463 diff --git a/100k/tier0-2/corpus-renders.parquet b/100k/tier0-2/corpus-renders.parquet new file mode 100644 index 0000000000000000000000000000000000000000..4ca146e7a088b2e9eeb5f68e0f2b278d8fb31c59 --- /dev/null +++ b/100k/tier0-2/corpus-renders.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9f559f58dae79ef616155ce6d04c4ba968cd4ac6fcf409b7a40e34ca5fa9c838 +size 34715506981 diff --git a/100k/tier0-2/corpus-step.parquet b/100k/tier0-2/corpus-step.parquet new file mode 100644 index 0000000000000000000000000000000000000000..bdf64168b41749208e5bdf44bb542a455b7eb7e3 --- /dev/null +++ b/100k/tier0-2/corpus-step.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:89846d7b873f2978005dda627f524892aec40623fa0515891be565e02b0d220c +size 5657329324 diff --git a/100k/tier0-2/corpus-stl.parquet b/100k/tier0-2/corpus-stl.parquet new file mode 100644 index 0000000000000000000000000000000000000000..47ca8e70cc3ad62949151e7fbb2a70dcf6e80e74 --- /dev/null +++ b/100k/tier0-2/corpus-stl.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2a20574161db93ae62339c58cc17aec947c793d3f0f0657f539751290cbf5c84 +size 8525347075 diff --git a/100k/tier0-2/corpus.jsonl b/100k/tier0-2/corpus.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..107cfd85cd6cca1907ddd480c7809be578f14cf4 --- /dev/null +++ b/100k/tier0-2/corpus.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5b6a3f9dbfeea03f619aff56820cfbec9976c62dc494547aca9732bb32f83624 +size 247280355 diff --git a/10k/README.md b/10k/README.md new file mode 100644 index 0000000000000000000000000000000000000000..f5ff71ebb312618a5730029474b1fb7a7decc529 --- /dev/null +++ b/10k/README.md @@ -0,0 +1,20 @@ +# CadQuarry — `10k` (10,000 parts) + +Generator: **CadQuarry v0.1.0** · Seed: **20260603** · Rows: **10,000** +License: **CC0-1.0** (data) · Generator code: **Apache-2.0** + +Regenerate this exact corpus from the [generator](https://github.com/jacobjennings/CadQuarry): + +```bash +cadquarry generate --seed 20260603 --count 10000 \ + --config configs/default.toml --out 10k/ +python scripts/publish_to_hf.py --sizes 10k # pack + upload +``` + +`corpus.jsonl` has one row per part with the parametric `source` and `params` +inlined. Load it with: + +```python +from datasets import load_dataset +ds = load_dataset("jacobjennings/cadquarry", "10k", split="train") +``` diff --git a/10k/corpus-full.parquet b/10k/corpus-full.parquet new file mode 100644 index 0000000000000000000000000000000000000000..176d65b322f637b1461f55eeb945970dbfa00fdd --- /dev/null +++ b/10k/corpus-full.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8eed4165dac50be6a44ef31efc1f905440b2dc91709c6a11e1fda8dd0e7fead0 +size 5831671242 diff --git a/10k/corpus-geo.parquet b/10k/corpus-geo.parquet new file mode 100644 index 0000000000000000000000000000000000000000..b4b66849740f47158bb0f23518f289600fadf6bf --- /dev/null +++ b/10k/corpus-geo.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:354776f611563c1ea76cd799e6ac360932ada87b9cf36ea02293c9cccd5b419f +size 4998974782 diff --git a/10k/corpus-renders.parquet b/10k/corpus-renders.parquet new file mode 100644 index 0000000000000000000000000000000000000000..74694a1100f6accf86c09b1fe6581173bb640b1b --- /dev/null +++ b/10k/corpus-renders.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7451e2348040b30889198cb040f6d0a78176a9f079b3af45ec9c4c2c726f8468 +size 3846363609 diff --git a/10k/corpus-step.parquet b/10k/corpus-step.parquet new file mode 100644 index 0000000000000000000000000000000000000000..c5a71b58e57548ce1037a65de65a2340fe6815ae --- /dev/null +++ b/10k/corpus-step.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b79af27348a687ce07f16f199cfcd25f81fe99d0a90ea08bef7b2bcf9e333fb +size 837453119 diff --git a/10k/corpus-stl.parquet b/10k/corpus-stl.parquet new file mode 100644 index 0000000000000000000000000000000000000000..51c78e1f4690fd6f287c47613a42a82a6119f212 --- /dev/null +++ b/10k/corpus-stl.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aad0d8dd7a550806a1c458ada089b30d26ed8bdcf5add707a66586f86ae8c96c +size 1157367832 diff --git a/10k/corpus.jsonl b/10k/corpus.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..6de4edde32998224461a8b05b015ec0c1f9dddd0 --- /dev/null +++ b/10k/corpus.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:892759fb0fce768a211b835f0ab77aeac381245bef2ff9d45d3843aa9c6b6333 +size 27962301 diff --git a/10k/tier0-2/corpus-full.parquet b/10k/tier0-2/corpus-full.parquet new file mode 100644 index 0000000000000000000000000000000000000000..c2720dbc706809bb0547528fe241682c0d218de1 --- /dev/null +++ b/10k/tier0-2/corpus-full.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:00e55e15177c138315afcfc72a20aa459f6ca425fb8530bccaf91355e52e92ba +size 5209067703 diff --git a/10k/tier0-2/corpus-geo.parquet b/10k/tier0-2/corpus-geo.parquet new file mode 100644 index 0000000000000000000000000000000000000000..e0d44dda0a5bfb3f95b8b80703fb7fd07e682e92 --- /dev/null +++ b/10k/tier0-2/corpus-geo.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0904425ee345075b15e7c7d57ee64392476ca0282886f299e87889858b79e76c +size 4478094772 diff --git a/10k/tier0-2/corpus-renders.parquet b/10k/tier0-2/corpus-renders.parquet new file mode 100644 index 0000000000000000000000000000000000000000..3c461936aec3bc58c000a0050adcf7ecf0923836 --- /dev/null +++ b/10k/tier0-2/corpus-renders.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:521f1a21dc7864773503e34eb0a24418d7b33a6b21b3f2c4f0a44d4cdf07d8b0 +size 3465868349 diff --git a/10k/tier0-2/corpus-step.parquet b/10k/tier0-2/corpus-step.parquet new file mode 100644 index 0000000000000000000000000000000000000000..4729cafff465ad8fb2c83e603d54fe8c736ea7f3 --- /dev/null +++ b/10k/tier0-2/corpus-step.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:936653097d13cd107a37eae9dea168326c250782669f76e777fab09cd354c46a +size 735134155 diff --git a/10k/tier0-2/corpus-stl.parquet b/10k/tier0-2/corpus-stl.parquet new file mode 100644 index 0000000000000000000000000000000000000000..e46f00c9e03de12ba7e23ed9e1d5602e4db242ed --- /dev/null +++ b/10k/tier0-2/corpus-stl.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f34fc64b14ec7026a563e769a23fb5588d51366adef1d5f427149bc6d3e71ab +size 1016387647 diff --git a/10k/tier0-2/corpus.jsonl b/10k/tier0-2/corpus.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..85d8d20b6be7a002bf1bf9835dd133dfeddccef1 --- /dev/null +++ b/10k/tier0-2/corpus.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7c5deb9f4f081bf97b3405cb091feba79f21a600267043374851acfd6e4ceec8 +size 24552972 diff --git a/1k/README.md b/1k/README.md new file mode 100644 index 0000000000000000000000000000000000000000..122b8a6106ec68bb92348312e8c0ce6aa789462b --- /dev/null +++ b/1k/README.md @@ -0,0 +1,20 @@ +# CadQuarry — `1k` (1,000 parts) + +Generator: **CadQuarry v0.1.0** · Seed: **1234** · Rows: **1,000** +License: **CC0-1.0** (data) · Generator code: **Apache-2.0** + +Regenerate this exact corpus from the [generator](https://github.com/jacobjennings/CadQuarry): + +```bash +cadquarry generate --seed 1234 --count 1000 \ + --config configs/default.toml --out 1k/ +python scripts/publish_to_hf.py --sizes 1k # pack + upload +``` + +`corpus.jsonl` has one row per part with the parametric `source` and `params` +inlined. Load it with: + +```python +from datasets import load_dataset +ds = load_dataset("jacobjennings/cadquarry", "1k", split="train") +``` diff --git a/1k/corpus-full.parquet b/1k/corpus-full.parquet new file mode 100644 index 0000000000000000000000000000000000000000..d40a2cda992ae6afca7d8e2eef1e3b6d6942a9e4 --- /dev/null +++ b/1k/corpus-full.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c91712f727d1940836fd37a54230310238231cb22f6f3690a1b1cdb2e634262 +size 640607406 diff --git a/1k/corpus-geo.parquet b/1k/corpus-geo.parquet new file mode 100644 index 0000000000000000000000000000000000000000..882d6333b3c54407a2f980da5aff2551e0fe1b6b --- /dev/null +++ b/1k/corpus-geo.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b7d98edb5c71300d4dd5b82e53939894b39e648f857bd30ca3af0c9e05597571 +size 533321649 diff --git a/1k/corpus-renders.parquet b/1k/corpus-renders.parquet new file mode 100644 index 0000000000000000000000000000000000000000..76099c3e69fba698344e1194b904e32f0cec70bc --- /dev/null +++ b/1k/corpus-renders.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e66801fa067bfbc645fc9d61b20b6d4174277333a3d877396aec5084a57964aa +size 386914914 diff --git a/1k/corpus-step.parquet b/1k/corpus-step.parquet new file mode 100644 index 0000000000000000000000000000000000000000..e311d4e97a50c0b99d4d8c31e8cc72e0d7052326 --- /dev/null +++ b/1k/corpus-step.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3982a3d1f4c13e609c20e06a41fc9f1b22cff526eb7ae09e5f1a3f4314717364 +size 107764977 diff --git a/1k/corpus-stl.parquet b/1k/corpus-stl.parquet new file mode 100644 index 0000000000000000000000000000000000000000..1a67e019dd36d12e9c6dbe7906f8eb6b486ec2c9 --- /dev/null +++ b/1k/corpus-stl.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:698396ad323f534b9063a6ace7a8e686a3ae559402a621abb107d49a52bafe36 +size 146885957 diff --git a/1k/corpus.jsonl b/1k/corpus.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..2bcb226773c152ac8bcdfb07b0f278452c8d6fb0 --- /dev/null +++ b/1k/corpus.jsonl @@ -0,0 +1,1000 @@ +{"part_id": "bracket_498d66f6_0000", "family": "bracket", "tier": 2, "seed": 1234003702, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d31885349362dd20", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27600.0, "surface_area": 9750.0, "principal_moments": [7350000.0, 9890000.0, 12999999.999999998], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 44.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30.11, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 10.5, "min": 4.0, "max": 15.1, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003702 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 44.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30.11, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 10.5, \"min\": 4.0, \"max\": 15.1, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d66f7_0001", "family": "block", "tier": 1, "seed": 1234003703, "symmetry": "none", "op_count": 2, "ir_hash": "c78798dd970628aa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 114000.0, "surface_area": 19900.0, "principal_moments": [38100000.0, 54499999.99999999, 74700000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 31.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 55.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.2, "min": 2.0, "max": 9.1, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003703 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 31.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 55.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 9.1, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d66f8_0002", "family": "flanged", "tier": 1, "seed": 1234003704, "symmetry": "radial", "op_count": 2, "ir_hash": "8b78b605f8954c8b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 439000.0, "surface_area": 70800.0, "principal_moments": [709000000.0, 709000000.0, 718000000.0], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 85, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 89.3, "min": 26.8, "max": 223.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 45.3, "min": 2.0, "max": 59.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 147.2, "min": 110.5, "max": 255.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.8, "min": 2.3, "max": 35.7, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 44.2, "min": 29.4, "max": 66.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003704 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 89.3, \"min\": 26.8, \"max\": 223.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 45.3, \"min\": 2.0, \"max\": 59.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 147.2, \"min\": 110.5, \"max\": 255.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.8, \"min\": 2.3, \"max\": 35.7, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 44.2, \"min\": 29.4, \"max\": 66.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d66f9_0003", "family": "revolved", "tier": 1, "seed": 1234003705, "symmetry": "none", "op_count": 1, "ir_hash": "56c47781b75024db", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 196000.0, "surface_area": 37200.0, "principal_moments": [180000000.0, 180000000.0, 290000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 54.13, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 51.1, "min": 15.3, "max": 153.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 31.3, "min": 2.0, "max": 37.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 119.1, "min": 65.0, "max": 162.4, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 13.3, "min": 4.0, "max": 25.6, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003705 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 54.13, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 51.1, \"min\": 15.3, \"max\": 153.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 31.3, \"min\": 2.0, \"max\": 37.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 119.1, \"min\": 65.0, \"max\": 162.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 13.3, \"min\": 4.0, \"max\": 25.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d66fa_0004", "family": "plate", "tier": 1, "seed": 1234003706, "symmetry": "radial", "op_count": 2, "ir_hash": "03d5fab1f1448a65", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1510.0, "surface_area": 1260.0, "principal_moments": [23300.0, 146000.0, 165000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"plate_w": {"type": "float", "default": 33.98, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 12.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 10.2, "min": 6.8, "max": 15.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003706 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 33.98, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 12.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 10.2, \"min\": 6.8, \"max\": 15.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d66fb_0005", "family": "revolved", "tier": 2, "seed": 1234003707, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "3a43112a46716ade", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5430.0, "surface_area": 2730.0, "principal_moments": [149000.0, 834000.0, 834000.0], "n_faces": 8, "n_edges": 12, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 14.05, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 40.6, "min": 12.2, "max": 121.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 4.9, "min": 2.0, "max": 9.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 0.62, "min": 0.25, "max": 1.86, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 3.7, "min": 1.48, "max": 11.1, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 19.8, "min": 6.1, "max": 34.5, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003707 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 14.05, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 40.6, \"min\": 12.2, \"max\": 121.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.0, \"max\": 9.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 0.62, \"min\": 0.25, \"max\": 1.86, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 3.7, \"min\": 1.48, \"max\": 11.1, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 19.8, \"min\": 6.1, \"max\": 34.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d66fc_0006", "family": "threaded", "tier": 0, "seed": 1234003708, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "7fbd5e72a1a8b5b8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3150.0, "surface_area": 2350.0, "principal_moments": [33100.0, 629000.0, 629000.0], "n_faces": 330, "n_edges": 848, "n_vertices": 520}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 48.5, "min": 19.4, "max": 97.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003708 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 48.5, \"min\": 19.4, \"max\": 97.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d66fd_0007", "family": "gear", "tier": 1, "seed": 1234003709, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "e5e9d11256025caa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 46600.0, "surface_area": 12000.0, "principal_moments": [11200000.0, 11200000.0, 19300000.0], "n_faces": 87, "n_edges": 255, "n_vertices": 170}, "params": {"module": {"type": "float", "default": 4.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 14, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 19.8, "min": 7.9, "max": 49.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 7.1, "min": 2.0, "max": 27.6, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003709 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 14, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 19.8, \"min\": 7.9, \"max\": 49.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 7.1, \"min\": 2.0, \"max\": 27.6, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d66fe_0008", "family": "flanged", "tier": 2, "seed": 1234003710, "symmetry": "none", "op_count": 3, "ir_hash": "705ff62c2fe47262", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18200.0, "surface_area": 8000.0, "principal_moments": [2670000.0, 3680000.0, 3680000.0], "n_faces": 80, "n_edges": 216, "n_vertices": 127}, "params": {"outer_d": {"type": "float", "default": 26.39, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 36.4, "min": 10.9, "max": 91.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 11.0, "min": 2.0, "max": 18.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 50.3, "min": 34.3, "max": 79.2, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 2.3, "min": 0.7, "max": 14.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 15.1, "min": 10.1, "max": 22.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003710 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 26.39, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 36.4, \"min\": 10.9, \"max\": 91.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 11.0, \"min\": 2.0, \"max\": 18.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 50.3, \"min\": 34.3, \"max\": 79.2, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 2.3, \"min\": 0.7, \"max\": 14.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 15.1, \"min\": 10.1, \"max\": 22.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z or 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6703_0013", "family": "plate", "tier": 1, "seed": 1234003715, "symmetry": "radial", "op_count": 2, "ir_hash": "35e0c5ee9234f032", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6930.0, "surface_area": 2890.0, "principal_moments": [206000.0, 1280000.0, 1370000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"plate_w": {"type": "float", "default": 46.02, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 15.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 13.8, "min": 9.2, "max": 20.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003715 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 46.02, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 15.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 13.8, \"min\": 9.2, \"max\": 20.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6704_0014", "family": "profiled", "tier": 2, "seed": 1234003716, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "226961d6386fffc4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 271000.0, "surface_area": 54000.0, "principal_moments": [92399999.99999999, 1270000000.0, 1270000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 45.88, "min": 22.9, "max": 91.8, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 232.5, "min": 69.8, "max": 697.5, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 24.9, "min": 2.0, "max": 36.7, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003716 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45.88, \"min\": 22.9, \"max\": 91.8, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 232.5, \"min\": 69.8, \"max\": 697.5, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 24.9, \"min\": 2.0, \"max\": 36.7, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6705_0015", "family": "plate", "tier": 0, "seed": 1234003717, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "b4087b613c81388f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39000.0, "surface_area": 17400.0, "principal_moments": [22400000.0, 28899999.999999996, 51199999.99999999], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 94.19, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 82.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003717 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 94.19, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 82.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6706_0016", "family": "compound", "tier": 1, "seed": 1234003718, "symmetry": "none", "op_count": 2, "ir_hash": "7251db0fc0b9b6c4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24500.0, "surface_area": 6860.0, "principal_moments": [3590000.0, 4630000.0, 4630000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 19.77, "min": 11.9, "max": 31.6, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 19.5, "min": 7.8, "max": 48.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 20.6, "min": 10.3, "max": 27.4, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 22.4, "min": 6.7, "max": 56.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 9.1, "min": 2.0, "max": 14.8, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003718 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 19.77, \"min\": 11.9, \"max\": 31.6, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 19.5, \"min\": 7.8, \"max\": 48.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 20.6, \"min\": 10.3, \"max\": 27.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 22.4, \"min\": 6.7, \"max\": 56.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 9.1, \"min\": 2.0, \"max\": 14.8, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6708_0018", "family": "flanged", "tier": 2, "seed": 1234003720, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "53a9a28f6a9a4648", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9550.0, "surface_area": 5070.0, "principal_moments": [962000.0, 962000.0, 1270000.0], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 25, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 18.9, "min": 5.7, "max": 47.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 8.0, "min": 2.0, "max": 17.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 41.0, "min": 32.5, "max": 75.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.1, "min": 0.9, "max": 7.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 12.3, "min": 8.2, "max": 18.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003720 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 18.9, \"min\": 5.7, \"max\": 47.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 17.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 41.0, \"min\": 32.5, \"max\": 75.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.1, \"min\": 0.9, \"max\": 7.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 12.3, \"min\": 8.2, \"max\": 18.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6709_0019", "family": "bracket", "tier": 3, "seed": 1234003721, "symmetry": "none", "op_count": 1, "ir_hash": "a63b8666443eb449", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13100.0, "surface_area": 10100.0, "principal_moments": [3890000.0, 13899999.999999998, 17100000.0], "n_faces": 15, "n_edges": 53, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 86.64, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 2.7, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003721 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 86.64, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.7, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d670a_0020", "family": "bracket", "tier": 1, "seed": 1234003722, "symmetry": "none", "op_count": 1, "ir_hash": "46ec1f6cf668606e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12700.0, "surface_area": 5930.0, "principal_moments": [2210000.0, 2590000.0, 3660000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 33.64, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 36.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 22.94, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 9.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003722 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 33.64, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 36.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 22.94, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 9.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d670b_0021", "family": "revolved", "tier": 1, "seed": 1234003723, "symmetry": "none", "op_count": 1, "ir_hash": "b62b45ae2b940b1e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 266000.0, "surface_area": 42000.0, "principal_moments": [98699999.99999999, 707000000.0, 707000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 49.67, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 172.1, "min": 51.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 22.3, "min": 2.0, "max": 34.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003723 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 49.67, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 172.1, \"min\": 51.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 22.3, \"min\": 2.0, \"max\": 34.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d670c_0022", "family": "bracket", "tier": 2, "seed": 1234003724, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "1f4cd8a9dac69311", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7090.0, "surface_area": 3620.0, "principal_moments": [309000.0, 2200000.0, 2240000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 15.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 31.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 6.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 5.8, "min": 3.0, "max": 7.5, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003724 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 15.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 31.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 6.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.8, \"min\": 3.0, \"max\": 7.5, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d670d_0023", "family": "revolved", "tier": 0, "seed": 1234003725, "symmetry": "radial", "op_count": 1, "ir_hash": "c4ca459b817f874b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 190000.0, "surface_area": 31800.0, "principal_moments": [103000000.0, 167000000.0, 167000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 60, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 101.0, "min": 30.3, "max": 303.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003725 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 101.0, \"min\": 30.3, \"max\": 303.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d670e_0024", "family": "revolved", "tier": 1, "seed": 1234003726, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "9959875f129fb8c4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 134000.0, "surface_area": 28100.0, "principal_moments": [42300000.0, 139000000.0, 139000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 45.84, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 121.9, "min": 36.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003726 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45.84, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 121.9, \"min\": 36.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d670f_0025", "family": "gear", "tier": 2, "seed": 1234003727, "symmetry": "none", "op_count": 1, "ir_hash": "9ab6c4907c35954e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17200.0, "surface_area": 7120.0, "principal_moments": [3300000.0, 3300000.0, 6410000.0], "n_faces": 153, "n_edges": 453, "n_vertices": 302}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 25, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 8.0, "min": 3.2, "max": 20.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 19.1, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.14, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.35, "min": 0.0, "max": 1.0, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 9.8, "min": 2.0, "max": 27.0, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003727 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 25, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.2, \"max\": 20.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 19.1, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.14, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.35, \"min\": 0.0, \"max\": 1.0, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 9.8, \"min\": 2.0, \"max\": 27.0, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6710_0026", "family": "revolved", "tier": 0, "seed": 1234003728, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "6ce47941b45a21c1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14300.0, "surface_area": 6370.0, "principal_moments": [1000000.0, 3440000.0, 3440000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 21.6, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 58.7, "min": 17.6, "max": 176.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003728 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 21.6, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 58.7, \"min\": 17.6, \"max\": 176.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6711_0027", "family": "plate", "tier": 1, "seed": 1234003729, "symmetry": "none", "op_count": 2, "ir_hash": "5a0e52192f7e441c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 93700.0, "surface_area": 27300.0, "principal_moments": [79200000.0, 107000000.0, 185000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 117.09, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 100.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003729 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 117.09, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 100.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6712_0028", "family": "block", "tier": 1, "seed": 1234003730, "symmetry": "none", "op_count": 2, "ir_hash": "f9055d8d0f49229d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10700.0, "surface_area": 4800.0, "principal_moments": [544000.0, 1500000.0, 1630000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 20, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 15.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 38.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003730 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 15.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 38.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6713_0029", "family": "bracket", "tier": 3, "seed": 1234003731, "symmetry": "none", "op_count": 1, "ir_hash": "65a6beb9751872f4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20400.0, "surface_area": 8250.0, "principal_moments": [3440000.0, 15699999.999999998, 18100000.0], "n_faces": 17, "n_edges": 39, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 83.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 58.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 18.13, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 7.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 7.2, "min": 4.0, "max": 9.1, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003731 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 83.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 58.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 18.13, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 7.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 7.2, \"min\": 4.0, \"max\": 9.1, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6714_0030", "family": "profiled", "tier": 2, "seed": 1234003732, "symmetry": "none", "op_count": 1, "ir_hash": "432050d5920522d6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 245000.0, "surface_area": 73600.0, "principal_moments": [92099999.99999999, 1880000000.0, 1880000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 45, "min": 22.5, "max": 90.0, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 300.0, "min": 90.0, "max": 900.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 31.4, "min": 2.0, "max": 36.0, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003732 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45, \"min\": 22.5, \"max\": 90.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 300.0, \"min\": 90.0, \"max\": 900.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 31.4, \"min\": 2.0, \"max\": 36.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6715_0031", "family": "plate", "tier": 0, "seed": 1234003733, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "587e60418031d3ec", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6060.0, "surface_area": 3180.0, "principal_moments": [282000.0, 1400000.0, 1660000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 52.47, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 23.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003733 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 52.47, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 23.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6716_0032", "family": "bracket", "tier": 1, "seed": 1234003734, "symmetry": "none", "op_count": 1, "ir_hash": "8ade192ba8e36b45", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12000.0, "surface_area": 4230.0, "principal_moments": [1220000.0, 1540000.0, 2170000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"base_len": {"type": "float", "default": 25.28, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35.33, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003734 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 25.28, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35.33, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07996959209224744)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6718_0034", "family": "bracket", "tier": 1, "seed": 1234003736, "symmetry": "none", "op_count": 1, "ir_hash": "ee4787e6a91ce07d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7610.0, "surface_area": 4190.0, "principal_moments": [509000.0, 2170000.0, 2190000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 30.29, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 31.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 26.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003736 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30.29, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 31.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 26.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6719_0035", "family": "block", "tier": 2, "seed": 1234003737, "symmetry": "none", "op_count": 3, "ir_hash": "ebde2982696888a1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 95000.0, "surface_area": 17200.0, "principal_moments": [27899999.999999996, 49299999.99999999, 68600000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 23.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 75.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003737 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 23.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 75.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.045880815506690424)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d671a_0036", "family": "revolved", "tier": 2, "seed": 1234003738, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "afeae39ff3402e9d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 65400.0, "surface_area": 15100.0, "principal_moments": [12699999.999999998, 42200000.0, 42200000.0], "n_faces": 12, "n_edges": 20, "n_vertices": 12}, "params": {"outer_d": {"type": "float", "default": 36.21, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 80.6, "min": 24.2, "max": 241.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 15.9, "min": 2.0, "max": 25.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 2.21, "min": 0.88, "max": 6.63, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 6.06, "min": 2.42, "max": 18.18, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 50.8, "min": 12.1, "max": 68.5, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.7, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003738 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 36.21, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 80.6, \"min\": 24.2, \"max\": 241.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 15.9, \"min\": 2.0, \"max\": 25.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 2.21, \"min\": 0.88, \"max\": 6.63, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 6.06, \"min\": 2.42, \"max\": 18.18, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 50.8, \"min\": 12.1, \"max\": 68.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.7, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d671d_0039", "family": "enclosure", "tier": 2, "seed": 1234003741, "symmetry": "none", "op_count": 3, "ir_hash": "e8b56496fb561a6e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 75000.0, "surface_area": 61200.0, "principal_moments": [83000000.0, 162000000.0, 175000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 117.54, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 64.5, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 66.8, "min": 26.7, "max": 133.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.5, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003741 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 117.54, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 64.5, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 66.8, \"min\": 26.7, \"max\": 133.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.5, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d671e_0040", "family": "ribbed", "tier": 2, "seed": 1234003742, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "8ca39a915782ce9d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7050.0, "surface_area": 4830.0, "principal_moments": [727000.0, 1970000.0, 2590000.0], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 49.41, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 30.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 6.6, "min": 2.6, "max": 13.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.9, "min": 1.0, "max": 12.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003742 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 49.41, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 30.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 6.6, \"min\": 2.6, \"max\": 13.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.9, \"min\": 1.0, \"max\": 12.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d671f_0041", "family": "gear", "tier": 0, "seed": 1234003743, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "0c826eaae8a0a4b6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7090.0, "surface_area": 3740.0, "principal_moments": [665000.0, 665000.0, 1280000.0], "n_faces": 230, "n_edges": 684, "n_vertices": 456}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 38, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.3, "min": 2.5, "max": 15.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003743 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 38, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.3, \"min\": 2.5, \"max\": 15.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6721_0043", "family": "threaded", "tier": 0, "seed": 1234003745, "symmetry": "none", "op_count": 1, "ir_hash": "f139b16b5ff9f7b6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10300.0, "surface_area": 4800.0, "principal_moments": [285000.0, 3210000.0, 3210000.0], "n_faces": 537, "n_edges": 1481, "n_vertices": 946}, "params": {"major_d": {"type": "float", "default": 16.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.0, "min": 1.0, "max": 4.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 60.0, "min": 24.0, "max": 120.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003745 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 4.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 60.0, \"min\": 24.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6722_0044", "family": "threaded", "tier": 1, "seed": 1234003746, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "1468760d729c7add", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 502.0, "surface_area": 638.0, "principal_moments": [1870.0, 20900.0, 20900.0], "n_faces": 225, "n_edges": 577, "n_vertices": 354}, "params": {"major_d": {"type": "float", "default": 6.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.0, "min": 0.5, "max": 2.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 22.0, "min": 8.8, "max": 44.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003746 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.5, \"max\": 2.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 22.0, \"min\": 8.8, \"max\": 44.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6723_0045", "family": "threaded", "tier": 1, "seed": 1234003747, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "7f0003536ab04059", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23100.0, "surface_area": 7390.0, "principal_moments": [1440000.0, 7590000.0, 7590000.0], "n_faces": 357, "n_edges": 981, "n_vertices": 626}, "params": {"major_d": {"type": "float", "default": 24.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 3.0, "min": 1.5, "max": 6.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 60.0, "min": 24.0, "max": 120.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003747 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 24.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.5, \"max\": 6.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 60.0, \"min\": 24.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6724_0046", "family": "revolved", "tier": 2, "seed": 1234003748, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "d4242909bf8af1f7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 88200.0, "surface_area": 23300.0, "principal_moments": [49099999.99999999, 49099999.99999999, 72300000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 50.5, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 39.9, "min": 12.0, "max": 119.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 28.7, "min": 2.0, "max": 35.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 95.0, "min": 60.6, "max": 151.5, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.8, "min": 2.0, "max": 19.9, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.2, "min": 0.1, "max": 3.6, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003748 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50.5, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 39.9, \"min\": 12.0, \"max\": 119.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 28.7, \"min\": 2.0, \"max\": 35.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 95.0, \"min\": 60.6, \"max\": 151.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.8, \"min\": 2.0, \"max\": 19.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.2, \"min\": 0.1, \"max\": 3.6, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6726_0048", "family": "compound", "tier": 1, "seed": 1234003750, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "645b087f43d664df", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 88400.0, "surface_area": 21200.0, "principal_moments": [59299999.99999999, 62099999.99999999, 67700000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_w": {"type": "float", "default": 65, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 74.6, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 16.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 16.4, "min": 6.6, "max": 32.5, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 77.9, "min": 23.4, "max": 233.7, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 7.6, "min": 2.0, "max": 11.8, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003750 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 65, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 74.6, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 16.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 16.4, \"min\": 6.6, \"max\": 32.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 77.9, \"min\": 23.4, \"max\": 233.7, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 7.6, \"min\": 2.0, \"max\": 11.8, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6727_0049", "family": "block", "tier": 2, "seed": 1234003751, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "d132bb915e9c0932", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 62400.0, "surface_area": 14900.0, "principal_moments": [14399999.999999998, 26699999.999999996, 27299999.999999996], "n_faces": 16, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 58.16, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 35.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 36.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "pocket_w": {"type": "float", "default": 35.8, "min": 17.9, "max": 46.5, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 17.8, "min": 8.9, "max": 28.6, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 19.4, "min": 7.8, "max": 31.2, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003751 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 58.16, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 35.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 36.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"pocket_w\": {\"type\": 'float', \"default\": 35.8, \"min\": 17.9, \"max\": 46.5, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 17.8, \"min\": 8.9, \"max\": 28.6, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 19.4, \"min\": 7.8, \"max\": 31.2, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 21.8\n _ssy = 25.9\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6728_0050", "family": "gear", "tier": 1, "seed": 1234003752, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "7ba2ae0c91e41fa1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6590.0, "surface_area": 3410.0, "principal_moments": [490000.0, 490000.0, 904000.0], "n_faces": 159, "n_edges": 471, "n_vertices": 314}, "params": {"module": {"type": "float", "default": 1.25, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 26, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 8.3, "min": 3.3, "max": 20.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 5.7, "min": 2.0, "max": 17.6, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003752 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.25, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 26, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 8.3, \"min\": 3.3, \"max\": 20.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.0, \"max\": 17.6, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6729_0051", "family": "bracket", "tier": 1, "seed": 1234003753, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d7699abfbcd0171d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12800.0, "surface_area": 5160.0, "principal_moments": [1480000.0, 4160000.0, 4750000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 46.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003753 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 46.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d672b_0053", "family": "plate", "tier": 0, "seed": 1234003755, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "b32123601ef1634e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 49000.0, "surface_area": 11600.0, "principal_moments": [6860000.0, 44900000.0, 50499999.99999999], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 104.14, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 39.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003755 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 104.14, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 39.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d672c_0054", "family": "bracket", "tier": 1, "seed": 1234003756, "symmetry": "none", "op_count": 1, "ir_hash": "7aa479dd17100a68", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28600.0, "surface_area": 15900.0, "principal_moments": [7720000.0, 30599999.999999996, 33800000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 56.37, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 42.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 47.9, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 58.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003756 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 56.37, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 42.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 47.9, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 58.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d672d_0055", "family": "compound", "tier": 3, "seed": 1234003757, "symmetry": "none", "op_count": 4, "ir_hash": "33e5ea59e5a38552", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 54000.0, "surface_area": 13000.0, "principal_moments": [7400000.0, 37700000.0, 37700000.0], "n_faces": 17, "n_edges": 37, "n_vertices": 24}, "params": {"shaft_d": {"type": "float", "default": 35, "min": 17.5, "max": 63.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 44.9, "min": 18.0, "max": 89.8, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 20.8, "min": 10.4, "max": 31.5, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 39.9, "min": 12.0, "max": 99.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "head_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Head", "label": "Drive head sides"}, "head_r": {"type": "float", "default": 9.3, "min": 5.6, "max": 10.0, "step": 1.0, "group": "Head", "label": "Drive head circumradius (mm)"}, "head_len": {"type": "float", "default": 16.3, "min": 4.9, "max": 32.6, "step": 1.0, "group": "Head", "label": "Drive head length (mm)"}, "axial_bore": {"type": "float", "default": 9.1, "min": 2.0, "max": 12.4, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}, "chamfer_d": {"type": "float", "default": 1.5, "min": 0.5, "max": 3.0, "step": 0.5, "group": "Body", "label": "Chamfer distance (mm)"}, "chamfered": {"type": "bool", "default": true, "group": "Body", "label": "Chamfer edges"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003757 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 35, \"min\": 17.5, \"max\": 63.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 44.9, \"min\": 18.0, \"max\": 89.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 20.8, \"min\": 10.4, \"max\": 31.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 39.9, \"min\": 12.0, \"max\": 99.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"head_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Head', \"label\": 'Drive head sides'},\n \"head_r\": {\"type\": 'float', \"default\": 9.3, \"min\": 5.6, \"max\": 10.0, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head circumradius (mm)'},\n \"head_len\": {\"type\": 'float', \"default\": 16.3, \"min\": 4.9, \"max\": 32.6, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 9.1, \"min\": 2.0, \"max\": 12.4, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n \"chamfer_d\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.5, \"max\": 3.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Chamfer distance (mm)'},\n \"chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Chamfer edges'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"head_sides\"], p[\"head_r\"] * 2).extrude(p[\"head_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n if p[\"chamfered\"]:\n result = result.edges('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6730_0058", "family": "compound", "tier": 1, "seed": 1234003760, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "1ae2724563994e6b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 93000.0, "surface_area": 13300.0, "principal_moments": [21200000.0, 45400000.0, 49699999.99999999], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 66.38, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 41.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 33.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 7.0, "min": 3.5, "max": 11.7, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 17.6, "min": 3.4, "max": 45.3, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003760 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 66.38, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 41.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 33.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 7.0, \"min\": 3.5, \"max\": 11.7, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 17.6, \"min\": 3.4, \"max\": 45.3, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"spig_sides\"], p[\"spig_r\"] * 2).extrude(p[\"spig_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6731_0059", "family": "plate", "tier": 0, "seed": 1234003761, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "cb92ec544f6f41bf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4190.0, "surface_area": 2640.0, "principal_moments": [195000.0, 713000.0, 897000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 23.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003761 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 23.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6732_0060", "family": "plate", "tier": 2, "seed": 1234003762, "symmetry": "none", "op_count": 3, "ir_hash": "ec4d399bfe6a79a5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21500.0, "surface_area": 6640.0, "principal_moments": [2370000.0, 5440000.0, 7290000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 35.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 7.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003762 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 35.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 7.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09608467861128618)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6733_0061", "family": "plate", "tier": 0, "seed": 1234003763, "symmetry": "none", "op_count": 1, "ir_hash": "d86afab8bbca280b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1870.0, "surface_area": 2130.0, "principal_moments": [86000.0, 250000.0, 335000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 40, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 23.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003763 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 23.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6734_0062", "family": "ribbed", "tier": 1, "seed": 1234003764, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "55f0e4370b50f686", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16900.0, "surface_area": 9580.0, "principal_moments": [2960000.0, 4780000.0, 6120000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 38.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 18.6, "min": 7.4, "max": 37.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.3, "min": 1.0, "max": 8.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003764 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 38.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 18.6, \"min\": 7.4, \"max\": 37.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.3, \"min\": 1.0, \"max\": 8.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6735_0063", "family": "bracket", "tier": 1, "seed": 1234003765, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "c662acb3a45b30cc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11000.0, "surface_area": 8170.0, "principal_moments": [2650000.0, 3880000.0, 4960000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 41.98, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 43.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003765 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 41.98, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 43.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6737_0065", "family": "enclosure", "tier": 1, "seed": 1234003767, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "151024f2423ca501", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 50300.0, "surface_area": 30500.0, "principal_moments": [28599999.999999996, 52399999.99999999, 60699999.99999999], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 83.93, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 51.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 44.4, "min": 17.8, "max": 88.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.4, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003767 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 83.93, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 51.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 44.4, \"min\": 17.8, \"max\": 88.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.4, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6738_0066", "family": "compound", "tier": 1, "seed": 1234003768, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "2b240bd906490b99", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 78600.0, "surface_area": 11800.0, "principal_moments": [12599999.999999998, 53499999.99999999, 53499999.99999999], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 38.31, "min": 19.2, "max": 69.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 56.5, "min": 22.6, "max": 113.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 19.9, "min": 9.9, "max": 34.5, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 43.3, "min": 13.0, "max": 108.2, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003768 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 38.31, \"min\": 19.2, \"max\": 69.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 56.5, \"min\": 22.6, \"max\": 113.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 19.9, \"min\": 9.9, \"max\": 34.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 43.3, \"min\": 13.0, \"max\": 108.2, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6739_0067", "family": "plate", "tier": 0, "seed": 1234003769, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "042a7dafdd156cb7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25400.0, "surface_area": 10000.0, "principal_moments": [7830000.0, 10500000.0, 18100000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 70, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 60.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003769 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 60.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d673a_0068", "family": "threaded", "tier": 2, "seed": 1234003770, "symmetry": "none", "op_count": 1, "ir_hash": "6bf2cba8abb3a845", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10300.0, "surface_area": 4750.0, "principal_moments": [347000.0, 2390000.0, 2390000.0], "n_faces": 135, "n_edges": 347, "n_vertices": 214}, "params": {"thread_size": {"type": "enum", "default": "18x4", "choices": ["8x1.5", "10x2", "12x3", "14x3", "16x4", "18x4", "20x4", "24x5", "28x5", "30x6", "36x6", "40x7"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 51.5, "min": 20.6, "max": 103.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003770 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '18x4', \"choices\": ['8x1.5', '10x2', '12x3', '14x3', '16x4', '18x4', '20x4', '24x5', '28x5', '30x6', '36x6', '40x7'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 51.5, \"min\": 20.6, \"max\": 103.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.MetricTrapezoidalThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d673b_0069", "family": "threaded", "tier": 1, "seed": 1234003771, "symmetry": "none", "op_count": 1, "ir_hash": "3cd49a1be4438f9b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6130.0, "surface_area": 2960.0, "principal_moments": [169000.0, 732000.0, 732000.0], "n_faces": 313, "n_edges": 857, "n_vertices": 546}, "params": {"major_d": {"type": "float", "default": 16.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.0, "min": 1.0, "max": 4.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 35.8, "min": 14.3, "max": 71.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003771 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 4.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 35.8, \"min\": 14.3, \"max\": 71.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d673c_0070", "family": "ribbed", "tier": 2, "seed": 1234003772, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "62a73f104977de9e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14200.0, "surface_area": 9460.0, "principal_moments": [2770000.0, 4360000.0, 6500000.0], "n_faces": 21, "n_edges": 48, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 46.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 12.9, "min": 5.2, "max": 25.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.8, "min": 1.0, "max": 9.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003772 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 46.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 12.9, \"min\": 5.2, \"max\": 25.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.8, \"min\": 1.0, \"max\": 9.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d673d_0071", "family": "plate", "tier": 3, "seed": 1234003773, "symmetry": "radial", "op_count": 4, "ir_hash": "45920c4200bd0209", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7070.0, "surface_area": 3560.0, "principal_moments": [322000.0, 1200000.0, 1350000.0], "n_faces": 35, "n_edges": 102, "n_vertices": 68}, "params": {"plate_w": {"type": "float", "default": 40.55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 19.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 12.2, "min": 8.1, "max": 18.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "pocket_w": {"type": "float", "default": 24.7, "min": 12.3, "max": 32.4, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 8.4, "min": 4.2, "max": 15.5, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 6.9, "min": 2.8, "max": 10.2, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003773 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40.55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 19.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 12.2, \"min\": 8.1, \"max\": 18.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"pocket_w\": {\"type\": 'float', \"default\": 24.7, \"min\": 12.3, \"max\": 32.4, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 4.2, \"max\": 15.5, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 6.9, \"min\": 2.8, \"max\": 10.2, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.11410183203734947)\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d673e_0072", "family": "revolved", "tier": 0, "seed": 1234003774, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "17ed79615d6b800f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 891.0, "surface_area": 791.0, "principal_moments": [16600.0, 16600.0, 22100.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 12.85, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 10.3, "min": 3.1, "max": 30.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003774 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 12.85, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 10.3, \"min\": 3.1, \"max\": 30.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d673f_0073", "family": "block", "tier": 2, "seed": 1234003775, "symmetry": "radial", "op_count": 3, "ir_hash": "4a2adbd64e9c4dd3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 80300.0, "surface_area": 19300.0, "principal_moments": [20400000.0, 38100000.0, 42400000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 41.58, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 34.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 67.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 12.5, "min": 8.3, "max": 18.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003775 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 41.58, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 34.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 67.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 12.5, \"min\": 8.3, \"max\": 18.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.09854502951021821)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6740_0074", "family": "compound", "tier": 2, "seed": 1234003776, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "bb963fbf39174260", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 123000.0, "surface_area": 46300.0, "principal_moments": [171000000.0, 368000000.0, 380000000.0], "n_faces": 28, "n_edges": 75, "n_vertices": 50}, "params": {"base_w": {"type": "float", "default": 110, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 118.2, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 6.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 12.6, "min": 6.3, "max": 27.5, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 158.0, "min": 47.4, "max": 474.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 12.1, "min": 2.0, "max": 15.7, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003776 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 110, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 118.2, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 12.6, \"min\": 6.3, \"max\": 27.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 158.0, \"min\": 47.4, \"max\": 474.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 12.1, \"min\": 2.0, \"max\": 15.7, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_w\"], p[\"base_d\"]) * 0.045606211557377346)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6741_0075", "family": "plate", "tier": 0, "seed": 1234003777, "symmetry": "radial", "op_count": 1, "ir_hash": "88ec8f8fc56d78ac", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8640.0, "surface_area": 3260.0, "principal_moments": [461000.0, 1500000.0, 1870000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 24.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003777 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 24.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6742_0076", "family": "revolved", "tier": 1, "seed": 1234003778, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8e2a64b300238bc6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 258000.0, "surface_area": 40400.0, "principal_moments": [153000000.0, 315000000.0, 315000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 62.83, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 124.8, "min": 37.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003778 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 62.83, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 124.8, \"min\": 37.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6743_0077", "family": "threaded", "tier": 2, "seed": 1234003779, "symmetry": "none", "op_count": 1, "ir_hash": "1c0ef7c82702267c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1090.0, "surface_area": 1390.0, "principal_moments": [4520.0, 178000.0, 178000.0], "n_faces": 285, "n_edges": 733, "n_vertices": 450}, "params": {"thread_size": {"type": "enum", "default": "1/4", "choices": ["1/4", "5/16", "3/8", "1/2", "5/8", "3/4", "7/8", "1", "1 1/4", "1 1/2"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 44.4, "min": 17.8, "max": 88.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003779 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '1/4', \"choices\": ['1/4', '5/16', '3/8', '1/2', '5/8', '3/4', '7/8', '1', '1 1/4', '1 1/2'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 44.4, \"min\": 17.8, \"max\": 88.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.AcmeThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6744_0078", "family": "revolved", "tier": 0, "seed": 1234003780, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "2d0a75ed4256704d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1360.0, "surface_area": 1310.0, "principal_moments": [20300.0, 64200.0, 64200.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 10, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 25.9, "min": 7.8, "max": 77.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003780 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 10, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 25.9, \"min\": 7.8, \"max\": 77.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6745_0079", "family": "compound", "tier": 2, "seed": 1234003781, "symmetry": "mirror_x", "op_count": 5, "ir_hash": "590240d0130dbda1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 209000.0, "surface_area": 25800.0, "principal_moments": [107000000.0, 136000000.0, 143000000.0], "n_faces": 36, "n_edges": 94, "n_vertices": 61}, "params": {"block_w": {"type": "float", "default": 69.13, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 56.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 53.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 8.1, "min": 4.0, "max": 12.1, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 7.3, "min": 3.5, "max": 42.1, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 5.6, "min": 2.0, "max": 10.1, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 12.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003781 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 69.13, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 56.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 53.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 8.1, \"min\": 4.0, \"max\": 12.1, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 7.3, \"min\": 3.5, \"max\": 42.1, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 5.6, \"min\": 2.0, \"max\": 10.1, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 12.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6746_0080", "family": "gear", "tier": 0, "seed": 1234003782, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "5661e223459bfc73", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11900.0, "surface_area": 5640.0, "principal_moments": [1810000.0, 1810000.0, 3530000.0], "n_faces": 236, "n_edges": 702, "n_vertices": 468}, "params": {"module": {"type": "float", "default": 1.25, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 39, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.4, "min": 2.6, "max": 16.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003782 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.25, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 39, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.6, \"max\": 16.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6747_0081", "family": "enclosure", "tier": 2, "seed": 1234003783, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "2ef67ab11ad68674", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 107000.0, "surface_area": 59300.0, "principal_moments": [134000000.0, 190000000.0, 221000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 100.63, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 73.7, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 68.3, "min": 27.3, "max": 136.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.7, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003783 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 100.63, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 73.7, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 68.3, \"min\": 27.3, \"max\": 136.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.7, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6748_0082", "family": "threaded", "tier": 2, "seed": 1234003784, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "179064508e60ed68", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3280.0, "surface_area": 2630.0, "principal_moments": [34600.0, 726000.0, 726000.0], "n_faces": 260, "n_edges": 666, "n_vertices": 408}, "params": {"thread_size": {"type": "enum", "default": "10x2", "choices": ["8x1.5", "10x2", "12x3", "14x3", "16x4", "18x4", "20x4", "24x5", "28x5", "30x6", "36x6", "40x7"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 51.3, "min": 20.5, "max": 102.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003784 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '10x2', \"choices\": ['8x1.5', '10x2', '12x3', '14x3', '16x4', '18x4', '20x4', '24x5', '28x5', '30x6', '36x6', '40x7'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 51.3, \"min\": 20.5, \"max\": 102.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.MetricTrapezoidalThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6749_0083", "family": "flanged", "tier": 1, "seed": 1234003785, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "0ee47e6d274580f9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12000.0, "surface_area": 6500.0, "principal_moments": [1900000.0, 1900000.0, 3450000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 25, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 13.9, "min": 4.2, "max": 34.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 10.8, "min": 2.0, "max": 17.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 54.1, "min": 32.5, "max": 75.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.8, "min": 1.1, "max": 5.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 16.2, "min": 10.8, "max": 24.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003785 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 13.9, \"min\": 4.2, \"max\": 34.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 10.8, \"min\": 2.0, \"max\": 17.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 54.1, \"min\": 32.5, \"max\": 75.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.8, \"min\": 1.1, \"max\": 5.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 16.2, \"min\": 10.8, \"max\": 24.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d674a_0084", "family": "bracket", "tier": 1, "seed": 1234003786, "symmetry": "none", "op_count": 1, "ir_hash": "a1c72c1d88b93fc8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26000.0, "surface_area": 11100.0, "principal_moments": [9440000.0, 11000000.0, 15899999.999999998], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 46.38, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 52.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 31.88, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003786 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 46.38, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 52.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 31.88, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d674b_0085", "family": "revolved", "tier": 1, "seed": 1234003787, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "459584a630a9c055", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3740.0, "surface_area": 2530.0, "principal_moments": [241000.0, 241000.0, 399000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 19.77, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 11.5, "min": 3.4, "max": 34.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 11.3, "min": 2.0, "max": 13.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 32.0, "min": 23.7, "max": 59.3, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 2.9, "min": 0.9, "max": 5.8, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003787 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 19.77, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 11.5, \"min\": 3.4, \"max\": 34.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 11.3, \"min\": 2.0, \"max\": 13.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 32.0, \"min\": 23.7, \"max\": 59.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 2.9, \"min\": 0.9, \"max\": 5.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d674d_0087", "family": "block", "tier": 1, "seed": 1234003789, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "624c649a44b34b27", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33500.0, "surface_area": 11200.0, "principal_moments": [5170000.0, 7530000.0, 10600000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 40, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 20.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 48.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.2, "min": 2.0, "max": 5.9, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003789 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 20.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 48.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 5.9, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d674e_0088", "family": "bracket", "tier": 1, "seed": 1234003790, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "75dc49af68ee294d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12800.0, "surface_area": 9390.0, "principal_moments": [3560000.0, 4990000.0, 6770000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 38.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003790 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 38.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z or Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6753_0093", "family": "flanged", "tier": 1, "seed": 1234003795, "symmetry": "none", "op_count": 2, "ir_hash": "812aa365939b0b4e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 256000.0, "surface_area": 45000.0, "principal_moments": [268000000.0, 268000000.0, 449000000.0], "n_faces": 17, "n_edges": 60, "n_vertices": 40}, "params": {"outer_d": {"type": "float", "default": 80.1, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 44.8, "min": 13.4, "max": 112.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 42.7, "min": 2.0, "max": 56.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 129.5, "min": 104.1, "max": 240.3, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 12.4, "min": 3.7, "max": 17.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 38.9, "min": 25.9, "max": 58.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003795 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 80.1, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 44.8, \"min\": 13.4, \"max\": 112.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 42.7, \"min\": 2.0, \"max\": 56.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 129.5, \"min\": 104.1, \"max\": 240.3, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 12.4, \"min\": 3.7, \"max\": 17.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 38.9, \"min\": 25.9, \"max\": 58.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6754_0094", "family": "plate", "tier": 0, "seed": 1234003796, "symmetry": "radial", "op_count": 1, "ir_hash": "1643f242b3fc371f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22800.0, "surface_area": 10600.0, "principal_moments": [4060000.0, 18900000.0, 22799999.999999996], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 99.5, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 45.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003796 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 99.5, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 45.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6755_0095", "family": "threaded", "tier": 2, "seed": 1234003797, "symmetry": "none", "op_count": 1, "ir_hash": "e6dd360789fa4bd0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29700.0, "surface_area": 8120.0, "principal_moments": [3220000.0, 6450000.0, 6450000.0], "n_faces": 95, "n_edges": 239, "n_vertices": 146}, "params": {"thread_size": {"type": "enum", "default": "1 1/4", "choices": ["1/4", "5/16", "3/8", "1/2", "5/8", "3/4", "7/8", "1", "1 1/4", "1 1/2"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 44.8, "min": 17.9, "max": 89.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003797 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '1 1/4', \"choices\": ['1/4', '5/16', '3/8', '1/2', '5/8', '3/4', '7/8', '1', '1 1/4', '1 1/2'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 44.8, \"min\": 17.9, \"max\": 89.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.AcmeThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6756_0096", "family": "revolved", "tier": 2, "seed": 1234003798, "symmetry": "none", "op_count": 2, "ir_hash": "3146a4f449968576", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10100.0, "surface_area": 3780.0, "principal_moments": [830000.0, 1160000.0, 1160000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 23.37, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 29.9, "min": 9.0, "max": 89.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 10.7, "min": 2.0, "max": 16.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003798 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 23.37, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 29.9, \"min\": 9.0, \"max\": 89.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 10.7, \"min\": 2.0, \"max\": 16.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d675b_0101", "family": "revolved", "tier": 0, "seed": 1234003803, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d04b7459d56055a2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 505000.0, "surface_area": 65400.0, "principal_moments": [426000000.0, 1090000000.0, 1090000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 171.3, "min": 51.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003803 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 171.3, \"min\": 51.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d675c_0102", "family": "revolved", "tier": 1, "seed": 1234003804, "symmetry": "none", "op_count": 2, "ir_hash": "b921ec373cf495b9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1110000.0, "surface_area": 120000.0, "principal_moments": [1640000000.0, 5090000000.0, 5090000000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 76.57, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 251.5, "min": 75.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 131.0, "min": 91.9, "max": 229.7, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 37.6, "min": 11.3, "max": 125.8, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 1.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003804 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 76.57, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 251.5, \"min\": 75.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 131.0, \"min\": 91.9, \"max\": 229.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 37.6, \"min\": 11.3, \"max\": 125.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 1.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6760_0106", "family": "revolved", "tier": 0, "seed": 1234003808, "symmetry": "none", "op_count": 1, "ir_hash": "f44a7c934f778102", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 883000.0, "surface_area": 106000.0, "principal_moments": [826000000.0, 4250000000.0, 4250000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 78.95, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 270.6, "min": 81.2, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003808 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 78.95, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 270.6, \"min\": 81.2, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6761_0107", "family": "compound", "tier": 1, "seed": 1234003809, "symmetry": "none", "op_count": 2, "ir_hash": "1e30e360e03ab79f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2400.0, "surface_area": 1620.0, "principal_moments": [102000.0, 102000.0, 105000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 10.54, "min": 6.3, "max": 16.9, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 6.3, "min": 2.5, "max": 15.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 8.6, "min": 4.3, "max": 15.6, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 12.6, "min": 3.8, "max": 31.5, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 4.6, "min": 2.0, "max": 6.2, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003809 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 10.54, \"min\": 6.3, \"max\": 16.9, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 6.3, \"min\": 2.5, \"max\": 15.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 8.6, \"min\": 4.3, \"max\": 15.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 12.6, \"min\": 3.8, \"max\": 31.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 4.6, \"min\": 2.0, \"max\": 6.2, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6762_0108", "family": "bracket", "tier": 1, "seed": 1234003810, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "69eb2cdc76681f7f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23700.0, "surface_area": 10000.0, "principal_moments": [5690000.0, 20600000.0, 22700000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 59.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 29.97, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003810 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 59.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 29.97, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6764_0110", "family": "compound", "tier": 1, "seed": 1234003812, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "abd02ee01eec26d9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 55700.0, "surface_area": 8890.0, "principal_moments": [10800000.0, 16800000.0, 16800000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 41.72, "min": 20.9, "max": 75.1, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 35.0, "min": 14.0, "max": 70.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 19.9, "min": 9.9, "max": 37.5, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 25.1, "min": 7.5, "max": 62.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003812 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 41.72, \"min\": 20.9, \"max\": 75.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 35.0, \"min\": 14.0, \"max\": 70.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 19.9, \"min\": 9.9, \"max\": 37.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 25.1, \"min\": 7.5, \"max\": 62.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6765_0111", "family": "revolved", "tier": 1, "seed": 1234003813, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "2aaab8ffac396ed0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13000.0, "surface_area": 7030.0, "principal_moments": [1980000.0, 1980000.0, 3600000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 35, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 15.2, "min": 4.6, "max": 45.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 57.3, "min": 42.0, "max": 105.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 2.1, "min": 0.6, "max": 7.6, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.1, "min": 0.1, "max": 3.3, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003813 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 15.2, \"min\": 4.6, \"max\": 45.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 57.3, \"min\": 42.0, \"max\": 105.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 2.1, \"min\": 0.6, \"max\": 7.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.1, \"min\": 0.1, \"max\": 3.3, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.07954430170386119)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6767_0113", "family": "block", "tier": 1, "seed": 1234003815, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "00182dd00b27ce39", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 85200.0, "surface_area": 14900.0, "principal_moments": [19700000.0, 37200000.0, 41000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 41.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 33.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003815 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 41.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 33.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6768_0114", "family": "enclosure", "tier": 1, "seed": 1234003816, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "3be025b0974fdbdb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29600.0, "surface_area": 24300.0, "principal_moments": [11300000.0, 27399999.999999996, 27399999.999999996], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 80, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 35.4, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 43.3, "min": 17.3, "max": 86.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.5, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003816 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 80, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 35.4, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 43.3, \"min\": 17.3, \"max\": 86.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.5, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6769_0115", "family": "enclosure", "tier": 1, "seed": 1234003817, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "1e6685017b62ffe5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 73300.0, "surface_area": 70600.0, "principal_moments": [123000000.0, 145000000.0, 196000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 105, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 91.2, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 68.0, "min": 27.2, "max": 136.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.1, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003817 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 105, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 91.2, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 68.0, \"min\": 27.2, \"max\": 136.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.1, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d676a_0116", "family": "compound", "tier": 1, "seed": 1234003818, "symmetry": "none", "op_count": 3, "ir_hash": "cbfdb9e4da7893b8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 519000.0, "surface_area": 47500.0, "principal_moments": [540000000.0, 551000000.0, 677000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 21}, "params": {"block_w": {"type": "float", "default": 87.94, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 86.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 68.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 16.6, "min": 6.6, "max": 31.0, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 22.6, "min": 4.2, "max": 49.8, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 9.5, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003818 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 87.94, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 86.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 68.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 16.6, \"min\": 6.6, \"max\": 31.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 22.6, \"min\": 4.2, \"max\": 49.8, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 9.5, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d676b_0117", "family": "bracket", "tier": 1, "seed": 1234003819, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d9568202a72078f4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12200.0, "surface_area": 9030.0, "principal_moments": [2210000.0, 4150000.0, 4840000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 27.77, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 57.37, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003819 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 27.77, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 57.37, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d676c_0118", "family": "bracket", "tier": 1, "seed": 1234003820, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "1977e40ac3487c08", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13400.0, "surface_area": 7960.0, "principal_moments": [1760000.0, 8000000.0, 8270000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 37.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 38.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003820 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 37.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 38.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d676d_0119", "family": "ribbed", "tier": 2, "seed": 1234003821, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "e51b94e233019ed8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12300.0, "surface_area": 8550.0, "principal_moments": [1880000.0, 2530000.0, 3630000.0], "n_faces": 29, "n_edges": 84, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 40.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.2, "min": 6.5, "max": 32.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003821 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 40.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.2, \"min\": 6.5, \"max\": 32.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d676e_0120", "family": "revolved", "tier": 2, "seed": 1234003822, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ecf98750135c6828", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 532000.0, "surface_area": 75000.0, "principal_moments": [611000000.0, 1260000000.0, 1260000000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 65, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 168.6, "min": 50.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 120.9, "min": 78.0, "max": 195.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 19.5, "min": 5.8, "max": 84.3, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003822 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 168.6, \"min\": 50.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 120.9, \"min\": 78.0, \"max\": 195.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 19.5, \"min\": 5.8, \"max\": 84.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d676f_0121", "family": "bracket", "tier": 3, "seed": 1234003823, "symmetry": "none", "op_count": 1, "ir_hash": "a3c18eef2b1d6f21", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5280.0, "surface_area": 3420.0, "principal_moments": [418000.0, 1000000.0, 1200000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 15.25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 6.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 6.0, "min": 2.5, "max": 7.6, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003823 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 15.25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 6.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.5, \"max\": 7.6, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6770_0122", "family": "bracket", "tier": 1, "seed": 1234003824, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "6d5d0d1207528145", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35600.0, "surface_area": 11700.0, "principal_moments": [9190000.0, 18600000.0, 19000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 54.43, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 36.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003824 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 54.43, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 36.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6771_0123", "family": "plate", "tier": 1, "seed": 1234003825, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "cc37d24b8993a7c5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4440.0, "surface_area": 3560.0, "principal_moments": [355000.0, 873000.0, 1220000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 48.75, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 31.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003825 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 48.75, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 31.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6772_0124", "family": "compound", "tier": 2, "seed": 1234003826, "symmetry": "none", "op_count": 3, "ir_hash": "a63ad0c8edca3f31", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5720.0, "surface_area": 2100.0, "principal_moments": [191000.0, 630000.0, 630000.0], "n_faces": 20, "n_edges": 51, "n_vertices": 34}, "params": {"base_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 10.0, "min": 6.0, "max": 16.0, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 11.7, "min": 4.7, "max": 29.2, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 11.8, "min": 5.9, "max": 14.8, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 22.1, "min": 6.6, "max": 55.2, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003826 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 10.0, \"min\": 6.0, \"max\": 16.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 11.7, \"min\": 4.7, \"max\": 29.2, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 11.8, \"min\": 5.9, \"max\": 14.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 22.1, \"min\": 6.6, \"max\": 55.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_r\"], p[\"base_r\"]) * 0.10662041512286091)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6773_0125", "family": "compound", "tier": 1, "seed": 1234003827, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "7dc684a525514938", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 90100.0, "surface_area": 20100.0, "principal_moments": [21700000.0, 77000000.0, 77000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 43.01, "min": 21.5, "max": 77.4, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 56.5, "min": 22.6, "max": 113.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 29.9, "min": 14.9, "max": 38.7, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 46.9, "min": 14.1, "max": 117.2, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 17.5, "min": 2.0, "max": 21.5, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003827 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 43.01, \"min\": 21.5, \"max\": 77.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 56.5, \"min\": 22.6, \"max\": 113.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 29.9, \"min\": 14.9, \"max\": 38.7, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 46.9, \"min\": 14.1, \"max\": 117.2, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 17.5, \"min\": 2.0, \"max\": 21.5, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6774_0126", "family": "flanged", "tier": 1, "seed": 1234003828, "symmetry": "radial", "op_count": 2, "ir_hash": "456c9b15a68b78db", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 537000.0, "surface_area": 74500.0, "principal_moments": [802000000.0, 802000000.0, 1160000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 95, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 64.3, "min": 19.3, "max": 160.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 31.7, "min": 2.0, "max": 66.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 174.7, "min": 123.5, "max": 285.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.9, "min": 2.4, "max": 25.7, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 52.4, "min": 34.9, "max": 78.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003828 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 64.3, \"min\": 19.3, \"max\": 160.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 31.7, \"min\": 2.0, \"max\": 66.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 174.7, \"min\": 123.5, \"max\": 285.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.9, \"min\": 2.4, \"max\": 25.7, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 52.4, \"min\": 34.9, \"max\": 78.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6775_0127", "family": "threaded", "tier": 0, "seed": 1234003829, "symmetry": "none", "op_count": 1, "ir_hash": "441759ed6fe8ad39", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 222.0, "surface_area": 343.0, "principal_moments": [575.0, 3810.0, 3810.0], "n_faces": 180, "n_edges": 458, "n_vertices": 280}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 13.9, "min": 5.6, "max": 27.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003829 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 13.9, \"min\": 5.6, \"max\": 27.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6776_0128", "family": "plate", "tier": 0, "seed": 1234003830, "symmetry": "none", "op_count": 1, "ir_hash": "5a313265f36617d9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 76200.0, "surface_area": 22200.0, "principal_moments": [52599999.99999999, 70400000.0, 122000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 105, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 90.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003830 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 105, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 90.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6777_0129", "family": "block", "tier": 1, "seed": 1234003831, "symmetry": "radial", "op_count": 2, "ir_hash": "569338758ac9beae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15900.0, "surface_area": 4810.0, "principal_moments": [1450000.0, 2020000.0, 2660000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 17.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 28.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 10.5, "min": 7.0, "max": 15.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003831 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 17.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 28.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 10.5, \"min\": 7.0, \"max\": 15.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6778_0130", "family": "plate", "tier": 1, "seed": 1234003832, "symmetry": "none", "op_count": 2, "ir_hash": "493eb03045771fec", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10200.0, "surface_area": 5070.0, "principal_moments": [650000.0, 3590000.0, 4170000.0], "n_faces": 30, "n_edges": 84, "n_vertices": 56}, "params": {"plate_w": {"type": "float", "default": 65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 27.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 4.3, "step": 0.1, "group": "Holes", "label": "Square hole size (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003832 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 27.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 4.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(26.0, 22.1, p[\"hole_nx\"], p[\"hole_ny\"])\n .rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6779_0131", "family": "threaded", "tier": 1, "seed": 1234003833, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8bed18a23f18b3f6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 243.0, "surface_area": 373.0, "principal_moments": [630.0, 4930.0, 4930.0], "n_faces": 195, "n_edges": 499, "n_vertices": 306}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 15.2, "min": 6.1, "max": 30.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003833 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 15.2, \"min\": 6.1, \"max\": 30.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d677a_0132", "family": "bracket", "tier": 2, "seed": 1234003834, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "6b78039aa91ef160", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9970.0, "surface_area": 5930.0, "principal_moments": [1250000.0, 2360000.0, 3150000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 29.19, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 3.4, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003834 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 29.19, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.4, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d677b_0133", "family": "compound", "tier": 1, "seed": 1234003835, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "75b4e2d610577a38", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 65700.0, "surface_area": 22500.0, "principal_moments": [44800000.0, 48699999.99999999, 71000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"base_w": {"type": "float", "default": 95, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 89.8, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 6.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 20.8, "min": 8.3, "max": 44.9, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 46.5, "min": 13.9, "max": 139.5, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003835 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 95, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 89.8, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 20.8, \"min\": 8.3, \"max\": 44.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 46.5, \"min\": 13.9, \"max\": 139.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d677c_0134", "family": "compound", "tier": 2, "seed": 1234003836, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "4f3ef531363fc5e8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34100.0, "surface_area": 7600.0, "principal_moments": [5560000.0, 7300000.0, 7310000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"block_w": {"type": "float", "default": 30.46, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 32.5, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 32.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 11.2, "min": 4.5, "max": 22.7, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 26.1, "min": 3.4, "max": 44.8, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003836 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 30.46, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 32.5, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 32.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 11.2, \"min\": 4.5, \"max\": 22.7, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 26.1, \"min\": 3.4, \"max\": 44.8, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d677d_0135", "family": "revolved", "tier": 0, "seed": 1234003837, "symmetry": "none", "op_count": 1, "ir_hash": "6907bb2edcc8e20a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5610.0, "surface_area": 3710.0, "principal_moments": [171000.0, 1010000.0, 1010000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 14.24, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 52.8, "min": 15.8, "max": 158.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003837 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 14.24, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 52.8, \"min\": 15.8, \"max\": 158.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d677e_0136", "family": "enclosure", "tier": 1, "seed": 1234003838, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "ba0492c3780c4dd8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 159000.0, "surface_area": 75400.0, "principal_moments": [264000000.0, 313000000.0, 357000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 100, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 68.5, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 98.5, "min": 39.4, "max": 197.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003838 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 100, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 68.5, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 98.5, \"min\": 39.4, \"max\": 197.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d677f_0137", "family": "bracket", "tier": 1, "seed": 1234003839, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "14c30c7f5c107ef5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8840.0, "surface_area": 7000.0, "principal_moments": [2010000.0, 8550000.0, 9900000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 61.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20.96, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 8.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003839 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 61.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20.96, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 8.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6781_0139", "family": "bracket", "tier": 1, "seed": 1234003841, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "759e64465238e411", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9790.0, "surface_area": 7360.0, "principal_moments": [1860000.0, 3720000.0, 4510000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 52.25, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 33.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003841 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 52.25, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 33.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6784_0142", "family": "block", "tier": 3, "seed": 1234003844, "symmetry": "none", "op_count": 4, "ir_hash": "94a60f5419ae6db6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 276000.0, "surface_area": 39700.0, "principal_moments": [184000000.0, 271000000.0, 323000000.0], "n_faces": 33, "n_edges": 99, "n_vertices": 66}, "params": {"block_w": {"type": "float", "default": 68.25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 50.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 97.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "pocket_w": {"type": "float", "default": 43.4, "min": 21.7, "max": 54.6, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 30.3, "min": 15.2, "max": 40.6, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 41.8, "min": 16.7, "max": 83.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}, "filleted2": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003844 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 68.25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 50.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 97.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"pocket_w\": {\"type\": 'float', \"default\": 43.4, \"min\": 21.7, \"max\": 54.6, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 30.3, \"min\": 15.2, \"max\": 40.6, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 41.8, \"min\": 16.7, \"max\": 83.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n \"filleted2\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 25.6\n _ssy = 26.5\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.1042007361493962)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6785_0143", "family": "bracket", "tier": 1, "seed": 1234003845, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "903541e6e09b4e50", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41000.0, "surface_area": 19000.0, "principal_moments": [28399999.999999996, 37100000.0, 54199999.99999999], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 66.88, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 73.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40.63, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003845 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 66.88, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 73.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40.63, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6786_0144", "family": "flanged", "tier": 2, "seed": 1234003846, "symmetry": "none", "op_count": 2, "ir_hash": "a80beb5309a424fb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 77700.0, "surface_area": 23400.0, "principal_moments": [41400000.0, 41400000.0, 66099999.99999999], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 48.75, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 34.1, "min": 10.2, "max": 85.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 25.8, "min": 2.0, "max": 34.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 98.7, "min": 63.4, "max": 146.2, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.6, "min": 1.7, "max": 13.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 29.6, "min": 19.7, "max": 44.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003846 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 48.75, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 34.1, \"min\": 10.2, \"max\": 85.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 25.8, \"min\": 2.0, \"max\": 34.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 98.7, \"min\": 63.4, \"max\": 146.2, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.6, \"min\": 1.7, \"max\": 13.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 29.6, \"min\": 19.7, \"max\": 44.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6787_0145", "family": "ribbed", "tier": 3, "seed": 1234003847, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "d02248017fd31ae5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33500.0, "surface_area": 16900.0, "principal_moments": [7290000.0, 14299999.999999998, 18400000.0], "n_faces": 54, "n_edges": 148, "n_vertices": 92}, "params": {"base_w": {"type": "float", "default": 68.93, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 34.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 15.8, "min": 6.3, "max": 31.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.6, "min": 1.0, "max": 9.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 7.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003847 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 68.93, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 34.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 15.8, \"min\": 6.3, \"max\": 31.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.6, \"min\": 1.0, \"max\": 9.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 7.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6788_0146", "family": "ribbed", "tier": 1, "seed": 1234003848, "symmetry": "none", "op_count": 2, "ir_hash": "3bd8d2bcdd286460", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35000.0, "surface_area": 14300.0, "principal_moments": [6380000.0, 11200000.0, 15099999.999999998], "n_faces": 54, "n_edges": 132, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 33.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 12.3, "min": 4.9, "max": 24.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.3, "min": 1.0, "max": 13.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003848 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 33.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 12.3, \"min\": 4.9, \"max\": 24.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.3, \"min\": 1.0, \"max\": 13.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6789_0147", "family": "bracket", "tier": 2, "seed": 1234003849, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "72c7b19953ce72ff", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41600.0, "surface_area": 16000.0, "principal_moments": [14599999.999999998, 38800000.0, 40500000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 77.69, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 69.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 6.9, "min": 3.0, "max": 18.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003849 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 77.69, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 69.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.9, \"min\": 3.0, \"max\": 18.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d678a_0148", "family": "bracket", "tier": 2, "seed": 1234003850, "symmetry": "none", "op_count": 1, "ir_hash": "d7a0fd4a45e26ae5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22200.0, "surface_area": 10300.0, "principal_moments": [5620000.0, 9660000.0, 11300000.0], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 48.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45.39, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.6, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003850 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 48.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45.39, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d678b_0149", "family": "revolved", "tier": 1, "seed": 1234003851, "symmetry": "none", "op_count": 1, "ir_hash": "f5768c754bcf1325", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1130000.0, "surface_area": 109000.0, "principal_moments": [1620000000.0, 6250000000.0, 6250000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 76.08, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 219.2, "min": 65.8, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 28.5, "min": 2.0, "max": 53.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 144.8, "min": 91.3, "max": 228.2, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 23.0, "min": 6.9, "max": 109.6, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003851 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 76.08, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 219.2, \"min\": 65.8, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 28.5, \"min\": 2.0, \"max\": 53.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 144.8, \"min\": 91.3, \"max\": 228.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 23.0, \"min\": 6.9, \"max\": 109.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d678c_0150", "family": "revolved", "tier": 2, "seed": 1234003852, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "e45960001b36bd9e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 67500.0, "surface_area": 18800.0, "principal_moments": [30899999.999999996, 30899999.999999996, 51699999.99999999], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 44.14, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 30.6, "min": 9.2, "max": 91.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 23.3, "min": 2.0, "max": 30.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 88.5, "min": 53.0, "max": 132.4, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.3, "min": 2.2, "max": 15.3, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 1.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003852 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 44.14, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 30.6, \"min\": 9.2, \"max\": 91.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 23.3, \"min\": 2.0, \"max\": 30.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 88.5, \"min\": 53.0, \"max\": 132.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.3, \"min\": 2.2, \"max\": 15.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 1.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.09791997072478956)\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"side_tube_d\"] / 2).extrude(p[\"side_tube_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"side_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d678e_0152", "family": "gear", "tier": 1, "seed": 1234003854, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ef5361897fc9969a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45100.0, "surface_area": 12100.0, "principal_moments": [10400000.0, 10400000.0, 15999999.999999998], "n_faces": 63, "n_edges": 183, "n_vertices": 122}, "params": {"module": {"type": "float", "default": 5.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 10, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 25.1, "min": 10.0, "max": 62.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 9.8, "min": 2.0, "max": 22.5, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003854 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 5.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 10, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 25.1, \"min\": 10.0, \"max\": 62.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 9.8, \"min\": 2.0, \"max\": 22.5, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d678f_0153", "family": "threaded", "tier": 1, "seed": 1234003855, "symmetry": "none", "op_count": 1, "ir_hash": "84887b3c61faf82f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1970.0, "surface_area": 1830.0, "principal_moments": [13200.0, 382000.0, 382000.0], "n_faces": 390, "n_edges": 1004, "n_vertices": 616}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 47.9, "min": 19.2, "max": 95.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003855 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 47.9, \"min\": 19.2, \"max\": 95.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6790_0154", "family": "revolved", "tier": 1, "seed": 1234003856, "symmetry": "none", "op_count": 1, "ir_hash": "bd61e75898c2dd47", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2210.0, "surface_area": 1200.0, "principal_moments": [70000.0, 70000.0, 72900.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 15.37, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 13.5, "min": 4.0, "max": 40.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 10.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003856 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 15.37, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 13.5, \"min\": 4.0, \"max\": 40.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 10.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6791_0155", "family": "compound", "tier": 1, "seed": 1234003857, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "98680fbeae257f85", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 582000.0, "surface_area": 48700.0, "principal_moments": [571000000.0, 756000000.0, 853000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 70.66, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 95.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 84.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_a": {"type": "float", "default": 32.5, "min": 16.2, "max": 49.5, "step": 1.0, "group": "Spigot", "label": "Spigot width (mm)"}, "spig_b": {"type": "float", "default": 19.0, "min": 9.5, "max": 49.5, "step": 1.0, "group": "Spigot", "label": "Spigot depth (mm)"}, "spig_len": {"type": "float", "default": 38.8, "min": 5.7, "max": 76.0, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.7, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003857 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70.66, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 95.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 84.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_a\": {\"type\": 'float', \"default\": 32.5, \"min\": 16.2, \"max\": 49.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot width (mm)'},\n \"spig_b\": {\"type\": 'float', \"default\": 19.0, \"min\": 9.5, \"max\": 49.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot depth (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 38.8, \"min\": 5.7, \"max\": 76.0, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.7, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .rect(p[\"spig_a\"], p[\"spig_b\"]).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6792_0156", "family": "ribbed", "tier": 1, "seed": 1234003858, "symmetry": "none", "op_count": 2, "ir_hash": "b97549206dd7f188", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19300.0, "surface_area": 11500.0, "principal_moments": [3690000.0, 5060000.0, 8170000.0], "n_faces": 36, "n_edges": 84, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 55.74, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 47.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 9.4, "min": 3.8, "max": 18.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.5, "min": 1.0, "max": 8.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003858 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 55.74, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 47.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 9.4, \"min\": 3.8, \"max\": 18.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 1.0, \"max\": 8.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6793_0157", "family": "block", "tier": 1, "seed": 1234003859, "symmetry": "none", "op_count": 2, "ir_hash": "ee48dc67ba636629", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 478000.0, "surface_area": 44200.0, "principal_moments": [490000000.0, 490000000.0, 797000000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 100.0, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 48.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003859 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 100.0, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 48.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 37.5\n _ssy = 43.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6794_0158", "family": "bracket", "tier": 1, "seed": 1234003860, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "117830056e4b4562", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 71400.0, "surface_area": 31700.0, "principal_moments": [36500000.0, 194000000.0, 200000000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 68.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 59.93, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003860 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 68.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 59.93, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6795_0159", "family": "revolved", "tier": 1, "seed": 1234003861, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "5aa6b2ef5c47c49b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 56100.0, "surface_area": 13500.0, "principal_moments": [15599999.999999998, 19000000.0, 19000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 42.99, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 58.0, "min": 17.4, "max": 174.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003861 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 42.99, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 58.0, \"min\": 17.4, \"max\": 174.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6796_0160", "family": "plate", "tier": 3, "seed": 1234003862, "symmetry": "none", "op_count": 4, "ir_hash": "39edfb44bd3890eb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2480.0, "surface_area": 1830.0, "principal_moments": [44000.0, 245000.0, 262000.0], "n_faces": 21, "n_edges": 62, "n_vertices": 40}, "params": {"plate_w": {"type": "float", "default": 34.71, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 12.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.7, "min": 2.0, "max": 2.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "cs_angle": {"type": "float", "default": 82.0, "min": 60.0, "max": 120.0, "step": 15.0, "group": "Holes", "label": "Countersink angle (\u00b0)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "boss_d": {"type": "float", "default": 9.0, "min": 4.5, "max": 18.0, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 5.2, "min": 2.1, "max": 13.0, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.3, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003862 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 34.71, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 12.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.7, \"min\": 2.0, \"max\": 2.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"cs_angle\": {\"type\": 'float', \"default\": 82.0, \"min\": 60.0, \"max\": 120.0, \"step\": 15.0, \"group\": 'Holes', \"label\": 'Countersink angle (\u00b0)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"boss_d\": {\"type\": 'float', \"default\": 9.0, \"min\": 4.5, \"max\": 18.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.1, \"max\": 13.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.3, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cskHole(p[\"hole_d\"], p[\"hole_d\"] * 2, p[\"cs_angle\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09912956261700895)\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6797_0161", "family": "bracket", "tier": 2, "seed": 1234003863, "symmetry": "none", "op_count": 1, "ir_hash": "f2106e6ed2901644", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13800.0, "surface_area": 6750.0, "principal_moments": [1710000.0, 4210000.0, 5200000.0], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 28.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 57.64, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.3, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003863 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 28.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 57.64, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6798_0162", "family": "compound", "tier": 1, "seed": 1234003864, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "7dac8e3ece6fc34e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42100.0, "surface_area": 8560.0, "principal_moments": [7560000.0, 8980000.0, 10100000.0], "n_faces": 28, "n_edges": 76, "n_vertices": 50}, "params": {"block_w": {"type": "float", "default": 40.13, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 34.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 30.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 3.6, "min": 1.8, "max": 6.8, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 8.8, "min": 1.7, "max": 20.0, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.8, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003864 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40.13, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 34.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 30.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 3.6, \"min\": 1.8, \"max\": 6.8, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 8.8, \"min\": 1.7, \"max\": 20.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.8, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6799_0163", "family": "block", "tier": 1, "seed": 1234003865, "symmetry": "none", "op_count": 2, "ir_hash": "ead5274d1351b92a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 444000.0, "surface_area": 43100.0, "principal_moments": [433000000.0, 448000000.0, 726000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 98.31, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 45.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 10.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003865 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 98.31, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 45.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 10.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d679a_0164", "family": "enclosure", "tier": 1, "seed": 1234003866, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "c0a76416e64da7e6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39000.0, "surface_area": 24300.0, "principal_moments": [16800000.0, 28099999.999999996, 32599999.999999996], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 70, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 32.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 52.8, "min": 21.1, "max": 105.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003866 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 70, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 32.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 52.8, \"min\": 21.1, \"max\": 105.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d679b_0165", "family": "threaded", "tier": 2, "seed": 1234003867, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "0b930b9a4c9626a7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1060.0, "surface_area": 1240.0, "principal_moments": [13500.0, 51000.0, 51000.0], "n_faces": 228, "n_edges": 622, "n_vertices": 396}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 22.4, "min": 9.0, "max": 44.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003867 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 22.4, \"min\": 9.0, \"max\": 44.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d679c_0166", "family": "gear", "tier": 1, "seed": 1234003868, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ac16445a3cce5cdc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8210.0, "surface_area": 4550.0, "principal_moments": [1040000.0, 1040000.0, 2030000.0], "n_faces": 177, "n_edges": 525, "n_vertices": 350}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 29, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.8, "min": 2.3, "max": 14.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 23.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003868 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 29, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.3, \"max\": 14.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 23.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d679d_0167", "family": "profiled", "tier": 2, "seed": 1234003869, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "70dd0002bb21bfb9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 352000.0, "surface_area": 68800.0, "principal_moments": [119000000.0, 1940000000.0, 1940000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 47.36, "min": 23.7, "max": 94.7, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 300.0, "min": 90.0, "max": 900.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003869 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 47.36, \"min\": 23.7, \"max\": 94.7, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 300.0, \"min\": 90.0, \"max\": 900.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d679e_0168", "family": "plate", "tier": 1, "seed": 1234003870, "symmetry": "radial", "op_count": 2, "ir_hash": "e625305f1ac392af", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 508.0, "surface_area": 708.0, "principal_moments": [5900.0, 27400.0, 33000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"plate_w": {"type": "float", "default": 25.5, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 11.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 7.6, "min": 5.1, "max": 11.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003870 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 25.5, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 11.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 7.6, \"min\": 5.1, \"max\": 11.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d679f_0169", "family": "revolved", "tier": 1, "seed": 1234003871, "symmetry": "none", "op_count": 2, "ir_hash": "17481b10c5778ceb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 388.0, "surface_area": 572.0, "principal_moments": [2180.0, 10000.0, 10000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 6.14, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 20.0, "min": 6.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003871 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 6.14, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 20.0, \"min\": 6.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d67a3_0173", "family": "plate", "tier": 1, "seed": 1234003875, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "17155789a3d542d7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5250.0, "surface_area": 3490.0, "principal_moments": [523000.0, 690000.0, 1200000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 40.15, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 34.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 7.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003875 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40.15, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 34.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 7.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d67a4_0174", "family": "ribbed", "tier": 2, "seed": 1234003876, "symmetry": "none", "op_count": 2, "ir_hash": "8e26b5a456a8a78b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8830.0, "surface_area": 3500.0, "principal_moments": [519000.0, 944000.0, 1140000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 31.32, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 20.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 5.5, "min": 2.2, "max": 11.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.6, "min": 1.0, "max": 14.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003876 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 31.32, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 20.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.2, \"max\": 11.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 1.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d67a5_0175", "family": "plate", "tier": 0, "seed": 1234003877, "symmetry": "radial", "op_count": 1, "ir_hash": "0ce1a4d67e76cf73", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25300.0, "surface_area": 10100.0, "principal_moments": [4080000.0, 19700000.0, 23699999.999999996], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 96.6, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 43.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003877 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 96.6, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 43.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d67a6_0176", "family": "ribbed", "tier": 2, "seed": 1234003878, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "bfff27ce36b2547b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 50400.0, "surface_area": 18700.0, "principal_moments": [14399999.999999998, 25899999.999999996, 33700000.0], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 72.13, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 44.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 19.4, "min": 7.8, "max": 38.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.5, "min": 1.0, "max": 13.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003878 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 72.13, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 44.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 19.4, \"min\": 7.8, \"max\": 38.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.5, \"min\": 1.0, \"max\": 13.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d67a7_0177", "family": "compound", "tier": 1, "seed": 1234003879, "symmetry": "none", "op_count": 2, "ir_hash": "1156ecddee0d477e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7630.0, "surface_area": 2830.0, "principal_moments": [393000.0, 602000.0, 712000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 20.0, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 25.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 15.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 3.0, "min": 1.5, "max": 5.2, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 11.3, "min": 1.6, "max": 20.8, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 2.4, "min": 2.0, "max": 3.7, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003879 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20.0, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 25.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 15.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.5, \"max\": 5.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 11.3, \"min\": 1.6, \"max\": 20.8, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 3.7, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d67aa_0180", "family": "plate", "tier": 0, "seed": 1234003882, "symmetry": "none", "op_count": 1, "ir_hash": "cdd4a8f62098493d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 68300.0, "surface_area": 17100.0, "principal_moments": [21100000.0, 73900000.0, 93899999.99999999], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 113.57, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 60.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003882 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 113.57, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 60.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d67ab_0181", "family": "threaded", "tier": 2, "seed": 1234003883, "symmetry": "none", "op_count": 1, "ir_hash": "ca7616402a6c81a6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16900.0, "surface_area": 5710.0, "principal_moments": [1140000.0, 2910000.0, 2910000.0], "n_faces": 90, "n_edges": 228, "n_vertices": 140}, "params": {"thread_size": {"type": "enum", "default": "1", "choices": ["1/4", "5/16", "3/8", "1/2", "5/8", "3/4", "7/8", "1", "1 1/4", "1 1/2"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 41.6, "min": 16.6, "max": 83.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003883 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '1', \"choices\": ['1/4', '5/16', '3/8', '1/2', '5/8', '3/4', '7/8', '1', '1 1/4', '1 1/2'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 41.6, \"min\": 16.6, \"max\": 83.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.AcmeThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d67ac_0182", "family": "revolved", "tier": 1, "seed": 1234003884, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "51236ec9df6d2699", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12400.0, "surface_area": 5020.0, "principal_moments": [1160000.0, 1630000.0, 1630000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 25, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 37.8, "min": 11.3, "max": 113.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003884 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 37.8, \"min\": 11.3, \"max\": 113.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d67ad_0183", "family": "enclosure", "tier": 3, "seed": 1234003885, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "6a6b59fa66c9bba6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19200.0, "surface_area": 9130.0, "principal_moments": [3150000.0, 3910000.0, 4650000.0], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 37.33, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 23.9, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 33.4, "min": 13.4, "max": 66.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.5, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003885 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 37.33, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 23.9, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 33.4, \"min\": 13.4, \"max\": 66.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.0821393971382976)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d67ae_0184", "family": "ribbed", "tier": 2, "seed": 1234003886, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "7d09eb640993bda7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12300.0, "surface_area": 9150.0, "principal_moments": [1790000.0, 2800000.0, 4000000.0], "n_faces": 46, "n_edges": 128, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 38.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 13.0, "min": 5.2, "max": 26.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.7, "min": 1.0, "max": 6.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 8.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003886 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 38.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 13.0, \"min\": 5.2, \"max\": 26.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.7, \"min\": 1.0, \"max\": 6.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 8.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d67af_0185", "family": "gear", "tier": 1, "seed": 1234003887, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "0e22ff681df7fee2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 387.0, "surface_area": 543.0, "principal_moments": [3940.0, 3940.0, 5780.0], "n_faces": 63, "n_edges": 183, "n_vertices": 122}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 10, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.7, "min": 2.3, "max": 14.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 3.0, "min": 2.0, "max": 4.5, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003887 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 10, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.3, \"max\": 14.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 4.5, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d67b0_0186", "family": "revolved", "tier": 2, "seed": 1234003888, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "f34ae965404a2787", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 336000.0, "surface_area": 48100.0, "principal_moments": [351000000.0, 406000000.0, 406000000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 50.42, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 120.2, "min": 36.1, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 103.3, "min": 60.5, "max": 151.3, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 27.5, "min": 8.2, "max": 60.1, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003888 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50.42, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 120.2, \"min\": 36.1, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 103.3, \"min\": 60.5, \"max\": 151.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 27.5, \"min\": 8.2, \"max\": 60.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d67b1_0187", "family": "bracket", "tier": 3, "seed": 1234003889, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "987e82b019504fdb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22200.0, "surface_area": 16200.0, "principal_moments": [9290000.0, 17900000.0, 18000000.0], "n_faces": 26, "n_edges": 92, "n_vertices": 56}, "params": {"base_len": {"type": "float", "default": 60, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 45.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.4, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003889 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 60, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 45.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.4, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d67b2_0188", "family": "plate", "tier": 1, "seed": 1234003890, "symmetry": "none", "op_count": 2, "ir_hash": "fff25cfc493bec64", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 50500.0, "surface_area": 12400.0, "principal_moments": [7450000.0, 46899999.99999999, 53099999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 105, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 40.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 9.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003890 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 105, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 40.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 9.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d67b3_0189", "family": "profiled", "tier": 1, "seed": 1234003891, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "5331b622f83ee8ae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6880.0, "surface_area": 2890.0, "principal_moments": [192000.0, 1380000.0, 1380000.0], "n_faces": 5, "n_edges": 9, "n_vertices": 6}, "params": {"circ_r": {"type": "float", "default": 10.58, "min": 5.3, "max": 21.2, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 3, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 47.3, "min": 14.2, "max": 141.9, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003891 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 10.58, \"min\": 5.3, \"max\": 21.2, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 3, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 47.3, \"min\": 14.2, \"max\": 141.9, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d67b4_0190", "family": "plate", "tier": 3, "seed": 1234003892, "symmetry": "radial", "op_count": 4, "ir_hash": "5c908fd2f3553591", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21800.0, "surface_area": 9290.0, "principal_moments": [2770000.0, 15999999.999999998, 18600000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 38.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 28.5, "min": 19.0, "max": 42.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "boss_d": {"type": "float", "default": 13.6, "min": 6.8, "max": 27.2, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.5, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 9.5, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003892 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 38.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 28.5, \"min\": 19.0, \"max\": 42.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"boss_d\": {\"type\": 'float', \"default\": 13.6, \"min\": 6.8, \"max\": 27.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.5, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 9.5, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.05820730444475615)\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d67b5_0191", "family": "gear", "tier": 1, "seed": 1234003893, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "04cd6fd2f5b7e238", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 191000.0, "surface_area": 43100.0, "principal_moments": [262000000.0, 262000000.0, 520000000.0], "n_faces": 219, "n_edges": 651, "n_vertices": 434}, "params": {"module": {"type": "float", "default": 4.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 36, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 12.4, "min": 5.0, "max": 31.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 30.8, "min": 2.0, "max": 80.4, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003893 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 36, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 12.4, \"min\": 5.0, \"max\": 31.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 30.8, \"min\": 2.0, \"max\": 80.4, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d67b6_0192", "family": "gear", "tier": 0, "seed": 1234003894, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "f0a3d4a77c685060", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 325000.0, "surface_area": 52200.0, "principal_moments": [470000000.0, 470000000.0, 921000000.0], "n_faces": 152, "n_edges": 450, "n_vertices": 300}, "params": {"module": {"type": "float", "default": 6.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 25, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 18.6, "min": 7.4, "max": 46.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003894 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 6.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 25, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 18.6, \"min\": 7.4, \"max\": 46.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d67b7_0193", "family": "block", "tier": 2, "seed": 1234003895, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "556df0baef71fb47", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 364000.0, "surface_area": 41400.0, "principal_moments": [320000000.0, 350000000.0, 580000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 95.21, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 38.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "boss_d": {"type": "float", "default": 12.0, "min": 6.0, "max": 24.0, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 8.7, "min": 3.5, "max": 21.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003895 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 95.21, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 38.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"boss_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 6.0, \"max\": 24.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 8.7, \"min\": 3.5, \"max\": 21.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 23.8\n _ssy = 28.0\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d67b8_0194", "family": "revolved", "tier": 1, "seed": 1234003896, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "d80b786737f7c10c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 199000.0, "surface_area": 29500.0, "principal_moments": [61699999.99999999, 322000000.0, 322000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 46.87, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 132.6, "min": 39.8, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.0, "min": 2.0, "max": 32.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.3, "min": 0.1, "max": 0.9, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003896 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 46.87, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 132.6, \"min\": 39.8, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.0, \"min\": 2.0, \"max\": 32.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.3, \"min\": 0.1, \"max\": 0.9, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.11845776627979887)\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"side_tube_d\"] / 2).extrude(p[\"side_tube_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"side_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d67be_0200", "family": "bracket", "tier": 3, "seed": 1234003902, "symmetry": "none", "op_count": 1, "ir_hash": "d81c0533dbc4e1ba", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 73100.0, "surface_area": 21800.0, "principal_moments": [35900000.0, 76400000.0, 81000000.0], "n_faces": 17, "n_edges": 39, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 75, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 78.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 59.35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 8.4, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003902 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 78.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 59.35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 8.4, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d67bf_0201", "family": "plate", "tier": 1, "seed": 1234003903, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "b1fc8e638c6cf6b7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6570.0, "surface_area": 2850.0, "principal_moments": [203000.0, 843000.0, 889000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 37.89, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 15.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003903 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 37.89, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 15.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d67c0_0202", "family": "plate", "tier": 1, "seed": 1234003904, "symmetry": "none", "op_count": 2, "ir_hash": "36590fe6f8a6d74d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3240.0, "surface_area": 1680.0, "principal_moments": [90400.0, 181000.0, 237000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 25, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 16.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003904 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 16.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(20.0, 13.4, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d67c1_0203", "family": "bracket", "tier": 1, "seed": 1234003905, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "2dfa7a319d592f79", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9710.0, "surface_area": 5750.0, "principal_moments": [1690000.0, 1930000.0, 2850000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 30.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003905 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 30.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d67c3_0205", "family": "bracket", "tier": 1, "seed": 1234003907, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "da7d8383a009250c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21900.0, "surface_area": 8900.0, "principal_moments": [5230000.0, 6650000.0, 9690000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 37.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003907 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 37.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d67c5_0207", "family": "block", "tier": 1, "seed": 1234003909, "symmetry": "none", "op_count": 2, "ir_hash": "34702dd61a502c74", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33200.0, "surface_area": 8910.0, "principal_moments": [4810000.0, 7680000.0, 10600000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 37.85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 18.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 49.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003909 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 37.85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 18.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 49.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d67c6_0208", "family": "bracket", "tier": 1, "seed": 1234003910, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "6db49711755d544e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35800.0, "surface_area": 12300.0, "principal_moments": [13399999.999999998, 46299999.99999999, 55599999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 26.12, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003910 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 26.12, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d67c8_0210", "family": "plate", "tier": 0, "seed": 1234003912, "symmetry": "radial", "op_count": 1, "ir_hash": "22afe1a9de0b6ab2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27200.0, "surface_area": 12400.0, "principal_moments": [8320000.0, 18400000.0, 26599999.999999996], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 90, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 60.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003912 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 60.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d67c9_0211", "family": "plate", "tier": 0, "seed": 1234003913, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "adfe6222d44678ef", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32000.0, "surface_area": 14400.0, "principal_moments": [13999999.999999998, 20900000.0, 34800000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 88.42, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 72.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003913 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 88.42, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 72.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d67ca_0212", "family": "bracket", "tier": 1, "seed": 1234003914, "symmetry": "none", "op_count": 1, "ir_hash": "028dc3ba07ae8ff3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21900.0, "surface_area": 16200.0, "principal_moments": [12199999.999999998, 24799999.999999996, 31899999.999999996], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 76.33, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 64.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 37.1, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003914 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 76.33, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 64.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 37.1, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d67cb_0213", "family": "bracket", "tier": 1, "seed": 1234003915, "symmetry": "none", "op_count": 1, "ir_hash": "a7b173ad7060d0c6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9190.0, "surface_area": 6900.0, "principal_moments": [1600000.0, 2620000.0, 3680000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 34.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003915 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 34.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d67d1_0219", "family": "threaded", "tier": 3, "seed": 1234003921, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "3abca4b6c87543cf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 207.0, "surface_area": 316.0, "principal_moments": [575.0, 2760.0, 2760.0], "n_faces": 337, "n_edges": 995, "n_vertices": 660}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.5, "min": 0.25, "max": 1.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 12.0, "min": 5.0, "max": 24.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003921 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.5, \"min\": 0.25, \"max\": 1.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 12.0, \"min\": 5.0, \"max\": 24.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d67d2_0220", "family": "flanged", "tier": 2, "seed": 1234003922, "symmetry": "none", "op_count": 2, "ir_hash": "04acbfae32f172ca", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20600.0, "surface_area": 8810.0, "principal_moments": [3840000.0, 3840000.0, 4220000.0], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 28.86, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 28.9, "min": 8.7, "max": 72.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 10.6, "min": 2.0, "max": 20.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 57.9, "min": 37.5, "max": 86.6, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 2.3, "min": 0.7, "max": 11.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 17.4, "min": 11.6, "max": 26.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003922 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 28.86, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 28.9, \"min\": 8.7, \"max\": 72.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 10.6, \"min\": 2.0, \"max\": 20.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 57.9, \"min\": 37.5, \"max\": 86.6, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 2.3, \"min\": 0.7, \"max\": 11.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 17.4, \"min\": 11.6, \"max\": 26.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d67d3_0221", "family": "enclosure", "tier": 1, "seed": 1234003923, "symmetry": "none", "op_count": 2, "ir_hash": "01c8ae1a18c4eb48", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6920.0, "surface_area": 4490.0, "principal_moments": [571000.0, 829000.0, 1030000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 30.06, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 15.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 24.7, "min": 9.9, "max": 49.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003923 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 30.06, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 15.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 24.7, \"min\": 9.9, \"max\": 49.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d67d5_0223", "family": "revolved", "tier": 1, "seed": 1234003925, "symmetry": "radial", "op_count": 1, "ir_hash": "ac728d6955ac79ca", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 98500.0, "surface_area": 23500.0, "principal_moments": [23599999.999999996, 92699999.99999999, 92699999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 40, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 117.6, "min": 35.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003925 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 117.6, \"min\": 35.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d67d6_0224", "family": "compound", "tier": 2, "seed": 1234003926, "symmetry": "none", "op_count": 2, "ir_hash": "b86e102194cac24e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13200.0, "surface_area": 4080.0, "principal_moments": [1440000.0, 1440000.0, 1840000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 20.32, "min": 12.2, "max": 32.5, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 9.5, "min": 3.8, "max": 23.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 15.5, "min": 7.8, "max": 28.2, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 15.9, "min": 4.8, "max": 39.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003926 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 20.32, \"min\": 12.2, \"max\": 32.5, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 9.5, \"min\": 3.8, \"max\": 23.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 15.5, \"min\": 7.8, \"max\": 28.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 15.9, \"min\": 4.8, \"max\": 39.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d67d7_0225", "family": "gear", "tier": 2, "seed": 1234003927, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "c1463eecdc1df9ae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29100.0, "surface_area": 10200.0, "principal_moments": [7930000.0, 7930000.0, 15399999.999999998], "n_faces": 225, "n_edges": 669, "n_vertices": 446}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 37, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 9.3, "min": 3.7, "max": 23.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 29.0, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.24, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.36, "min": 0.0, "max": 0.75, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 10.6, "min": 2.0, "max": 31.0, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003927 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 37, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 9.3, \"min\": 3.7, \"max\": 23.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 29.0, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.24, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.36, \"min\": 0.0, \"max\": 0.75, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 10.6, \"min\": 2.0, \"max\": 31.0, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d67d8_0226", "family": "threaded", "tier": 1, "seed": 1234003928, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "5ec0f159fdab1d1e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17300.0, "surface_area": 6880.0, "principal_moments": [2270000.0, 3010000.0, 3020000.0], "n_faces": 287, "n_edges": 817, "n_vertices": 532}, "params": {"major_d": {"type": "float", "default": 16.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.0, "min": 1.0, "max": 4.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 36.2, "min": 14.5, "max": 72.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003928 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 4.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 36.2, \"min\": 14.5, \"max\": 72.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d67d9_0227", "family": "revolved", "tier": 1, "seed": 1234003929, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "aac25bddc21e55e6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 322000.0, "surface_area": 46600.0, "principal_moments": [117000000.0, 1090000000.0, 1090000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 50, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 196.2, "min": 58.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 20.3, "min": 2.0, "max": 35.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003929 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 196.2, \"min\": 58.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 20.3, \"min\": 2.0, \"max\": 35.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d67da_0228", "family": "threaded", "tier": 3, "seed": 1234003930, "symmetry": "none", "op_count": 1, "ir_hash": "dbdd3904b285b2b9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5150.0, "surface_area": 3150.0, "principal_moments": [262000.0, 449000.0, 449000.0], "n_faces": 151, "n_edges": 545, "n_vertices": 396}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 27.3, "min": 10.9, "max": 54.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003930 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 27.3, \"min\": 10.9, \"max\": 54.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d67db_0229", "family": "flanged", "tier": 1, "seed": 1234003931, "symmetry": "none", "op_count": 2, "ir_hash": "ddc7a23a390ee08c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 461000.0, "surface_area": 73000.0, "principal_moments": [710000000.0, 710000000.0, 1090000000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 91.62, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 60.1, "min": 18.0, "max": 150.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 40.4, "min": 2.0, "max": 64.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 174.9, "min": 119.1, "max": 274.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.2, "min": 2.5, "max": 24.0, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 52.5, "min": 35.0, "max": 78.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003931 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 91.62, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 60.1, \"min\": 18.0, \"max\": 150.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 40.4, \"min\": 2.0, \"max\": 64.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 174.9, \"min\": 119.1, \"max\": 274.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.2, \"min\": 2.5, \"max\": 24.0, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 52.5, \"min\": 35.0, \"max\": 78.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d67dc_0230", "family": "plate", "tier": 1, "seed": 1234003932, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "5dadc4e8cdba95bb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6830.0, "surface_area": 2920.0, "principal_moments": [235000.0, 944000.0, 1060000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 39.93, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 17.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003932 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 39.93, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 17.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d67de_0232", "family": "bracket", "tier": 2, "seed": 1234003934, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "a3cc359e15304082", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16300.0, "surface_area": 11600.0, "principal_moments": [4500000.0, 14999999.999999998, 17500000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 72.51, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 83.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 29.82, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.9, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003934 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 72.51, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 83.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 29.82, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.9, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d67df_0233", "family": "ribbed", "tier": 1, "seed": 1234003935, "symmetry": "none", "op_count": 2, "ir_hash": "5ff851cccec6a558", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15400.0, "surface_area": 12700.0, "principal_moments": [3400000.0, 7630000.0, 10500000.0], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 74.81, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 41.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 11.1, "min": 4.4, "max": 22.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.3, "min": 1.0, "max": 5.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003935 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 74.81, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 41.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 11.1, \"min\": 4.4, \"max\": 22.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.3, \"min\": 1.0, \"max\": 5.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d67e0_0234", "family": "compound", "tier": 2, "seed": 1234003936, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "c632815d2ee9c9b3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 59100.0, "surface_area": 9910.0, "principal_moments": [11899999.999999998, 22500000.0, 22500000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 25, "min": 15.0, "max": 40.0, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 24.3, "min": 9.7, "max": 60.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 26.0, "min": 13.0, "max": 34.6, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 37.0, "min": 11.1, "max": 92.5, "step": 1.0, "group": "Column", "label": "Column height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003936 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 24.3, \"min\": 9.7, \"max\": 60.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 26.0, \"min\": 13.0, \"max\": 34.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 37.0, \"min\": 11.1, \"max\": 92.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d67e2_0236", "family": "bracket", "tier": 1, "seed": 1234003938, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "6333510b5dd1cd68", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12100.0, "surface_area": 7100.0, "principal_moments": [2400000.0, 3720000.0, 4590000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 40, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 40.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003938 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 40, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 40.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n if p[\"chamfered\"]:\n result = result.edges('X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.06835382212618568)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d67e5_0239", "family": "block", "tier": 1, "seed": 1234003941, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "36a3ba1a0643147a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 508000.0, "surface_area": 47100.0, "principal_moments": [437000000.0, 618000000.0, 665000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 76.19, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 68.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003941 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 76.19, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 68.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d67e6_0240", "family": "block", "tier": 1, "seed": 1234003942, "symmetry": "none", "op_count": 2, "ir_hash": "509d1abb899dad8a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9950.0, "surface_area": 4500.0, "principal_moments": [595000.0, 1360000.0, 1770000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 10.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 39.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.4, "min": 2.0, "max": 2.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003942 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 10.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 39.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 2.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d67e7_0241", "family": "threaded", "tier": 2, "seed": 1234003943, "symmetry": "none", "op_count": 1, "ir_hash": "eec47843018ad453", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1290.0, "surface_area": 1650.0, "principal_moments": [5370.0, 298000.0, 298000.0], "n_faces": 340, "n_edges": 874, "n_vertices": 536}, "params": {"thread_size": {"type": "enum", "default": "1/4", "choices": ["1/4", "5/16", "3/8", "1/2", "5/8", "3/4", "7/8", "1", "1 1/4", "1 1/2"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 52.7, "min": 21.1, "max": 105.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003943 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '1/4', \"choices\": ['1/4', '5/16', '3/8', '1/2', '5/8', '3/4', '7/8', '1', '1 1/4', '1 1/2'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 52.7, \"min\": 21.1, \"max\": 105.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.AcmeThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d67e8_0242", "family": "compound", "tier": 1, "seed": 1234003944, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "b315855181a36a1c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18700.0, "surface_area": 6220.0, "principal_moments": [1040000.0, 7360000.0, 7360000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 21.74, "min": 10.9, "max": 39.1, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 45.4, "min": 18.2, "max": 90.8, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 10.5, "min": 5.2, "max": 19.6, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 37.0, "min": 11.1, "max": 92.5, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 4.6, "min": 2.0, "max": 7.6, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003944 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 21.74, \"min\": 10.9, \"max\": 39.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 45.4, \"min\": 18.2, \"max\": 90.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 5.2, \"max\": 19.6, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 37.0, \"min\": 11.1, \"max\": 92.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 4.6, \"min\": 2.0, \"max\": 7.6, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d67e9_0243", "family": "plate", "tier": 1, "seed": 1234003945, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "cfaddf028f151eea", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9080.0, "surface_area": 3770.0, "principal_moments": [440000.0, 1990000.0, 2330000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 50.96, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 22.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003945 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50.96, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 22.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d67ea_0244", "family": "revolved", "tier": 0, "seed": 1234003946, "symmetry": "none", "op_count": 1, "ir_hash": "9aaa0273a63e0990", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 341000.0, "surface_area": 58400.0, "principal_moments": [155000000.0, 1020000000.0, 1020000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 55, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 215.4, "min": 64.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003946 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 215.4, \"min\": 64.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d67eb_0245", "family": "bracket", "tier": 3, "seed": 1234003947, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "767554b145b4d4ba", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27200.0, "surface_area": 13000.0, "principal_moments": [8280000.0, 11499999.999999998, 13099999.999999998], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 35.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 59.01, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.9, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003947 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 35.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 59.01, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.9, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d67ec_0246", "family": "plate", "tier": 1, "seed": 1234003948, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "9ad28a1ce6d6328a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21100.0, "surface_area": 6300.0, "principal_moments": [1400000.0, 8800000.0, 9690000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 70, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 25.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003948 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 25.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d67ed_0247", "family": "revolved", "tier": 2, "seed": 1234003949, "symmetry": "radial", "op_count": 2, "ir_hash": "4d3f352a015c5ce3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 53600.0, "surface_area": 13700.0, "principal_moments": [18900000.0, 18900000.0, 34000000.0], "n_faces": 9, "n_edges": 14, "n_vertices": 9}, "params": {"outer_d": {"type": "float", "default": 65.5, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 24.6, "min": 7.4, "max": 73.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "groove_depth": {"type": "float", "default": 3.44, "min": 1.38, "max": 10.32, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 2.37, "min": 0.95, "max": 7.11, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 7.4, "min": 3.7, "max": 20.9, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.6, "min": 0.1, "max": 1.8, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003949 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65.5, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 24.6, \"min\": 7.4, \"max\": 73.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 3.44, \"min\": 1.38, \"max\": 10.32, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 2.37, \"min\": 0.95, \"max\": 7.11, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 7.4, \"min\": 3.7, \"max\": 20.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.6, \"min\": 0.1, \"max\": 1.8, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.07543146269922302)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d67f3_0253", "family": "plate", "tier": 1, "seed": 1234003955, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "0ba96444b44323fc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19800.0, "surface_area": 9510.0, "principal_moments": [6080000.0, 7210000.0, 13199999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 66.33, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 60.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003955 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 66.33, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 60.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d67f4_0254", "family": "enclosure", "tier": 1, "seed": 1234003956, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "b28f1c1cf6066d35", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 53900.0, "surface_area": 42300.0, "principal_moments": [42300000.0, 80300000.0, 93499999.99999999], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 100, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 59.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 50.8, "min": 20.3, "max": 101.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003956 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 100, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 59.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 50.8, \"min\": 20.3, \"max\": 101.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d67f5_0255", "family": "compound", "tier": 2, "seed": 1234003957, "symmetry": "none", "op_count": 3, "ir_hash": "3fb86b131fc7e3a5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 189000.0, "surface_area": 40900.0, "principal_moments": [269000000.0, 280000000.0, 307000000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"base_w": {"type": "float", "default": 95, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 105.2, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 16.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 12.3, "min": 6.2, "max": 23.8, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 118.8, "min": 35.6, "max": 356.4, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 12.8, "min": 2.0, "max": 15.3, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003957 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 95, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 105.2, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 16.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 12.3, \"min\": 6.2, \"max\": 23.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 118.8, \"min\": 35.6, \"max\": 356.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 12.8, \"min\": 2.0, \"max\": 15.3, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d67f6_0256", "family": "plate", "tier": 3, "seed": 1234003958, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "7340a2b6263e981d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2880.0, "surface_area": 1850.0, "principal_moments": [120000.0, 150000.0, 255000.0], "n_faces": 28, "n_edges": 84, "n_vertices": 54}, "params": {"plate_w": {"type": "float", "default": 26.66, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 23.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 5.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "cs_angle": {"type": "float", "default": 82.0, "min": 60.0, "max": 120.0, "step": 15.0, "group": "Holes", "label": "Countersink angle (\u00b0)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "chamfer_d": {"type": "float", "default": 0.7, "min": 0.5, "max": 3.0, "step": 0.5, "group": "Body", "label": "Chamfer distance (mm)"}, "chamfered": {"type": "bool", "default": true, "group": "Body", "label": "Chamfer edges"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003958 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 26.66, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 23.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 5.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"cs_angle\": {\"type\": 'float', \"default\": 82.0, \"min\": 60.0, \"max\": 120.0, \"step\": 15.0, \"group\": 'Holes', \"label\": 'Countersink angle (\u00b0)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"chamfer_d\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.5, \"max\": 3.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Chamfer distance (mm)'},\n \"chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Chamfer edges'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cskHole(p[\"hole_d\"], p[\"hole_d\"] * 2, p[\"cs_angle\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.10202945988476365)\n if p[\"chamfered\"]:\n result = result.edges('>Z').chamfer(p[\"chamfer_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d67f8_0258", "family": "revolved", "tier": 0, "seed": 1234003960, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "d92937706bb28c06", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1140.0, "surface_area": 1110.0, "principal_moments": [17000.0, 40300.0, 40300.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 10, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 21.7, "min": 6.5, "max": 65.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003960 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 10, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 21.7, \"min\": 6.5, \"max\": 65.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d67f9_0259", "family": "threaded", "tier": 1, "seed": 1234003961, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "c43c7598519d1c38", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14800.0, "surface_area": 7210.0, "principal_moments": [1080000.0, 4150000.0, 4150000.0], "n_faces": 375, "n_edges": 1055, "n_vertices": 682}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 54.3, "min": 21.7, "max": 108.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003961 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 54.3, \"min\": 21.7, \"max\": 108.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d67fa_0260", "family": "block", "tier": 3, "seed": 1234003962, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "ff226e32a7ae7c87", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 295000.0, "surface_area": 40100.0, "principal_moments": [190000000.0, 285000000.0, 400000000.0], "n_faces": 23, "n_edges": 61, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 78.59, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 38.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "boss_d": {"type": "float", "default": 15.2, "min": 7.6, "max": 30.4, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 6.0, "min": 2.4, "max": 15.0, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 10.6, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}, "filleted2": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003962 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 78.59, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 38.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"boss_d\": {\"type\": 'float', \"default\": 15.2, \"min\": 7.6, \"max\": 30.4, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.4, \"max\": 15.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 10.6, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n \"filleted2\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 14.7\n _ssy = 13.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.04979095351266384)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d67fb_0261", "family": "bracket", "tier": 1, "seed": 1234003963, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "60a40b3f17904908", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19700.0, "surface_area": 14400.0, "principal_moments": [9200000.0, 10500000.0, 12599999.999999998], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 44.67, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 52.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 46.32, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003963 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 44.67, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 52.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 46.32, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d67fc_0262", "family": "revolved", "tier": 0, "seed": 1234003964, "symmetry": "radial", "op_count": 1, "ir_hash": "7b0bf138d9f4fcbf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 268000.0, "surface_area": 37900.0, "principal_moments": [217000000.0, 252000000.0, 252000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 73.44, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 95.0, "min": 28.5, "max": 285.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003964 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 73.44, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 95.0, \"min\": 28.5, \"max\": 285.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d67fe_0264", "family": "enclosure", "tier": 2, "seed": 1234003966, "symmetry": "none", "op_count": 3, "ir_hash": "8182ee261dfe0283", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 44700.0, "surface_area": 36500.0, "principal_moments": [33199999.999999996, 42800000.0, 52599999.99999999], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 75, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 41.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 69.6, "min": 27.8, "max": 139.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.5, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003966 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 75, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 41.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 69.6, \"min\": 27.8, \"max\": 139.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.5, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d67ff_0265", "family": "block", "tier": 1, "seed": 1234003967, "symmetry": "none", "op_count": 2, "ir_hash": "b0e6ad50120e5764", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 153000.0, "surface_area": 22000.0, "principal_moments": [50999999.99999999, 105000000.0, 106000000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 44.99, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 43.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 79.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003967 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 44.99, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 43.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 79.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 16.9\n _ssy = 14.0\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6800_0266", "family": "threaded", "tier": 0, "seed": 1234003968, "symmetry": "none", "op_count": 1, "ir_hash": "e34ea8f9bba90d62", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 418.0, "surface_area": 625.0, "principal_moments": [1090.0, 24100.0, 24100.0], "n_faces": 330, "n_edges": 848, "n_vertices": 520}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 26.1, "min": 10.4, "max": 52.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003968 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 26.1, \"min\": 10.4, \"max\": 52.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6801_0267", "family": "bracket", "tier": 2, "seed": 1234003969, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "45d19537031c8e1d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25300.0, "surface_area": 8480.0, "principal_moments": [4440000.0, 10500000.0, 11100000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 41.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 10.5, "min": 4.0, "max": 17.5, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003969 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 41.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 10.5, \"min\": 4.0, \"max\": 17.5, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6802_0268", "family": "revolved", "tier": 2, "seed": 1234003970, "symmetry": "radial", "op_count": 1, "ir_hash": "fea3c65d33d690fc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 709000.0, "surface_area": 78000.0, "principal_moments": [444000000.0, 3860000000.0, 3860000000.0], "n_faces": 8, "n_edges": 12, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 66.19, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 246.6, "min": 74.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 25.9, "min": 2.0, "max": 46.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 2.73, "min": 1.09, "max": 8.19, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 17.66, "min": 7.06, "max": 52.98, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 111.5, "min": 37.0, "max": 209.6, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003970 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 66.19, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 246.6, \"min\": 74.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 25.9, \"min\": 2.0, \"max\": 46.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 2.73, \"min\": 1.09, \"max\": 8.19, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 17.66, \"min\": 7.06, \"max\": 52.98, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 111.5, \"min\": 37.0, \"max\": 209.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6803_0269", "family": "block", "tier": 2, "seed": 1234003971, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "7d3eb7e4fd92b7dd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1450.0, "surface_area": 1540.0, "principal_moments": [36300.0, 44500.0, 64500.0], "n_faces": 23, "n_edges": 75, "n_vertices": 50}, "params": {"block_w": {"type": "float", "default": 16.23, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 7.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 15.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.4, "min": 2.0, "max": 0.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "pocket_w": {"type": "float", "default": 9.7, "min": 4.8, "max": 13.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 3.1, "min": 1.6, "max": 6.1, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 9.0, "min": 3.6, "max": 12.9, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003971 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 16.23, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 7.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 15.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.4, \"min\": 2.0, \"max\": 0.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"pocket_w\": {\"type\": 'float', \"default\": 9.7, \"min\": 4.8, \"max\": 13.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 3.1, \"min\": 1.6, \"max\": 6.1, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 9.0, \"min\": 3.6, \"max\": 12.9, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 4.1\n _ssy = 4.0\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6804_0270", "family": "enclosure", "tier": 2, "seed": 1234003972, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "c7740fc84e2ccb82", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18400.0, "surface_area": 12000.0, "principal_moments": [3480000.0, 7780000.0, 7850000.0], "n_faces": 19, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 55, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 27.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 30.9, "min": 12.4, "max": 61.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.5, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003972 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 55, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 27.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 30.9, \"min\": 12.4, \"max\": 61.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6805_0271", "family": "flanged", "tier": 1, "seed": 1234003973, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "d175bf16d2d0b88e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 170000.0, "surface_area": 35300.0, "principal_moments": [136000000.0, 151000000.0, 151000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 56.4, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 69.7, "min": 20.9, "max": 174.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 29.0, "min": 2.0, "max": 39.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 101.8, "min": 73.3, "max": 169.2, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.6, "min": 2.3, "max": 27.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 30.5, "min": 20.4, "max": 45.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003973 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 56.4, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 69.7, \"min\": 20.9, \"max\": 174.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 29.0, \"min\": 2.0, \"max\": 39.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 101.8, \"min\": 73.3, \"max\": 169.2, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.6, \"min\": 2.3, \"max\": 27.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 30.5, \"min\": 20.4, \"max\": 45.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6806_0272", "family": "flanged", "tier": 1, "seed": 1234003974, "symmetry": "none", "op_count": 2, "ir_hash": "783354b22837a326", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 222000.0, "surface_area": 39400.0, "principal_moments": [173000000.0, 173000000.0, 205000000.0], "n_faces": 29, "n_edges": 114, "n_vertices": 76}, "params": {"outer_d": {"type": "float", "default": 66.61, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 57.8, "min": 17.3, "max": 144.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 21.4, "min": 2.0, "max": 46.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 106.8, "min": 86.6, "max": 199.8, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.9, "min": 3.0, "max": 23.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 32.0, "min": 21.4, "max": 48.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003974 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 66.61, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 57.8, \"min\": 17.3, \"max\": 144.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 21.4, \"min\": 2.0, \"max\": 46.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 106.8, \"min\": 86.6, \"max\": 199.8, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.9, \"min\": 3.0, \"max\": 23.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 32.0, \"min\": 21.4, \"max\": 48.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6807_0273", "family": "block", "tier": 3, "seed": 1234003975, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "03809d7706cc66c5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 186000.0, "surface_area": 26400.0, "principal_moments": [95699999.99999999, 98999999.99999999, 129000000.0], "n_faces": 44, "n_edges": 123, "n_vertices": 82}, "params": {"block_w": {"type": "float", "default": 65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 47.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 65.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 7.7, "min": 2.0, "max": 13.7, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "boss_d": {"type": "float", "default": 8.3, "min": 4.2, "max": 16.6, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 4.4, "min": 1.8, "max": 11.0, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "filleted2": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003975 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 47.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 65.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 7.7, \"min\": 2.0, \"max\": 13.7, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 8.3, \"min\": 4.2, \"max\": 16.6, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 4.4, \"min\": 1.8, \"max\": 11.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"filleted2\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.07703004741637032)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6808_0274", "family": "revolved", "tier": 0, "seed": 1234003976, "symmetry": "none", "op_count": 1, "ir_hash": "fc2120330179e3a6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 249000.0, "surface_area": 40500.0, "principal_moments": [134000000.0, 325000000.0, 325000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 60, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 132.0, "min": 39.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003976 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 132.0, \"min\": 39.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6809_0275", "family": "flanged", "tier": 2, "seed": 1234003977, "symmetry": "radial", "op_count": 2, "ir_hash": "0133710e3f62e4bf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 50000.0, "surface_area": 14600.0, "principal_moments": [15699999.999999998, 15699999.999999998, 23999999.999999996], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 40.36, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 28.3, "min": 8.5, "max": 70.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 12.7, "min": 2.0, "max": 28.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 76.8, "min": 52.5, "max": 121.1, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.4, "min": 1.6, "max": 11.3, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 23.0, "min": 15.4, "max": 34.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003977 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40.36, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 28.3, \"min\": 8.5, \"max\": 70.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 12.7, \"min\": 2.0, \"max\": 28.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 76.8, \"min\": 52.5, \"max\": 121.1, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.4, \"min\": 1.6, \"max\": 11.3, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 23.0, \"min\": 15.4, \"max\": 34.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d680a_0276", "family": "compound", "tier": 1, "seed": 1234003978, "symmetry": "none", "op_count": 2, "ir_hash": "dec3c05898f229bf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 131000.0, "surface_area": 16700.0, "principal_moments": [45400000.0, 66099999.99999999, 68900000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 45, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 58.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 48.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_a": {"type": "float", "default": 16.6, "min": 8.3, "max": 31.5, "step": 1.0, "group": "Spigot", "label": "Spigot width (mm)"}, "spig_b": {"type": "float", "default": 11.5, "min": 5.8, "max": 31.5, "step": 1.0, "group": "Spigot", "label": "Spigot depth (mm)"}, "spig_len": {"type": "float", "default": 27.8, "min": 3.4, "max": 46.0, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003978 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 58.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 48.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_a\": {\"type\": 'float', \"default\": 16.6, \"min\": 8.3, \"max\": 31.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot width (mm)'},\n \"spig_b\": {\"type\": 'float', \"default\": 11.5, \"min\": 5.8, \"max\": 31.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot depth (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 27.8, \"min\": 3.4, \"max\": 46.0, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6811_0283", "family": "threaded", "tier": 1, "seed": 1234003985, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "49a942a77e1b2a56", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 394.0, "surface_area": 590.0, "principal_moments": [1030.0, 20200.0, 20200.0], "n_faces": 315, "n_edges": 811, "n_vertices": 498}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 24.6, "min": 9.8, "max": 49.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003985 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 24.6, \"min\": 9.8, \"max\": 49.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6812_0284", "family": "block", "tier": 2, "seed": 1234003986, "symmetry": "none", "op_count": 3, "ir_hash": "0913c72eb13406b8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2730.0, "surface_area": 2350.0, "principal_moments": [83400.0, 125000.0, 131000.0], "n_faces": 27, "n_edges": 84, "n_vertices": 56}, "params": {"block_w": {"type": "float", "default": 20, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 14.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 13.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 4.2, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "pocket_w": {"type": "float", "default": 12.2, "min": 6.1, "max": 16.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 7.2, "min": 3.6, "max": 11.5, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 4.7, "min": 1.9, "max": 11.6, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003986 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 14.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 13.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 4.2, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 12.2, \"min\": 6.1, \"max\": 16.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 7.2, \"min\": 3.6, \"max\": 11.5, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 4.7, \"min\": 1.9, \"max\": 11.6, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6813_0285", "family": "threaded", "tier": 1, "seed": 1234003987, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "87da2696f062053c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5040.0, "surface_area": 3140.0, "principal_moments": [76700.0, 1240000.0, 1240000.0], "n_faces": 314, "n_edges": 808, "n_vertices": 496}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 53.7, "min": 21.5, "max": 107.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003987 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 53.7, \"min\": 21.5, \"max\": 107.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6815_0287", "family": "revolved", "tier": 2, "seed": 1234003989, "symmetry": "radial", "op_count": 1, "ir_hash": "e04b43b1c3f09297", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 525000.0, "surface_area": 72400.0, "principal_moments": [375000000.0, 1560000000.0, 1560000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 69.06, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 210.1, "min": 63.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003989 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 69.06, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 210.1, \"min\": 63.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6816_0288", "family": "revolved", "tier": 2, "seed": 1234003990, "symmetry": "none", "op_count": 1, "ir_hash": "9cc90ce57175165f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11200.0, "surface_area": 4920.0, "principal_moments": [1200000.0, 1200000.0, 1900000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 28.57, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 19.6, "min": 5.9, "max": 58.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 40.3, "min": 34.3, "max": 85.7, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.5, "min": 1.3, "max": 9.8, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003990 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 28.57, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 19.6, \"min\": 5.9, \"max\": 58.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 40.3, \"min\": 34.3, \"max\": 85.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.3, \"max\": 9.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6817_0289", "family": "revolved", "tier": 1, "seed": 1234003991, "symmetry": "none", "op_count": 1, "ir_hash": "bb8faab7ee940eeb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 91500.0, "surface_area": 18000.0, "principal_moments": [47999999.99999999, 47999999.99999999, 87800000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 80.0, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 27.3, "min": 8.2, "max": 81.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003991 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 80.0, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 27.3, \"min\": 8.2, \"max\": 81.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6818_0290", "family": "bracket", "tier": 1, "seed": 1234003992, "symmetry": "none", "op_count": 1, "ir_hash": "56ec85aa37ee3589", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 98800.0, "surface_area": 30000.0, "principal_moments": [103000000.0, 138000000.0, 199000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003992 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6819_0291", "family": "plate", "tier": 3, "seed": 1234003993, "symmetry": "none", "op_count": 4, "ir_hash": "ab7c34b81919a436", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4740.0, "surface_area": 4620.0, "principal_moments": [558000.0, 1280000.0, 1840000.0], "n_faces": 19, "n_edges": 60, "n_vertices": 40}, "params": {"plate_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 36.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 8.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "pocket_w": {"type": "float", "default": 35.9, "min": 17.9, "max": 44.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 23.8, "min": 11.9, "max": 29.0, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 1.1, "min": 0.4, "max": 2.5, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003993 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 36.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 8.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"pocket_w\": {\"type\": 'float', \"default\": 35.9, \"min\": 17.9, \"max\": 44.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 23.8, \"min\": 11.9, \"max\": 29.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 1.1, \"min\": 0.4, \"max\": 2.5, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.10561051232395804)\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d681a_0292", "family": "bracket", "tier": 1, "seed": 1234003994, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "41bf29c43b2104fa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18900.0, "surface_area": 10900.0, "principal_moments": [5490000.0, 16699999.999999998, 18300000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 75, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 64.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003994 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 64.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d681e_0296", "family": "enclosure", "tier": 1, "seed": 1234003998, "symmetry": "none", "op_count": 2, "ir_hash": "30cb459889f3dd99", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 186000.0, "surface_area": 70900.0, "principal_moments": [282000000.0, 386000000.0, 458000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 110, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 83.3, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 74.6, "min": 29.8, "max": 149.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.4, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003998 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 110, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 83.3, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 74.6, \"min\": 29.8, \"max\": 149.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.4, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d681f_0297", "family": "block", "tier": 2, "seed": 1234003999, "symmetry": "none", "op_count": 3, "ir_hash": "c04e6966e1b80b6a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 51400.0, "surface_area": 15900.0, "principal_moments": [11399999.999999998, 17300000.0, 22400000.0], "n_faces": 27, "n_edges": 72, "n_vertices": 48}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 26.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 46.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.2, "min": 2.0, "max": 7.8, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "pocket_w": {"type": "float", "default": 31.8, "min": 15.9, "max": 44.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 18.1, "min": 9.1, "max": 21.2, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 18.5, "min": 7.4, "max": 39.1, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003999 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 26.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 46.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 7.8, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 31.8, \"min\": 15.9, \"max\": 44.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 18.1, \"min\": 9.1, \"max\": 21.2, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 18.5, \"min\": 7.4, \"max\": 39.1, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6820_0298", "family": "plate", "tier": 2, "seed": 1234004000, "symmetry": "radial", "op_count": 3, "ir_hash": "4e32f62703e15815", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1230.0, "surface_area": 1020.0, "principal_moments": [15600.0, 66200.0, 74400.0], "n_faces": 20, "n_edges": 54, "n_vertices": 36}, "params": {"plate_w": {"type": "float", "default": 25, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 10.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 7.5, "min": 5.0, "max": 11.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004000 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 7.5, \"min\": 5.0, \"max\": 11.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.058481725935347395)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6821_0299", "family": "revolved", "tier": 1, "seed": 1234004001, "symmetry": "radial", "op_count": 1, "ir_hash": "7efd59c61ef79517", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27700.0, "surface_area": 9110.0, "principal_moments": [3740000.0, 7560000.0, 7560000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 30, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 58.8, "min": 17.6, "max": 176.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004001 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 58.8, \"min\": 17.6, \"max\": 176.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6822_0300", "family": "bracket", "tier": 3, "seed": 1234004002, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "dae2f3cd6e4641c8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 50300.0, "surface_area": 23100.0, "principal_moments": [21200000.0, 107000000.0, 112000000.0], "n_faces": 22, "n_edges": 70, "n_vertices": 44}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 87.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 56.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 5.2, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004002 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 87.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 56.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6823_0301", "family": "revolved", "tier": 1, "seed": 1234004003, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "8f02a13570024886", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11900.0, "surface_area": 5530.0, "principal_moments": [1130000.0, 1870000.0, 1870000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 19.32, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 42.4, "min": 12.7, "max": 127.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 33.5, "min": 23.2, "max": 58.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.1, "min": 1.8, "max": 21.2, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.6, "min": 0.1, "max": 1.8, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004003 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 19.32, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 42.4, \"min\": 12.7, \"max\": 127.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 33.5, \"min\": 23.2, \"max\": 58.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.1, \"min\": 1.8, \"max\": 21.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.6, \"min\": 0.1, \"max\": 1.8, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_r\"], p[\"base_r\"]) * 0.0655192897854174)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6825_0303", "family": "flanged", "tier": 1, "seed": 1234004005, "symmetry": "none", "op_count": 2, "ir_hash": "f12380367bb6f009", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1110000.0, "surface_area": 121000.0, "principal_moments": [3160000000.0, 3160000000.0, 3610000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 95, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 111.6, "min": 33.5, "max": 279.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 30.6, "min": 2.0, "max": 66.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 213.4, "min": 123.5, "max": 285.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 14.0, "min": 4.2, "max": 44.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 64.0, "min": 42.7, "max": 96.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004005 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 111.6, \"min\": 33.5, \"max\": 279.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 30.6, \"min\": 2.0, \"max\": 66.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 213.4, \"min\": 123.5, \"max\": 285.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 14.0, \"min\": 4.2, \"max\": 44.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 64.0, \"min\": 42.7, \"max\": 96.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6826_0304", "family": "revolved", "tier": 2, "seed": 1234004006, "symmetry": "radial", "op_count": 1, "ir_hash": "ffffeff0417fadfb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1260.0, "surface_area": 1390.0, "principal_moments": [13700.0, 89800.0, 89800.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 8.5, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 33.3, "min": 10.0, "max": 99.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004006 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 8.5, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 33.3, \"min\": 10.0, \"max\": 99.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6827_0305", "family": "bracket", "tier": 3, "seed": 1234004007, "symmetry": "none", "op_count": 1, "ir_hash": "f698b4cf98a87753", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25600.0, "surface_area": 13800.0, "principal_moments": [8340000.0, 17100000.0, 18500000.0], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 58.14, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 63.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.7, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004007 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 58.14, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 63.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6828_0306", "family": "enclosure", "tier": 1, "seed": 1234004008, "symmetry": "none", "op_count": 2, "ir_hash": "a4d5c1f41d0493af", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 191000.0, "surface_area": 73700.0, "principal_moments": [284000000.0, 355000000.0, 459000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 108.06, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 56.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 102.2, "min": 40.9, "max": 204.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004008 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 108.06, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 56.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 102.2, \"min\": 40.9, \"max\": 204.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6829_0307", "family": "revolved", "tier": 2, "seed": 1234004009, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "528150693661fb9c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27700.0, "surface_area": 9050.0, "principal_moments": [2700000.0, 12899999.999999998, 12899999.999999998], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 25.28, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 70.8, "min": 21.2, "max": 212.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 11.9, "min": 2.0, "max": 17.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004009 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25.28, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 70.8, \"min\": 21.2, \"max\": 212.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 11.9, \"min\": 2.0, \"max\": 17.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d682a_0308", "family": "block", "tier": 1, "seed": 1234004010, "symmetry": "none", "op_count": 2, "ir_hash": "21f427f8391cbc9f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7710.0, "surface_area": 4290.0, "principal_moments": [421000.0, 717000.0, 971000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 23.86, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 11.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 31.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.1, "min": 2.0, "max": 3.5, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004010 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 23.86, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 11.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 31.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.1, \"min\": 2.0, \"max\": 3.5, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d682d_0311", "family": "bracket", "tier": 2, "seed": 1234004013, "symmetry": "none", "op_count": 1, "ir_hash": "69a51d80835e70a6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 46600.0, "surface_area": 14700.0, "principal_moments": [17200000.0, 27799999.999999996, 29399999.999999996], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 45.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 44.76, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 10.8, "min": 4.0, "max": 22.4, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004013 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 45.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 44.76, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 10.8, \"min\": 4.0, \"max\": 22.4, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d682e_0312", "family": "compound", "tier": 1, "seed": 1234004014, "symmetry": "none", "op_count": 3, "ir_hash": "3259d88b04a9e5b8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 268000.0, "surface_area": 32800.0, "principal_moments": [146000000.0, 244000000.0, 255000000.0], "n_faces": 14, "n_edges": 34, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 86.78, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 52.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 59.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 17.8, "min": 7.1, "max": 23.7, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 21.6, "min": 4.5, "max": 53.4, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 9.4, "min": 2.0, "max": 12.8, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004014 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 86.78, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 52.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 59.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 17.8, \"min\": 7.1, \"max\": 23.7, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 21.6, \"min\": 4.5, \"max\": 53.4, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 9.4, \"min\": 2.0, \"max\": 12.8, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6830_0314", "family": "profiled", "tier": 0, "seed": 1234004016, "symmetry": "none", "op_count": 1, "ir_hash": "a23fcdc5f85b00f4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28800.0, "surface_area": 6810.0, "principal_moments": [1300000.0, 25699999.999999996, 25699999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"circ_r": {"type": "float", "default": 10, "min": 5.0, "max": 20.0, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 102.0, "min": 30.6, "max": 306.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004016 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 10, \"min\": 5.0, \"max\": 20.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 102.0, \"min\": 30.6, \"max\": 306.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6831_0315", "family": "threaded", "tier": 1, "seed": 1234004017, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "16661a3b494c59a6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7020.0, "surface_area": 3690.0, "principal_moments": [515000.0, 648000.0, 648000.0], "n_faces": 176, "n_edges": 492, "n_vertices": 318}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 25.9, "min": 10.4, "max": 51.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004017 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 25.9, \"min\": 10.4, \"max\": 51.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6832_0316", "family": "bracket", "tier": 1, "seed": 1234004018, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "d33bbf3b2fe1cc3b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27400.0, "surface_area": 15800.0, "principal_moments": [7120000.0, 55299999.99999999, 57499999.99999999], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 81.06, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 61.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 32.65, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 75.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004018 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 81.06, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 61.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 32.65, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 75.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6833_0317", "family": "compound", "tier": 1, "seed": 1234004019, "symmetry": "none", "op_count": 2, "ir_hash": "a6783a089dc0ea9f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 286000.0, "surface_area": 27800.0, "principal_moments": [198000000.0, 217000000.0, 220000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 58.5, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 72.2, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_w": {"type": "float", "default": 13.6, "min": 6.8, "max": 36.4, "step": 0.5, "group": "Spigot", "label": "Spigot width (mm)"}, "spig_slot_l": {"type": "float", "default": 29.6, "min": 16.3, "max": 45.5, "step": 1.0, "group": "Spigot", "label": "Spigot slot length (mm)"}, "spig_len": {"type": "float", "default": 31.0, "min": 4.1, "max": 54.4, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004019 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 58.5, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 72.2, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_w\": {\"type\": 'float', \"default\": 13.6, \"min\": 6.8, \"max\": 36.4, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Spigot width (mm)'},\n \"spig_slot_l\": {\"type\": 'float', \"default\": 29.6, \"min\": 16.3, \"max\": 45.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot slot length (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 31.0, \"min\": 4.1, \"max\": 54.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6837_0321", "family": "enclosure", "tier": 3, "seed": 1234004023, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "1fec35b411866d66", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 65000.0, "surface_area": 44500.0, "principal_moments": [49899999.99999999, 84100000.0, 103000000.0], "n_faces": 19, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 95.82, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 39.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 73.2, "min": 29.3, "max": 146.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.1, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 8.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004023 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 95.82, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 39.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 73.2, \"min\": 29.3, \"max\": 146.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.1, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 8.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6838_0322", "family": "flanged", "tier": 1, "seed": 1234004024, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "ace64036fff2123b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 531000.0, "surface_area": 82100.0, "principal_moments": [1020000000.0, 1070000000.0, 1070000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 80, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 102.0, "min": 30.6, "max": 255.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 40.6, "min": 2.0, "max": 56.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 164.8, "min": 104.0, "max": 240.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.3, "min": 2.8, "max": 40.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 49.4, "min": 33.0, "max": 74.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004024 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 102.0, \"min\": 30.6, \"max\": 255.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 40.6, \"min\": 2.0, \"max\": 56.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 164.8, \"min\": 104.0, \"max\": 240.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.3, \"min\": 2.8, \"max\": 40.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 49.4, \"min\": 33.0, \"max\": 74.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6839_0323", "family": "plate", "tier": 1, "seed": 1234004025, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "9fea346305ad6e4c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16400.0, "surface_area": 8290.0, "principal_moments": [1750000.0, 12299999.999999998, 13999999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 95.68, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 35.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004025 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 95.68, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 35.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d683a_0324", "family": "gear", "tier": 1, "seed": 1234004026, "symmetry": "none", "op_count": 1, "ir_hash": "58c07fe0bc82d1b6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42100.0, "surface_area": 12200.0, "principal_moments": [12299999.999999998, 12299999.999999998, 23299999.999999996], "n_faces": 159, "n_edges": 471, "n_vertices": 314}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 26, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 13.4, "min": 5.4, "max": 33.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 13.2, "min": 2.0, "max": 35.2, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004026 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 26, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 13.4, \"min\": 5.4, \"max\": 33.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 13.2, \"min\": 2.0, \"max\": 35.2, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d683b_0325", "family": "plate", "tier": 1, "seed": 1234004027, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "2ba911bc50c1fcc3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11000.0, "surface_area": 3970.0, "principal_moments": [458000.0, 2390000.0, 2580000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 19.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004027 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 19.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d683c_0326", "family": "bracket", "tier": 1, "seed": 1234004028, "symmetry": "none", "op_count": 1, "ir_hash": "ec0553f29c559cd7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20300.0, "surface_area": 15100.0, "principal_moments": [5900000.0, 45699999.99999999, 48499999.99999999], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 70.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 76.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004028 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 70.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 76.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d683d_0327", "family": "revolved", "tier": 2, "seed": 1234004029, "symmetry": "radial", "op_count": 2, "ir_hash": "242bdf987bd6cdf7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 100000.0, "surface_area": 21000.0, "principal_moments": [32199999.999999996, 63699999.99999999, 63699999.99999999], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 46.3, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 89.5, "min": 26.8, "max": 268.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.3, "min": 0.1, "max": 3.9, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004029 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 46.3, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 89.5, \"min\": 26.8, \"max\": 268.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.3, \"min\": 0.1, \"max\": 3.9, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d683f_0329", "family": "revolved", "tier": 1, "seed": 1234004031, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "a89b30ecf5ec05b6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 70300.0, "surface_area": 14300.0, "principal_moments": [24099999.999999996, 24099999.999999996, 31899999.999999996], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 55, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 44.4, "min": 13.3, "max": 133.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.6, "min": 0.1, "max": 1.8, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004031 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 44.4, \"min\": 13.3, \"max\": 133.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.6, \"min\": 0.1, \"max\": 1.8, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6841_0331", "family": "block", "tier": 2, "seed": 1234004033, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "9fb016142dfbb6fc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 379000.0, "surface_area": 44000.0, "principal_moments": [308000000.0, 380000000.0, 572000000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 89.85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 43.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 17.4, "min": 8.7, "max": 34.8, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 11.7, "min": 4.7, "max": 29.2, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 12.2, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004033 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 89.85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 43.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 17.4, \"min\": 8.7, \"max\": 34.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 11.7, \"min\": 4.7, \"max\": 29.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 12.2, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6843_0333", "family": "revolved", "tier": 2, "seed": 1234004035, "symmetry": "radial", "op_count": 1, "ir_hash": "84f0f0549c799663", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 462000.0, "surface_area": 53100.0, "principal_moments": [431000000.0, 1020000000.0, 1020000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 54.44, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 138.3, "min": 41.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 18.4, "min": 2.0, "max": 38.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 105.8, "min": 65.3, "max": 163.3, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 27.4, "min": 8.2, "max": 69.2, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004035 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 54.44, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 138.3, \"min\": 41.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 18.4, \"min\": 2.0, \"max\": 38.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 105.8, \"min\": 65.3, \"max\": 163.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 27.4, \"min\": 8.2, \"max\": 69.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6844_0334", "family": "plate", "tier": 0, "seed": 1234004036, "symmetry": "none", "op_count": 1, "ir_hash": "88211bd9e0ab0b78", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4560.0, "surface_area": 2230.0, "principal_moments": [151000.0, 622000.0, 745000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 40, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 19.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004036 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 19.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6845_0335", "family": "profiled", "tier": 1, "seed": 1234004037, "symmetry": "none", "op_count": 1, "ir_hash": "118c6e84f5aef7e0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 142000.0, "surface_area": 47400.0, "principal_moments": [30999999.999999996, 791000000.0, 791000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 35, "min": 17.5, "max": 70.0, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 255.6, "min": 76.7, "max": 766.8, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 22.7, "min": 2.0, "max": 28.0, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004037 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 17.5, \"max\": 70.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 255.6, \"min\": 76.7, \"max\": 766.8, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 22.7, \"min\": 2.0, \"max\": 28.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6846_0336", "family": "revolved", "tier": 1, "seed": 1234004038, "symmetry": "radial", "op_count": 1, "ir_hash": "f25a5bc9493ce45e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5100.0, "surface_area": 2140.0, "principal_moments": [260000.0, 303000.0, 303000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 19.1, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 20.2, "min": 6.1, "max": 60.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 6.6, "min": 2.0, "max": 13.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004038 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 19.1, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 20.2, \"min\": 6.1, \"max\": 60.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 6.6, \"min\": 2.0, \"max\": 13.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6847_0337", "family": "bracket", "tier": 1, "seed": 1234004039, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "c1805333a7973ce5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18800.0, "surface_area": 8950.0, "principal_moments": [4270000.0, 8800000.0, 9550000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 46.83, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 52.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004039 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 46.83, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 52.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6849_0339", "family": "bracket", "tier": 1, "seed": 1234004041, "symmetry": "none", "op_count": 1, "ir_hash": "5b688d195b9c6d83", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25200.0, "surface_area": 9730.0, "principal_moments": [4830000.0, 35600000.0, 39100000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 63.35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 71.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 17.44, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 63.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 7.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004041 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 63.35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 71.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 17.44, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 63.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 7.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d684a_0340", "family": "block", "tier": 1, "seed": 1234004042, "symmetry": "radial", "op_count": 2, "ir_hash": "17b451fbf516449e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25500.0, "surface_area": 6610.0, "principal_moments": [3110000.0, 4470000.0, 5490000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 40, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 21.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 31.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 12.0, "min": 8.0, "max": 18.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004042 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 21.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 31.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 12.0, \"min\": 8.0, \"max\": 18.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d684b_0341", "family": "block", "tier": 1, "seed": 1234004043, "symmetry": "none", "op_count": 2, "ir_hash": "568d7c7876d8cb15", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8540.0, "surface_area": 3770.0, "principal_moments": [521000.0, 861000.0, 1220000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 25.18, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 10.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 33.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.1, "min": 2.0, "max": 2.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004043 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25.18, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 10.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 33.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.1, \"min\": 2.0, \"max\": 2.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d684c_0342", "family": "plate", "tier": 1, "seed": 1234004044, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "648cae27a7af3d49", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27300.0, "surface_area": 7980.0, "principal_moments": [5010000.0, 8370000.0, 12899999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 46.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 10.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004044 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 46.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 10.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d684d_0343", "family": "threaded", "tier": 1, "seed": 1234004045, "symmetry": "none", "op_count": 1, "ir_hash": "6eabc53336dd39fe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4340.0, "surface_area": 3160.0, "principal_moments": [141000.0, 532000.0, 532000.0], "n_faces": 231, "n_edges": 629, "n_vertices": 400}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 35.8, "min": 14.3, "max": 71.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004045 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 35.8, \"min\": 14.3, \"max\": 71.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d684e_0344", "family": "bracket", "tier": 2, "seed": 1234004046, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ab75ef44fe70e5df", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28400.0, "surface_area": 9580.0, "principal_moments": [4660000.0, 14299999.999999998, 15499999.999999998], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 41.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 32.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 7.7, "min": 4.0, "max": 17.5, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004046 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 41.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 32.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 7.7, \"min\": 4.0, \"max\": 17.5, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d684f_0345", "family": "bracket", "tier": 1, "seed": 1234004047, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "339c904cc7808469", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11400.0, "surface_area": 8530.0, "principal_moments": [2010000.0, 4980000.0, 6050000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 40.49, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 31.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 30.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004047 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 40.49, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 31.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 30.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6850_0346", "family": "bracket", "tier": 1, "seed": 1234004048, "symmetry": "none", "op_count": 1, "ir_hash": "5f4904675105fc57", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 59500.0, "surface_area": 23100.0, "principal_moments": [41000000.0, 67400000.0, 83400000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 75, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 68.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50.05, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004048 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 68.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50.05, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6851_0347", "family": "revolved", "tier": 1, "seed": 1234004049, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "ef9a7bac9a1e860f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 94200.0, "surface_area": 17900.0, "principal_moments": [41200000.0, 41200000.0, 42400000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 54.84, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 60.0, "min": 18.0, "max": 180.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.4, "min": 0.1, "max": 4.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004049 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 54.84, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 60.0, \"min\": 18.0, \"max\": 180.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.4, \"min\": 0.1, \"max\": 4.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6853_0349", "family": "block", "tier": 3, "seed": 1234004051, "symmetry": "none", "op_count": 5, "ir_hash": "3ba882c81655ab75", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 70800.0, "surface_area": 17700.0, "principal_moments": [15899999.999999998, 35000000.0, 43600000.0], "n_faces": 26, "n_edges": 66, "n_vertices": 44}, "params": {"block_w": {"type": "float", "default": 45, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 23.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 75.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 23.8, "min": 11.9, "max": 36.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 9.5, "min": 4.8, "max": 18.5, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 23.9, "min": 9.6, "max": 63.8, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}, "filleted2": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "side_tube_d": {"type": "float", "default": 12.8, "min": 5.1, "max": 22.5, "step": 1.0, "group": "Side Tube", "label": "Side tube diameter (mm)"}, "side_tube_len": {"type": "float", "default": 13.9, "min": 4.2, "max": 38.4, "step": 1.0, "group": "Side Tube", "label": "Side tube length (mm)"}, "side_bore_d": {"type": "float", "default": 5.8, "min": 2.0, "max": 9.6, "step": 0.5, "group": "Side Tube", "label": "Side bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004051 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 23.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 75.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 23.8, \"min\": 11.9, \"max\": 36.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 9.5, \"min\": 4.8, \"max\": 18.5, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 23.9, \"min\": 9.6, \"max\": 63.8, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n \"filleted2\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"side_tube_d\": {\"type\": 'float', \"default\": 12.8, \"min\": 5.1, \"max\": 22.5, \"step\": 1.0, \"group\": 'Side Tube', \"label\": 'Side tube diameter (mm)'},\n \"side_tube_len\": {\"type\": 'float', \"default\": 13.9, \"min\": 4.2, \"max\": 38.4, \"step\": 1.0, \"group\": 'Side Tube', \"label\": 'Side tube length (mm)'},\n \"side_bore_d\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.0, \"max\": 9.6, \"step\": 0.5, \"group\": 'Side Tube', \"label\": 'Side bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.07746535564664443)\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"side_tube_d\"] / 2).extrude(p[\"side_tube_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"side_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6854_0350", "family": "plate", "tier": 0, "seed": 1234004052, "symmetry": "radial", "op_count": 1, "ir_hash": "8f35c05fc44ae446", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19900.0, "surface_area": 9270.0, "principal_moments": [3690000.0, 11899999.999999998, 15499999.999999998], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 84.77, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 46.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004052 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 84.77, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 46.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6855_0351", "family": "bracket", "tier": 1, "seed": 1234004053, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "a451a48af109d11f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33800.0, "surface_area": 13400.0, "principal_moments": [9280000.0, 20500000.0, 25399999.999999996], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 50.12, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 41.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 33.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004053 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50.12, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 41.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 33.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6856_0352", "family": "threaded", "tier": 0, "seed": 1234004054, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "4ff4b5418013a582", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16100.0, "surface_area": 6080.0, "principal_moments": [693000.0, 5130000.0, 5130000.0], "n_faces": 429, "n_edges": 1181, "n_vertices": 754}, "params": {"major_d": {"type": "float", "default": 20.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.5, "min": 1.25, "max": 5.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 60.0, "min": 24.0, "max": 120.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004054 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 20.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.25, \"max\": 5.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 60.0, \"min\": 24.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6857_0353", "family": "bracket", "tier": 2, "seed": 1234004055, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "9f4049e2921c6ae3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19300.0, "surface_area": 11400.0, "principal_moments": [11300000.0, 21700000.0, 31899999.999999996], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 74.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.4, "min": 2.0, "max": 10.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004055 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 74.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.4, \"min\": 2.0, \"max\": 10.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6858_0354", "family": "block", "tier": 1, "seed": 1234004056, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "393910423936bc7e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 869000.0, "surface_area": 65700.0, "principal_moments": [1280000000.0, 1310000000.0, 1410000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 97.99, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 90.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004056 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 97.99, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 90.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d685a_0356", "family": "revolved", "tier": 1, "seed": 1234004058, "symmetry": "radial", "op_count": 1, "ir_hash": "db79e6565261cc4e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 198000.0, "surface_area": 25300.0, "principal_moments": [130000000.0, 130000000.0, 161000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 74.54, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 54.6, "min": 16.4, "max": 163.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 30.7, "min": 2.0, "max": 52.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004058 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 74.54, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 54.6, \"min\": 16.4, \"max\": 163.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 30.7, \"min\": 2.0, \"max\": 52.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d685b_0357", "family": "bracket", "tier": 1, "seed": 1234004059, "symmetry": "none", "op_count": 1, "ir_hash": "5206b0c8cf05d8bf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12600.0, "surface_area": 5540.0, "principal_moments": [1340000.0, 2770000.0, 3530000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 29.63, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 31.43, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004059 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 29.63, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 31.43, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d685c_0358", "family": "compound", "tier": 1, "seed": 1234004060, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "d3a25707f261f910", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6340.0, "surface_area": 2300.0, "principal_moments": [228000.0, 593000.0, 602000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 15.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 15.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_w": {"type": "float", "default": 4.9, "min": 2.5, "max": 8.4, "step": 0.5, "group": "Spigot", "label": "Spigot width (mm)"}, "spig_slot_l": {"type": "float", "default": 10.5, "min": 5.9, "max": 10.5, "step": 1.0, "group": "Spigot", "label": "Spigot slot length (mm)"}, "spig_len": {"type": "float", "default": 12.1, "min": 1.5, "max": 19.6, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004060 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 15.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 15.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_w\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.5, \"max\": 8.4, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Spigot width (mm)'},\n \"spig_slot_l\": {\"type\": 'float', \"default\": 10.5, \"min\": 5.9, \"max\": 10.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot slot length (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 12.1, \"min\": 1.5, \"max\": 19.6, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d685e_0360", "family": "compound", "tier": 1, "seed": 1234004062, "symmetry": "none", "op_count": 3, "ir_hash": "8bdb3a0cfb0da778", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 123000.0, "surface_area": 20600.0, "principal_moments": [62599999.99999999, 80500000.0, 93799999.99999999], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"base_w": {"type": "float", "default": 80, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 65.8, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 20.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 22.6, "min": 9.0, "max": 32.9, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 46.8, "min": 14.0, "max": 140.4, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004062 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 80, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 65.8, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 20.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 22.6, \"min\": 9.0, \"max\": 32.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 46.8, \"min\": 14.0, \"max\": 140.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d685f_0361", "family": "profiled", "tier": 1, "seed": 1234004063, "symmetry": "none", "op_count": 1, "ir_hash": "ba0b672955c7d67d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 246000.0, "surface_area": 30500.0, "principal_moments": [50599999.99999999, 847000000.0, 847000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"circ_r": {"type": "float", "default": 24.82, "min": 12.4, "max": 49.6, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 4, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 200.0, "min": 60.0, "max": 600.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004063 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 24.82, \"min\": 12.4, \"max\": 49.6, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 200.0, \"min\": 60.0, \"max\": 600.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6860_0362", "family": "block", "tier": 1, "seed": 1234004064, "symmetry": "radial", "op_count": 2, "ir_hash": "1d5aadd33e4587dc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 453000.0, "surface_area": 58900.0, "principal_moments": [458000000.0, 481000000.0, 732000000.0], "n_faces": 24, "n_edges": 66, "n_vertices": 44}, "params": {"block_w": {"type": "float", "default": 95, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 53.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 28.5, "min": 19.0, "max": 42.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004064 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 95, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 53.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 28.5, \"min\": 19.0, \"max\": 42.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6862_0364", "family": "revolved", "tier": 1, "seed": 1234004066, "symmetry": "radial", "op_count": 2, "ir_hash": "5e34bd1abad99a8f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1900.0, "surface_area": 1660.0, "principal_moments": [32800.0, 127000.0, 127000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 10.75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 31.4, "min": 9.4, "max": 94.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 1.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004066 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 10.75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 31.4, \"min\": 9.4, \"max\": 94.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 1.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6864_0366", "family": "bracket", "tier": 2, "seed": 1234004068, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d30af10e4598a6ff", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21100.0, "surface_area": 12000.0, "principal_moments": [5610000.0, 16599999.999999998, 16900000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 73.87, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 55.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.5, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004068 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 73.87, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 55.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6865_0367", "family": "threaded", "tier": 1, "seed": 1234004069, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ec4dc72422522786", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1420.0, "surface_area": 1620.0, "principal_moments": [18000.0, 114000.0, 114000.0], "n_faces": 303, "n_edges": 827, "n_vertices": 526}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 29.9, "min": 12.0, "max": 59.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004069 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 29.9, \"min\": 12.0, \"max\": 59.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6866_0368", "family": "revolved", "tier": 2, "seed": 1234004070, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "308c28c412700227", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18300.0, "surface_area": 4990.0, "principal_moments": [2260000.0, 2260000.0, 3360000.0], "n_faces": 12, "n_edges": 20, "n_vertices": 12}, "params": {"outer_d": {"type": "float", "default": 36.77, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 19.6, "min": 5.9, "max": 58.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 11.8, "min": 2.0, "max": 25.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 1.2, "min": 0.48, "max": 3.6, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 2.2, "min": 0.88, "max": 6.6, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 8.6, "min": 2.9, "max": 16.7, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.7, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004070 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 36.77, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 19.6, \"min\": 5.9, \"max\": 58.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 11.8, \"min\": 2.0, \"max\": 25.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 1.2, \"min\": 0.48, \"max\": 3.6, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 2.2, \"min\": 0.88, \"max\": 6.6, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 8.6, \"min\": 2.9, \"max\": 16.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.7, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.0441175458336096)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6868_0370", "family": "enclosure", "tier": 2, "seed": 1234004072, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "2021c4f1b7537f35", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 119000.0, "surface_area": 43300.0, "principal_moments": [120000000.0, 136000000.0, 152000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 75, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 66.2, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 66.6, "min": 26.6, "max": 133.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004072 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 75, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 66.2, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 66.6, \"min\": 26.6, \"max\": 133.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6869_0371", "family": "block", "tier": 1, "seed": 1234004073, "symmetry": "none", "op_count": 2, "ir_hash": "d9ecab49ebe6b0d0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 352000.0, "surface_area": 36600.0, "principal_moments": [217000000.0, 373000000.0, 431000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 68.61, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 52.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 11.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004073 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 68.61, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 52.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 11.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d686a_0372", "family": "enclosure", "tier": 2, "seed": 1234004074, "symmetry": "none", "op_count": 3, "ir_hash": "75e5bcb926000519", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 113000.0, "surface_area": 49200.0, "principal_moments": [111000000.0, 181000000.0, 221000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 103.26, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 69.7, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 55.4, "min": 22.2, "max": 110.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004074 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 103.26, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 69.7, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 55.4, \"min\": 22.2, \"max\": 110.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d686b_0373", "family": "ribbed", "tier": 1, "seed": 1234004075, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "c2e584380e688871", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11300.0, "surface_area": 7730.0, "principal_moments": [1470000.0, 2770000.0, 2970000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 24.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 19.8, "min": 7.9, "max": 39.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.2, "min": 1.0, "max": 5.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004075 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 24.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 19.8, \"min\": 7.9, \"max\": 39.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.2, \"min\": 1.0, \"max\": 5.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d686c_0374", "family": "block", "tier": 1, "seed": 1234004076, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "4ba6c04ef1b94e80", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 50200.0, "surface_area": 10100.0, "principal_moments": [9880000.0, 12399999.999999998, 13299999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 43.89, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 36.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 32.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 8.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004076 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 43.89, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 36.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 32.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 8.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d686d_0375", "family": "compound", "tier": 1, "seed": 1234004077, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "5cfacae565de8165", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37200.0, "surface_area": 7630.0, "principal_moments": [7180000.0, 8450000.0, 8450000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 25.52, "min": 15.3, "max": 40.8, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 12.0, "min": 4.8, "max": 30.0, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 28.1, "min": 14.1, "max": 35.4, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 27.3, "min": 8.2, "max": 68.2, "step": 1.0, "group": "Column", "label": "Column height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004077 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 25.52, \"min\": 15.3, \"max\": 40.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.8, \"max\": 30.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 28.1, \"min\": 14.1, \"max\": 35.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 27.3, \"min\": 8.2, \"max\": 68.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d686e_0376", "family": "enclosure", "tier": 1, "seed": 1234004078, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "627e964d718c0a1f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41400.0, "surface_area": 16000.0, "principal_moments": [13099999.999999998, 18100000.0, 20500000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 53.12, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 32.3, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 44.6, "min": 17.8, "max": 89.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.5, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004078 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 53.12, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 32.3, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 44.6, \"min\": 17.8, \"max\": 89.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d686f_0377", "family": "enclosure", "tier": 1, "seed": 1234004079, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "1fee47a690253e3e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9680.0, "surface_area": 7810.0, "principal_moments": [1320000.0, 2680000.0, 3060000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 44.89, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 25.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 22.3, "min": 8.9, "max": 44.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004079 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 44.89, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 25.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 22.3, \"min\": 8.9, \"max\": 44.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6871_0379", "family": "block", "tier": 1, "seed": 1234004081, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "d9a3cf60a259a894", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 187000.0, "surface_area": 27700.0, "principal_moments": [73400000.0, 170000000.0, 214000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 61.84, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 31.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 7.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004081 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 61.84, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 31.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 7.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6872_0380", "family": "threaded", "tier": 1, "seed": 1234004082, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "01cf318af72adb42", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14500.0, "surface_area": 5540.0, "principal_moments": [627000.0, 3850000.0, 3850000.0], "n_faces": 384, "n_edges": 1054, "n_vertices": 672}, "params": {"major_d": {"type": "float", "default": 20.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.5, "min": 1.25, "max": 5.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 54.3, "min": 21.7, "max": 108.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004082 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 20.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.25, \"max\": 5.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 54.3, \"min\": 21.7, \"max\": 108.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6873_0381", "family": "block", "tier": 1, "seed": 1234004083, "symmetry": "none", "op_count": 2, "ir_hash": "211a3217885cff28", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38400.0, "surface_area": 8880.0, "principal_moments": [6350000.0, 8150000.0, 8200000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 40, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 32.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 31.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 9.4, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004083 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 32.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 31.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 9.4, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6874_0382", "family": "ribbed", "tier": 1, "seed": 1234004084, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3fe335b9710dc33f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39100.0, "surface_area": 20100.0, "principal_moments": [17200000.0, 34600000.0, 50599999.99999999], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 96.54, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 70.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 15.0, "min": 6.0, "max": 30.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.2, "min": 1.0, "max": 5.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004084 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 96.54, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 70.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 15.0, \"min\": 6.0, \"max\": 30.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.2, \"min\": 1.0, \"max\": 5.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6875_0383", "family": "bracket", "tier": 1, "seed": 1234004085, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ca0f348a19cca3d5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8400.0, "surface_area": 6340.0, "principal_moments": [1210000.0, 2210000.0, 2990000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 37.6, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004085 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 37.6, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6876_0384", "family": "compound", "tier": 1, "seed": 1234004086, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "0b93d6161c920c20", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6340.0, "surface_area": 3020.0, "principal_moments": [472000.0, 506000.0, 524000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"base_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 15.5, "min": 9.3, "max": 24.8, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 8.1, "min": 3.2, "max": 20.2, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 14.4, "min": 7.2, "max": 20.1, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 15.7, "min": 4.7, "max": 39.2, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 6.7, "min": 2.0, "max": 10.4, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004086 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 15.5, \"min\": 9.3, \"max\": 24.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 8.1, \"min\": 3.2, \"max\": 20.2, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 14.4, \"min\": 7.2, \"max\": 20.1, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 15.7, \"min\": 4.7, \"max\": 39.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 6.7, \"min\": 2.0, \"max\": 10.4, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6877_0385", "family": "plate", "tier": 0, "seed": 1234004087, "symmetry": "radial", "op_count": 1, "ir_hash": "9e6ccd658ab34dce", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3230.0, "surface_area": 2560.0, "principal_moments": [156000.0, 547000.0, 698000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 23.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004087 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 23.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6878_0386", "family": "block", "tier": 2, "seed": 1234004088, "symmetry": "none", "op_count": 3, "ir_hash": "89e7a3719085b822", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 822000.0, "surface_area": 55800.0, "principal_moments": [1140000000.0, 1150000000.0, 1360000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 100.0, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 83.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004088 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 100.0, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 83.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.09167293432939358)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6879_0387", "family": "block", "tier": 2, "seed": 1234004089, "symmetry": "none", "op_count": 3, "ir_hash": "0c512f831510cc22", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 164000.0, "surface_area": 23700.0, "principal_moments": [71300000.0, 100000000.0, 143000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 80, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 33.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 64.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 7.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004089 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 33.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 64.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 7.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.06582766208030255)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d687a_0388", "family": "bracket", "tier": 1, "seed": 1234004090, "symmetry": "none", "op_count": 1, "ir_hash": "3fffc86895873fa1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13200.0, "surface_area": 5900.0, "principal_moments": [1680000.0, 4200000.0, 4550000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 48.63, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 32.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004090 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 48.63, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 32.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d687d_0391", "family": "block", "tier": 3, "seed": 1234004093, "symmetry": "none", "op_count": 4, "ir_hash": "6f6e14a715550078", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 134000.0, "surface_area": 27600.0, "principal_moments": [39400000.0, 128000000.0, 153000000.0], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 25.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 5.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 23.8, "min": 11.9, "max": 47.6, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 10.0, "min": 4.0, "max": 25.0, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 16.7, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}, "filleted2": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004093 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 25.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 5.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 23.8, \"min\": 11.9, \"max\": 47.6, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 25.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 16.7, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n \"filleted2\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.08144013856199132)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d687e_0392", "family": "revolved", "tier": 2, "seed": 1234004094, "symmetry": "none", "op_count": 1, "ir_hash": "ba99d8c97d3ef3b9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 365000.0, "surface_area": 52900.0, "principal_moments": [246000000.0, 643000000.0, 643000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 67.09, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 154.9, "min": 46.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004094 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 67.09, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 154.9, \"min\": 46.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d687f_0393", "family": "block", "tier": 1, "seed": 1234004095, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "d1dcc160acd605e3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 100000.0, "surface_area": 16700.0, "principal_moments": [28699999.999999996, 44900000.0, 54999999.99999999], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 47.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 33.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004095 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 47.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 33.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 16.2\n _ssy = 16.9\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6880_0394", "family": "plate", "tier": 1, "seed": 1234004096, "symmetry": "none", "op_count": 2, "ir_hash": "b5a2cca763782673", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 82600.0, "surface_area": 19100.0, "principal_moments": [48399999.99999999, 49999999.99999999, 96299999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 83.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004096 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 83.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6881_0395", "family": "plate", "tier": 0, "seed": 1234004097, "symmetry": "radial", "op_count": 1, "ir_hash": "b96302565645d221", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13400.0, "surface_area": 3890.0, "principal_moments": [923000.0, 2210000.0, 2810000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 42.84, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 26.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004097 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 42.84, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 26.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6882_0396", "family": "profiled", "tier": 0, "seed": 1234004098, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "eda3e57f85ca5290", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 78000.0, "surface_area": 17100.0, "principal_moments": [4490000.0, 399000000.0, 401000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 25, "min": 12.5, "max": 50.0, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 14.41, "min": 7.2, "max": 28.8, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 247.2, "min": 74.2, "max": 741.6, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004098 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 25, \"min\": 12.5, \"max\": 50.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 14.41, \"min\": 7.2, \"max\": 28.8, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 247.2, \"min\": 74.2, \"max\": 741.6, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6884_0398", "family": "revolved", "tier": 0, "seed": 1234004100, "symmetry": "none", "op_count": 1, "ir_hash": "281b84b2d7b54847", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 196000.0, "surface_area": 29500.0, "principal_moments": [136000000.0, 136000000.0, 152000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 72.08, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 71.9, "min": 21.6, "max": 215.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004100 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 72.08, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 71.9, \"min\": 21.6, \"max\": 215.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6885_0399", "family": "compound", "tier": 1, "seed": 1234004101, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "648b6be9c8422ed0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42300.0, "surface_area": 7970.0, "principal_moments": [9090000.0, 9740000.0, 9740000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 25, "min": 15.0, "max": 40.0, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 20.0, "min": 8.0, "max": 50.0, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 22.8, "min": 11.4, "max": 34.6, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 24.0, "min": 7.2, "max": 60.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004101 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 20.0, \"min\": 8.0, \"max\": 50.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 22.8, \"min\": 11.4, \"max\": 34.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 24.0, \"min\": 7.2, \"max\": 60.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6886_0400", "family": "compound", "tier": 1, "seed": 1234004102, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "5f67940761388970", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 87700.0, "surface_area": 13900.0, "principal_moments": [24599999.999999996, 32299999.999999996, 34600000.0], "n_faces": 13, "n_edges": 26, "n_vertices": 17}, "params": {"block_w": {"type": "float", "default": 54.12, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 37.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 43.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 12.3, "min": 4.9, "max": 16.7, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 11.9, "min": 3.1, "max": 36.9, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 5.9, "min": 2.0, "max": 8.9, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004102 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 54.12, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 37.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 43.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 12.3, \"min\": 4.9, \"max\": 16.7, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 11.9, \"min\": 3.1, \"max\": 36.9, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 5.9, \"min\": 2.0, \"max\": 8.9, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6888_0402", "family": "revolved", "tier": 1, "seed": 1234004104, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "e04ce42e7c6ee2b9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28200.0, "surface_area": 7530.0, "principal_moments": [2310000.0, 11699999.999999998, 11699999.999999998], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 24.41, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 67.3, "min": 20.2, "max": 201.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 7.8, "min": 2.0, "max": 17.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004104 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 24.41, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 67.3, \"min\": 20.2, \"max\": 201.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 7.8, \"min\": 2.0, \"max\": 17.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 3.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d688a_0404", "family": "revolved", "tier": 1, "seed": 1234004106, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "543eafa441483d9a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1090000.0, "surface_area": 93400.0, "principal_moments": [947000000.0, 6360000000.0, 6360000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 78.73, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 254.7, "min": 76.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 27.4, "min": 2.0, "max": 55.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.3, "min": 0.1, "max": 0.9, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004106 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 78.73, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 254.7, \"min\": 76.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 27.4, \"min\": 2.0, \"max\": 55.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.3, \"min\": 0.1, \"max\": 0.9, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d688d_0407", "family": "threaded", "tier": 0, "seed": 1234004109, "symmetry": "none", "op_count": 1, "ir_hash": "34ad1ed7760f6d30", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 697.0, "surface_area": 873.0, "principal_moments": [2590.0, 54900.0, 54900.0], "n_faces": 310, "n_edges": 796, "n_vertices": 488}, "params": {"major_d": {"type": "float", "default": 6.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.0, "min": 0.5, "max": 2.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 30.5, "min": 12.2, "max": 61.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004109 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.5, \"max\": 2.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 30.5, \"min\": 12.2, \"max\": 61.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d688e_0408", "family": "flanged", "tier": 2, "seed": 1234004110, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "a63d58c5480ef944", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 649000.0, "surface_area": 87200.0, "principal_moments": [1360000000.0, 1360000000.0, 1500000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 91.65, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 97.8, "min": 29.3, "max": 244.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 49.8, "min": 2.0, "max": 64.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 166.8, "min": 119.1, "max": 275.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 12.8, "min": 3.8, "max": 39.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 50.0, "min": 33.4, "max": 75.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004110 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 91.65, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 97.8, \"min\": 29.3, \"max\": 244.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 49.8, \"min\": 2.0, \"max\": 64.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 166.8, \"min\": 119.1, \"max\": 275.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 12.8, \"min\": 3.8, \"max\": 39.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 50.0, \"min\": 33.4, \"max\": 75.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d688f_0409", "family": "ribbed", "tier": 2, "seed": 1234004111, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "3c66c0a6e8934c3e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20800.0, "surface_area": 9480.0, "principal_moments": [2870000.0, 4500000.0, 5190000.0], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 42.91, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 23.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 19.6, "min": 7.8, "max": 39.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.9, "min": 1.0, "max": 14.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004111 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 42.91, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 23.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 19.6, \"min\": 7.8, \"max\": 39.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.9, \"min\": 1.0, \"max\": 14.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6890_0410", "family": "revolved", "tier": 1, "seed": 1234004112, "symmetry": "none", "op_count": 1, "ir_hash": "91b7ec1d1e25290e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13500.0, "surface_area": 6150.0, "principal_moments": [899000.0, 3160000.0, 3160000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 21.07, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 58.1, "min": 17.4, "max": 174.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004112 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 21.07, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 58.1, \"min\": 17.4, \"max\": 174.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6892_0412", "family": "enclosure", "tier": 1, "seed": 1234004114, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "c88a5c4e87e572ca", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7300.0, "surface_area": 7200.0, "principal_moments": [885000.0, 1640000.0, 1860000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 40, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 17.9, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 27.8, "min": 11.1, "max": 55.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.1, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004114 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 40, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 17.9, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 27.8, \"min\": 11.1, \"max\": 55.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.1, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6893_0413", "family": "plate", "tier": 0, "seed": 1234004115, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "26297cf516f9ffa2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3210.0, "surface_area": 1540.0, "principal_moments": [53100.0, 337000.0, 356000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 34.59, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 11.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004115 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 34.59, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 11.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6894_0414", "family": "block", "tier": 1, "seed": 1234004116, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "4f495b0d86e31e6b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41600.0, "surface_area": 10400.0, "principal_moments": [7730000.0, 8780000.0, 12399999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 45, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 24.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 40.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 5.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004116 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 24.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 40.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 5.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6895_0415", "family": "block", "tier": 1, "seed": 1234004117, "symmetry": "none", "op_count": 2, "ir_hash": "d200f432bca27171", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33800.0, "surface_area": 8670.0, "principal_moments": [4630000.0, 7580000.0, 9710000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 21.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 47.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004117 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 21.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 47.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6896_0416", "family": "ribbed", "tier": 1, "seed": 1234004118, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "dbab651662ebc280", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 70000.0, "surface_area": 19900.0, "principal_moments": [28999999.999999996, 54399999.99999999, 81700000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 69.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 7.2, "min": 2.9, "max": 14.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.7, "min": 1.0, "max": 6.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004118 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 69.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 7.2, \"min\": 2.9, \"max\": 14.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.7, \"min\": 1.0, \"max\": 6.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6897_0417", "family": "bracket", "tier": 3, "seed": 1234004119, "symmetry": "none", "op_count": 1, "ir_hash": "8cfd4757203edab8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19600.0, "surface_area": 9560.0, "principal_moments": [5620000.0, 5850000.0, 6110000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 32.77, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 38.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 6.5, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004119 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 32.77, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 38.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.5, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6898_0418", "family": "revolved", "tier": 2, "seed": 1234004120, "symmetry": "radial", "op_count": 1, "ir_hash": "f78195f6e132ea20", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 184000.0, "surface_area": 34700.0, "principal_moments": [85600000.0, 204000000.0, 204000000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 50, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 117.8, "min": 35.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 70.2, "min": 60.0, "max": 150.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 15.7, "min": 4.7, "max": 58.9, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004120 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 117.8, \"min\": 35.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 70.2, \"min\": 60.0, \"max\": 150.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 15.7, \"min\": 4.7, \"max\": 58.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d689a_0420", "family": "profiled", "tier": 1, "seed": 1234004122, "symmetry": "none", "op_count": 1, "ir_hash": "499f04370b3ecc6a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 69700.0, "surface_area": 12600.0, "principal_moments": [6040000.0, 102000000.0, 102000000.0], "n_faces": 7, "n_edges": 15, "n_vertices": 10}, "params": {"circ_r": {"type": "float", "default": 15, "min": 7.5, "max": 30.0, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 130.3, "min": 39.1, "max": 390.9, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004122 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 15, \"min\": 7.5, \"max\": 30.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 130.3, \"min\": 39.1, \"max\": 390.9, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d689b_0421", "family": "revolved", "tier": 1, "seed": 1234004123, "symmetry": "radial", "op_count": 2, "ir_hash": "4511e3384065dfae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 216.0, "surface_area": 268.0, "principal_moments": [1600.0, 1600.0, 2160.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 8.14, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 5.9, "min": 1.8, "max": 17.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 5.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004123 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 8.14, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 5.9, \"min\": 1.8, \"max\": 17.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 5.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d689d_0423", "family": "revolved", "tier": 2, "seed": 1234004125, "symmetry": "none", "op_count": 1, "ir_hash": "a10158f4c0152167", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1150000.0, "surface_area": 115000.0, "principal_moments": [1470000000.0, 8850000000.0, 8850000000.0], "n_faces": 10, "n_edges": 15, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 70, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 264.0, "min": 79.2, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 27.3, "min": 2.0, "max": 49.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 133.0, "min": 84.0, "max": 210.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 31.7, "min": 9.5, "max": 132.0, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "groove_depth": {"type": "float", "default": 5.44, "min": 2.18, "max": 16.32, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 29.67, "min": 11.87, "max": 89.01, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 137.5, "min": 39.6, "max": 224.4, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004125 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 70, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 264.0, \"min\": 79.2, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 27.3, \"min\": 2.0, \"max\": 49.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 133.0, \"min\": 84.0, \"max\": 210.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 31.7, \"min\": 9.5, \"max\": 132.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 5.44, \"min\": 2.18, \"max\": 16.32, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 29.67, \"min\": 11.87, \"max\": 89.01, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 137.5, \"min\": 39.6, \"max\": 224.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d689e_0424", "family": "bracket", "tier": 1, "seed": 1234004126, "symmetry": "none", "op_count": 1, "ir_hash": "199f7029146ee80c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20400.0, "surface_area": 8420.0, "principal_moments": [4130000.0, 5680000.0, 8770000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 36.84, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45.86, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004126 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 36.84, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45.86, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d689f_0425", "family": "block", "tier": 2, "seed": 1234004127, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "b5cb9c77ad2604d5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 246000.0, "surface_area": 38900.0, "principal_moments": [168000000.0, 218000000.0, 335000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 81.33, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 34.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 7.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 42.7, "min": 21.4, "max": 65.1, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 18.0, "min": 9.0, "max": 27.4, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 30.9, "min": 12.4, "max": 85.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004127 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 81.33, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 34.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 7.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 42.7, \"min\": 21.4, \"max\": 65.1, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 18.0, \"min\": 9.0, \"max\": 27.4, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 30.9, \"min\": 12.4, \"max\": 85.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d68a0_0426", "family": "bracket", "tier": 2, "seed": 1234004128, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "987a73d0c2371857", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33000.0, "surface_area": 23500.0, "principal_moments": [14499999.999999998, 50699999.99999999, 54399999.99999999], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 63.31, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 70.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 58.36, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 55.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 2.9, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004128 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 63.31, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 70.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 58.36, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 55.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.9, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d68a1_0427", "family": "compound", "tier": 2, "seed": 1234004129, "symmetry": "none", "op_count": 4, "ir_hash": "2641a43b307a8235", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 58200.0, "surface_area": 18700.0, "principal_moments": [25099999.999999996, 79400000.0, 79500000.0], "n_faces": 27, "n_edges": 72, "n_vertices": 48}, "params": {"base_w": {"type": "float", "default": 73.4, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 73.8, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 5.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 11.2, "min": 5.6, "max": 18.4, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 100.5, "min": 30.1, "max": 301.5, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004129 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 73.4, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 73.8, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 11.2, \"min\": 5.6, \"max\": 18.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 100.5, \"min\": 30.1, \"max\": 301.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_w\"], p[\"base_d\"]) * 0.0776050944734572)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d68a2_0428", "family": "enclosure", "tier": 2, "seed": 1234004130, "symmetry": "none", "op_count": 3, "ir_hash": "5409874300c41a7e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23800.0, "surface_area": 22200.0, "principal_moments": [14299999.999999998, 14499999.999999998, 24299999.999999996], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 63.23, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 62.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 30.5, "min": 12.2, "max": 61.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004130 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 63.23, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 62.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 30.5, \"min\": 12.2, \"max\": 61.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d68a3_0429", "family": "block", "tier": 1, "seed": 1234004131, "symmetry": "radial", "op_count": 2, "ir_hash": "44f9f12dabdbe1ce", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 457000.0, "surface_area": 42400.0, "principal_moments": [463000000.0, 463000000.0, 760000000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 100.0, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 46.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 30.0, "min": 20.0, "max": 45.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004131 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 100.0, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 46.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 30.0, \"min\": 20.0, \"max\": 45.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d68a4_0430", "family": "revolved", "tier": 1, "seed": 1234004132, "symmetry": "none", "op_count": 1, "ir_hash": "c1f0bf1a58d30213", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 113000.0, "surface_area": 19500.0, "principal_moments": [59599999.99999999, 59599999.99999999, 64099999.99999999], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 60, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 54.0, "min": 16.2, "max": 162.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 30.5, "min": 2.0, "max": 42.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004132 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 54.0, \"min\": 16.2, \"max\": 162.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 30.5, \"min\": 2.0, \"max\": 42.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d68a5_0431", "family": "revolved", "tier": 1, "seed": 1234004133, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "34a3cdb3fee150c7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34900.0, "surface_area": 11400.0, "principal_moments": [4540000.0, 14499999.999999998, 14499999.999999998], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 29.46, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 76.8, "min": 23.0, "max": 230.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004133 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 29.46, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 76.8, \"min\": 23.0, \"max\": 230.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d68a6_0432", "family": "compound", "tier": 2, "seed": 1234004134, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "8ab46585893958a4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5040.0, "surface_area": 2320.0, "principal_moments": [144000.0, 499000.0, 499000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 15.22, "min": 7.6, "max": 27.4, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 26.5, "min": 10.6, "max": 53.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 8.4, "min": 4.2, "max": 13.7, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 10.9, "min": 3.3, "max": 27.2, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 3.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004134 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 15.22, \"min\": 7.6, \"max\": 27.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 26.5, \"min\": 10.6, \"max\": 53.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 4.2, \"max\": 13.7, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 10.9, \"min\": 3.3, \"max\": 27.2, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 3.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d68a7_0433", "family": "gear", "tier": 3, "seed": 1234004135, "symmetry": "none", "op_count": 1, "ir_hash": "0e25204f612ecebe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6470.0, "surface_area": 3160.0, "principal_moments": [425000.0, 425000.0, 744000.0], "n_faces": 117, "n_edges": 345, "n_vertices": 230}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 19, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 9.9, "min": 4.0, "max": 24.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": 0.37, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.4, "min": 0.0, "max": 0.75, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 5.5, "min": 2.0, "max": 14.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004135 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 19, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 9.9, \"min\": 4.0, \"max\": 24.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.37, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.0, \"max\": 0.75, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.0, \"max\": 14.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d68a8_0434", "family": "block", "tier": 1, "seed": 1234004136, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "66652c49adb94e4b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 308000.0, "surface_area": 32500.0, "principal_moments": [220000000.0, 233000000.0, 340000000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 82.81, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 47.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 79.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004136 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 82.81, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 47.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 79.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 31.1\n _ssy = 29.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d68a9_0435", "family": "block", "tier": 1, "seed": 1234004137, "symmetry": "none", "op_count": 2, "ir_hash": "76b2b4848f0fe6bc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 53000.0, "surface_area": 11800.0, "principal_moments": [8340000.0, 19600000.0, 22899999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 36.66, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 24.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 62.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004137 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 36.66, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 24.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 62.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d68aa_0436", "family": "ribbed", "tier": 2, "seed": 1234004138, "symmetry": "none", "op_count": 2, "ir_hash": "1adce2dd1217bbf1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25300.0, "surface_area": 15800.0, "principal_moments": [5220000.0, 10800000.0, 14099999.999999998], "n_faces": 46, "n_edges": 112, "n_vertices": 68}, "params": {"base_w": {"type": "float", "default": 68.88, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 37.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 15.6, "min": 6.2, "max": 31.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.3, "min": 1.0, "max": 5.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004138 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 68.88, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 37.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 15.6, \"min\": 6.2, \"max\": 31.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.3, \"min\": 1.0, \"max\": 5.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d68ab_0437", "family": "plate", "tier": 1, "seed": 1234004139, "symmetry": "none", "op_count": 2, "ir_hash": "ede31c9662fdbba9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 58000.0, "surface_area": 13900.0, "principal_moments": [12899999.999999998, 46199999.99999999, 57699999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 97.3, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 50.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 11.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004139 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 97.3, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 50.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 11.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d68ac_0438", "family": "revolved", "tier": 1, "seed": 1234004140, "symmetry": "radial", "op_count": 1, "ir_hash": "e1ba9b69ba88c8be", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 790000.0, "surface_area": 88400.0, "principal_moments": [1200000000.0, 2670000000.0, 2670000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 67.62, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 179.0, "min": 53.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 39.2, "min": 2.0, "max": 47.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 121.0, "min": 81.1, "max": 202.9, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 45.9, "min": 13.8, "max": 89.5, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004140 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 67.62, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 179.0, \"min\": 53.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 39.2, \"min\": 2.0, \"max\": 47.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 121.0, \"min\": 81.1, \"max\": 202.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 45.9, \"min\": 13.8, \"max\": 89.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d68ad_0439", "family": "bracket", "tier": 1, "seed": 1234004141, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "c4820f97675ccae9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29700.0, "surface_area": 13700.0, "principal_moments": [10800000.0, 15099999.999999998, 18100000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 36.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 52.67, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004141 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 36.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 52.67, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d68ae_0440", "family": "plate", "tier": 2, "seed": 1234004142, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "df741cbbd968ff77", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33400.0, "surface_area": 13700.0, "principal_moments": [8350000.0, 30099999.999999996, 38200000.0], "n_faces": 26, "n_edges": 72, "n_vertices": 48}, "params": {"plate_w": {"type": "float", "default": 105, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 55.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 12.4, "step": 0.5, "group": "Holes", "label": "Slot width (mm)"}, "hole_slot_len": {"type": "float", "default": 11.0, "min": 7.9, "max": 16.5, "step": 0.5, "group": "Holes", "label": "Slot length (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004142 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 105, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 55.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 12.4, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot width (mm)'},\n \"hole_slot_len\": {\"type\": 'float', \"default\": 11.0, \"min\": 7.9, \"max\": 16.5, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot length (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07257355839040132)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d68af_0441", "family": "block", "tier": 1, "seed": 1234004143, "symmetry": "none", "op_count": 2, "ir_hash": "4df887d03cafd715", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 284000.0, "surface_area": 34000.0, "principal_moments": [200000000.0, 253000000.0, 396000000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 34.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 97.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004143 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 34.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 97.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 31.9\n _ssy = 26.5\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d68b1_0443", "family": "bracket", "tier": 1, "seed": 1234004145, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "158f763e5cd86dc5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25200.0, "surface_area": 12200.0, "principal_moments": [9470000.0, 32099999.999999996, 37800000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 84.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004145 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 84.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d68b3_0445", "family": "revolved", "tier": 2, "seed": 1234004147, "symmetry": "none", "op_count": 1, "ir_hash": "983870c99b0ecdd9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1780.0, "surface_area": 1320.0, "principal_moments": [25800.0, 121000.0, 121000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 10, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 27.0, "min": 8.1, "max": 81.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 4.0, "min": 2.0, "max": 7.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004147 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 10, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 27.0, \"min\": 8.1, \"max\": 81.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 7.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d68b5_0447", "family": "plate", "tier": 0, "seed": 1234004149, "symmetry": "none", "op_count": 1, "ir_hash": "58b32579c7f1ab37", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26600.0, "surface_area": 7450.0, "principal_moments": [3960000.0, 9610000.0, 13099999.999999998], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 41.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004149 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 41.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d68b6_0448", "family": "revolved", "tier": 0, "seed": 1234004150, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "6cb7c9195af1c01b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7240.0, "surface_area": 3170.0, "principal_moments": [593000.0, 593000.0, 988000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 30.16, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 15.2, "min": 4.6, "max": 45.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004150 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30.16, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 15.2, \"min\": 4.6, \"max\": 45.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d68b7_0449", "family": "threaded", "tier": 1, "seed": 1234004151, "symmetry": "none", "op_count": 1, "ir_hash": "2ab0ae44b2f1ca43", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 735.0, "surface_area": 881.0, "principal_moments": [9320.0, 19300.0, 19300.0], "n_faces": 159, "n_edges": 431, "n_vertices": 274}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 15.5, "min": 6.2, "max": 31.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004151 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 15.5, \"min\": 6.2, \"max\": 31.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d68b8_0450", "family": "enclosure", "tier": 1, "seed": 1234004152, "symmetry": "none", "op_count": 2, "ir_hash": "7b9890937430011f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16700.0, "surface_area": 6610.0, "principal_moments": [1520000.0, 4230000.0, 4320000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 47.12, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 20.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 23.4, "min": 9.4, "max": 46.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.7, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004152 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 47.12, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 20.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 23.4, \"min\": 9.4, \"max\": 46.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d68ba_0452", "family": "compound", "tier": 2, "seed": 1234004154, "symmetry": "none", "op_count": 5, "ir_hash": "cad3befbd5828ea3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 78700.0, "surface_area": 14700.0, "principal_moments": [23699999.999999996, 24199999.999999996, 26899999.999999996], "n_faces": 35, "n_edges": 92, "n_vertices": 60}, "params": {"block_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 45.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 39.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 4.0, "min": 2.0, "max": 9.0, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 8.0, "min": 1.6, "max": 19.4, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 3.7, "min": 2.0, "max": 4.7, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 10.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004154 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 45.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 39.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 9.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 8.0, \"min\": 1.6, \"max\": 19.4, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 3.7, \"min\": 2.0, \"max\": 4.7, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 10.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d68bb_0453", "family": "bracket", "tier": 1, "seed": 1234004155, "symmetry": "none", "op_count": 1, "ir_hash": "bac264f44ba762b6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16600.0, "surface_area": 9710.0, "principal_moments": [4300000.0, 15099999.999999998, 16900000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 80.04, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 62.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004155 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80.04, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 62.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d68bd_0455", "family": "compound", "tier": 2, "seed": 1234004157, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "1372d33b488d3175", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 112000.0, "surface_area": 25600.0, "principal_moments": [77200000.0, 106000000.0, 107000000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_w": {"type": "float", "default": 70, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 70.7, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 20.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 18.1, "min": 7.2, "max": 35.0, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 94.3, "min": 28.3, "max": 282.9, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 8.7, "min": 2.0, "max": 13.0, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004157 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 70, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 70.7, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 20.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 18.1, \"min\": 7.2, \"max\": 35.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 94.3, \"min\": 28.3, \"max\": 282.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 8.7, \"min\": 2.0, \"max\": 13.0, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d68be_0456", "family": "enclosure", "tier": 3, "seed": 1234004158, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "5c55f38f93f948ef", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 113000.0, "surface_area": 45800.0, "principal_moments": [96999999.99999999, 179000000.0, 210000000.0], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 104.94, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 64.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 54.1, "min": 21.6, "max": 108.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.1, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004158 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 104.94, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 64.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 54.1, \"min\": 21.6, \"max\": 108.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.1, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.055277938569775184)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d68bf_0457", "family": "ribbed", "tier": 2, "seed": 1234004159, "symmetry": "none", "op_count": 2, "ir_hash": "e1436b60d8d66c76", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16200.0, "surface_area": 10400.0, "principal_moments": [2530000.0, 5470000.0, 7070000.0], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 30.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 13.5, "min": 5.4, "max": 27.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.7, "min": 1.0, "max": 6.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004159 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 30.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 13.5, \"min\": 5.4, \"max\": 27.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.7, \"min\": 1.0, \"max\": 6.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d68c0_0458", "family": "flanged", "tier": 1, "seed": 1234004160, "symmetry": "none", "op_count": 2, "ir_hash": "8a76338e81844610", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 81800.0, "surface_area": 20500.0, "principal_moments": [34300000.0, 41300000.0, 41300000.0], "n_faces": 29, "n_edges": 114, "n_vertices": 76}, "params": {"outer_d": {"type": "float", "default": 41.64, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 54.3, "min": 16.3, "max": 135.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 14.9, "min": 2.0, "max": 29.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 80.0, "min": 54.1, "max": 124.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.3, "min": 1.6, "max": 21.7, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.0, "min": 16.0, "max": 36.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004160 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 41.64, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 54.3, \"min\": 16.3, \"max\": 135.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 14.9, \"min\": 2.0, \"max\": 29.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 80.0, \"min\": 54.1, \"max\": 124.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.3, \"min\": 1.6, \"max\": 21.7, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.0, \"min\": 16.0, \"max\": 36.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d68c1_0459", "family": "ribbed", "tier": 2, "seed": 1234004161, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "0e428bc5525b7295", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13500.0, "surface_area": 9050.0, "principal_moments": [1850000.0, 2780000.0, 3630000.0], "n_faces": 46, "n_edges": 128, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 45.11, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 34.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 15.6, "min": 6.2, "max": 31.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.0, "min": 1.0, "max": 7.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 7.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004161 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 45.11, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 34.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 15.6, \"min\": 6.2, \"max\": 31.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 7.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 7.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d68c2_0460", "family": "threaded", "tier": 0, "seed": 1234004162, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ed72eff15544a405", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1460.0, "surface_area": 1370.0, "principal_moments": [9740.0, 156000.0, 156000.0], "n_faces": 290, "n_edges": 744, "n_vertices": 456}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 35.4, "min": 14.2, "max": 70.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004162 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 35.4, \"min\": 14.2, \"max\": 70.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d68c3_0461", "family": "flanged", "tier": 2, "seed": 1234004163, "symmetry": "radial", "op_count": 3, "ir_hash": "84ad6691e4686fc5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29000.0, "surface_area": 12000.0, "principal_moments": [8160000.0, 8160000.0, 13499999.999999998], "n_faces": 26, "n_edges": 57, "n_vertices": 34}, "params": {"outer_d": {"type": "float", "default": 35, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 23.7, "min": 7.1, "max": 59.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 18.9, "min": 2.0, "max": 24.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 70.8, "min": 45.5, "max": 105.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.6, "min": 1.4, "max": 9.5, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 21.2, "min": 14.2, "max": 31.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004163 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 23.7, \"min\": 7.1, \"max\": 59.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 18.9, \"min\": 2.0, \"max\": 24.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 70.8, \"min\": 45.5, \"max\": 105.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.6, \"min\": 1.4, \"max\": 9.5, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 21.2, \"min\": 14.2, \"max\": 31.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07276175576352496)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d68c6_0464", "family": "flanged", "tier": 1, "seed": 1234004166, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "8134bf7d66dce68c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61800.0, "surface_area": 20200.0, "principal_moments": [27799999.999999996, 27799999.999999996, 34200000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 39.32, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 41.4, "min": 12.4, "max": 103.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.3, "min": 2.0, "max": 27.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 90.0, "min": 51.1, "max": 118.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.1, "min": 1.2, "max": 16.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 27.0, "min": 18.0, "max": 40.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004166 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 39.32, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 41.4, \"min\": 12.4, \"max\": 103.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.3, \"min\": 2.0, \"max\": 27.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 90.0, \"min\": 51.1, \"max\": 118.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.1, \"min\": 1.2, \"max\": 16.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 27.0, \"min\": 18.0, \"max\": 40.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d68c7_0465", "family": "plate", "tier": 0, "seed": 1234004167, "symmetry": "radial", "op_count": 1, "ir_hash": "a2dc6435e2a627be", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4720.0, "surface_area": 3660.0, "principal_moments": [273000.0, 1420000.0, 1680000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 26.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004167 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 26.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d68c8_0466", "family": "revolved", "tier": 2, "seed": 1234004168, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "35d3988c80aa68dc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 295000.0, "surface_area": 32800.0, "principal_moments": [213000000.0, 282000000.0, 282000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 71.52, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 84.4, "min": 25.3, "max": 253.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 25.7, "min": 2.0, "max": 50.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004168 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 71.52, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 84.4, \"min\": 25.3, \"max\": 253.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 25.7, \"min\": 2.0, \"max\": 50.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d68c9_0467", "family": "profiled", "tier": 0, "seed": 1234004169, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "c209e3948150e33f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 123000.0, "surface_area": 32700.0, "principal_moments": [22700000.0, 283000000.0, 283000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 35, "min": 17.5, "max": 70.0, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 192.4, "min": 57.7, "max": 577.2, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004169 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 17.5, \"max\": 70.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 192.4, \"min\": 57.7, \"max\": 577.2, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d68ca_0468", "family": "plate", "tier": 1, "seed": 1234004170, "symmetry": "none", "op_count": 2, "ir_hash": "de7b4486aa0a81e4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1680.0, "surface_area": 1360.0, "principal_moments": [24100.0, 169000.0, 189000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 12.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.8, "min": 2.0, "max": 2.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004170 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 12.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.8, \"min\": 2.0, \"max\": 2.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d68cb_0469", "family": "flanged", "tier": 1, "seed": 1234004171, "symmetry": "radial", "op_count": 2, "ir_hash": "393fa96ea63c1195", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 326000.0, "surface_area": 59000.0, "principal_moments": [507000000.0, 507000000.0, 955000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 71.85, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 38.1, "min": 11.4, "max": 95.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 34.9, "min": 2.0, "max": 50.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 167.0, "min": 93.4, "max": 215.5, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 11.7, "min": 3.5, "max": 15.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 50.1, "min": 33.4, "max": 75.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004171 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 71.85, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 38.1, \"min\": 11.4, \"max\": 95.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 34.9, \"min\": 2.0, \"max\": 50.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 167.0, \"min\": 93.4, \"max\": 215.5, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 11.7, \"min\": 3.5, \"max\": 15.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 50.1, \"min\": 33.4, \"max\": 75.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d68cc_0470", "family": "plate", "tier": 2, "seed": 1234004172, "symmetry": "none", "op_count": 3, "ir_hash": "8bd144b0e270033d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1840.0, "surface_area": 2220.0, "principal_moments": [92900.0, 232000.0, 323000.0], "n_faces": 42, "n_edges": 120, "n_vertices": 80}, "params": {"plate_w": {"type": "float", "default": 40, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 25.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.2, "min": 2.0, "max": 7.4, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004172 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 25.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 7.4, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09410075957516598)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d68cd_0471", "family": "plate", "tier": 2, "seed": 1234004173, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "5b7a3421f05a4f39", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 72300.0, "surface_area": 17100.0, "principal_moments": [33700000.0, 42900000.0, 74800000.0], "n_faces": 18, "n_edges": 44, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 75.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "cs_angle": {"type": "float", "default": 82.0, "min": 60.0, "max": 120.0, "step": 15.0, "group": "Holes", "label": "Countersink angle (\u00b0)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004173 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 75.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"cs_angle\": {\"type\": 'float', \"default\": 82.0, \"min\": 60.0, \"max\": 120.0, \"step\": 15.0, \"group\": 'Holes', \"label\": 'Countersink angle (\u00b0)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cskHole(p[\"hole_d\"], p[\"hole_d\"] * 2, p[\"cs_angle\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.0663717065719993)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d68ce_0472", "family": "block", "tier": 1, "seed": 1234004174, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "753cf92a4c851c3f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 123000.0, "surface_area": 21300.0, "principal_moments": [36700000.0, 72100000.0, 87400000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 78.75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 33.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 50.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.7, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004174 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 78.75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 33.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 50.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.7, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d68d0_0474", "family": "ribbed", "tier": 2, "seed": 1234004176, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "2fc969a93a75e1c1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13100.0, "surface_area": 8040.0, "principal_moments": [1730000.0, 2470000.0, 4010000.0], "n_faces": 70, "n_edges": 192, "n_vertices": 120}, "params": {"base_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 39.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 6.3, "min": 2.5, "max": 12.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.8, "min": 1.0, "max": 14.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 9.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004176 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 39.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 6.3, \"min\": 2.5, \"max\": 12.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.8, \"min\": 1.0, \"max\": 14.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 9.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d68d2_0476", "family": "flanged", "tier": 2, "seed": 1234004178, "symmetry": "none", "op_count": 2, "ir_hash": "9ec9a88f6a4e6e1a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 360000.0, "surface_area": 53300.0, "principal_moments": [425000000.0, 425000000.0, 545000000.0], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 75, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 67.2, "min": 20.2, "max": 168.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 30.3, "min": 2.0, "max": 52.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 133.8, "min": 97.5, "max": 225.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 12.5, "min": 3.8, "max": 26.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 40.1, "min": 26.8, "max": 60.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004178 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 67.2, \"min\": 20.2, \"max\": 168.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 30.3, \"min\": 2.0, \"max\": 52.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 133.8, \"min\": 97.5, \"max\": 225.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 12.5, \"min\": 3.8, \"max\": 26.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 40.1, \"min\": 26.8, \"max\": 60.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d68d3_0477", "family": "ribbed", "tier": 1, "seed": 1234004179, "symmetry": "none", "op_count": 2, "ir_hash": "e733068d7cc07439", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12300.0, "surface_area": 8470.0, "principal_moments": [2060000.0, 5060000.0, 6790000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 33.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 9.3, "min": 3.7, "max": 18.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.0, "min": 1.0, "max": 10.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004179 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 33.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 9.3, \"min\": 3.7, \"max\": 18.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.0, \"max\": 10.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d68d4_0478", "family": "compound", "tier": 1, "seed": 1234004180, "symmetry": "none", "op_count": 2, "ir_hash": "4f588e1291fa53ef", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12300.0, "surface_area": 3130.0, "principal_moments": [877000.0, 1220000.0, 1220000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 25, "min": 12.5, "max": 45.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 21.6, "min": 8.6, "max": 43.2, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 15.1, "min": 7.5, "max": 22.5, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 9.5, "min": 2.9, "max": 23.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004180 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 25, \"min\": 12.5, \"max\": 45.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 21.6, \"min\": 8.6, \"max\": 43.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 15.1, \"min\": 7.5, \"max\": 22.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 9.5, \"min\": 2.9, \"max\": 23.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d68d5_0479", "family": "bracket", "tier": 1, "seed": 1234004181, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "7394352d85b0d8ed", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8500.0, "surface_area": 5450.0, "principal_moments": [1260000.0, 4850000.0, 5530000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 48.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004181 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 48.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d68d9_0483", "family": "enclosure", "tier": 2, "seed": 1234004185, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "73dd1f2bd73a08c2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 79300.0, "surface_area": 34100.0, "principal_moments": [54399999.99999999, 64799999.99999999, 88700000.0], "n_faces": 35, "n_edges": 108, "n_vertices": 72}, "params": {"enc_w": {"type": "float", "default": 74.37, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 37.3, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 72.0, "min": 28.8, "max": 144.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 8.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004185 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 74.37, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 37.3, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 72.0, \"min\": 28.8, \"max\": 144.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 8.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.041564387162883125)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d68da_0484", "family": "plate", "tier": 3, "seed": 1234004186, "symmetry": "radial", "op_count": 4, "ir_hash": "229166cc7a2acf50", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 50000.0, "surface_area": 15100.0, "principal_moments": [13099999.999999998, 34200000.0, 46199999.99999999], "n_faces": 31, "n_edges": 84, "n_vertices": 56}, "params": {"plate_w": {"type": "float", "default": 90.75, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 57.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 27.2, "min": 18.2, "max": 40.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "boss_d": {"type": "float", "default": 23.1, "min": 11.6, "max": 46.2, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 6.1, "min": 2.4, "max": 15.2, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 16.2, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004186 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 90.75, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 57.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 27.2, \"min\": 18.2, \"max\": 40.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"boss_d\": {\"type\": 'float', \"default\": 23.1, \"min\": 11.6, \"max\": 46.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 6.1, \"min\": 2.4, \"max\": 15.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 16.2, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09877369674179273)\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d68db_0485", "family": "bracket", "tier": 1, "seed": 1234004187, "symmetry": "none", "op_count": 1, "ir_hash": "0dbae1666d7d7d1a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7130.0, "surface_area": 3810.0, "principal_moments": [666000.0, 1200000.0, 1350000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 30.33, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 30.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25.98, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004187 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30.33, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 30.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25.98, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d68dd_0487", "family": "block", "tier": 2, "seed": 1234004189, "symmetry": "none", "op_count": 3, "ir_hash": "a50fff536a59d10b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14000.0, "surface_area": 5750.0, "principal_moments": [1540000.0, 1540000.0, 2520000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 31.5, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 15.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 33.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.9, "min": 2.0, "max": 1.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "pocket_w": {"type": "float", "default": 13.3, "min": 6.7, "max": 25.2, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 9.6, "min": 4.8, "max": 12.0, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 10.5, "min": 4.2, "max": 28.7, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004189 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 31.5, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 15.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 33.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.9, \"min\": 2.0, \"max\": 1.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"pocket_w\": {\"type\": 'float', \"default\": 13.3, \"min\": 6.7, \"max\": 25.2, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 9.6, \"min\": 4.8, \"max\": 12.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 10.5, \"min\": 4.2, \"max\": 28.7, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 7.9\n _ssy = 6.9\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d68de_0488", "family": "block", "tier": 1, "seed": 1234004190, "symmetry": "none", "op_count": 2, "ir_hash": "c0af18af9547ee4e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 54600.0, "surface_area": 11700.0, "principal_moments": [11699999.999999998, 13499999.999999998, 17400000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 41.84, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 29.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 45.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 8.7, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004190 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 41.84, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 29.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 45.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 8.7, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d68df_0489", "family": "compound", "tier": 1, "seed": 1234004191, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "2360ebe3edf2f5dc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 173000.0, "surface_area": 21200.0, "principal_moments": [84100000.0, 92599999.99999999, 96399999.99999999], "n_faces": 24, "n_edges": 64, "n_vertices": 42}, "params": {"block_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 54.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 52.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 5.2, "min": 2.6, "max": 11.8, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 10.1, "min": 2.3, "max": 27.0, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 4.7, "min": 2.0, "max": 6.5, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004191 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 54.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 52.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.6, \"max\": 11.8, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 10.1, \"min\": 2.3, \"max\": 27.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 4.7, \"min\": 2.0, \"max\": 6.5, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d68e0_0490", "family": "block", "tier": 1, "seed": 1234004192, "symmetry": "none", "op_count": 2, "ir_hash": "199e14435aa61ecb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2140.0, "surface_area": 1900.0, "principal_moments": [49500.0, 79000.0, 105000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 15.32, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 8.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 19.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.4, "min": 2.0, "max": 2.5, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004192 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 15.32, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 8.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 19.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 2.5, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d68e1_0491", "family": "plate", "tier": 1, "seed": 1234004193, "symmetry": "radial", "op_count": 2, "ir_hash": "0fd352ec73921bbe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5780.0, "surface_area": 2480.0, "principal_moments": [178000.0, 657000.0, 696000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"plate_w": {"type": "float", "default": 35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 14.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 10.5, "min": 7.0, "max": 15.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004193 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 14.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 10.5, \"min\": 7.0, \"max\": 15.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d68e2_0492", "family": "bracket", "tier": 1, "seed": 1234004194, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d43c310597cee308", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37100.0, "surface_area": 14900.0, "principal_moments": [8170000.0, 44200000.0, 45999999.99999999], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 44.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 54.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004194 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 44.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 54.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d68e3_0493", "family": "flanged", "tier": 1, "seed": 1234004195, "symmetry": "none", "op_count": 2, "ir_hash": "ac6046452fb7fc44", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1150000.0, "surface_area": 136000.0, "principal_moments": [3890000000.0, 3890000000.0, 4180000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 95.98, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 126.2, "min": 37.9, "max": 315.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 45.0, "min": 2.0, "max": 67.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 221.4, "min": 124.8, "max": 287.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 14.0, "min": 4.2, "max": 50.5, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 66.4, "min": 44.3, "max": 99.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004195 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 95.98, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 126.2, \"min\": 37.9, \"max\": 315.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 45.0, \"min\": 2.0, \"max\": 67.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 221.4, \"min\": 124.8, \"max\": 287.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 14.0, \"min\": 4.2, \"max\": 50.5, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 66.4, \"min\": 44.3, \"max\": 99.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d68e5_0495", "family": "plate", "tier": 0, "seed": 1234004197, "symmetry": "none", "op_count": 1, "ir_hash": "1a5b228f3dfae61f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15400.0, "surface_area": 4780.0, "principal_moments": [967000.0, 4740000.0, 5450000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 25.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004197 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 25.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d68e6_0496", "family": "flanged", "tier": 1, "seed": 1234004198, "symmetry": "none", "op_count": 2, "ir_hash": "440fc0d29e281645", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 273000.0, "surface_area": 48800.0, "principal_moments": [299000000.0, 299000000.0, 513000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 71.12, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 42.8, "min": 12.8, "max": 107.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 24.0, "min": 2.0, "max": 49.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 146.8, "min": 92.5, "max": 213.4, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.5, "min": 2.9, "max": 17.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 44.0, "min": 29.4, "max": 66.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004198 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 71.12, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 42.8, \"min\": 12.8, \"max\": 107.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 24.0, \"min\": 2.0, \"max\": 49.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 146.8, \"min\": 92.5, \"max\": 213.4, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.5, \"min\": 2.9, \"max\": 17.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 44.0, \"min\": 29.4, \"max\": 66.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d68e7_0497", "family": "block", "tier": 1, "seed": 1234004199, "symmetry": "none", "op_count": 2, "ir_hash": "74327d8848eed057", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 68600.0, "surface_area": 13200.0, "principal_moments": [17200000.0, 24699999.999999996, 36200000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 22.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 61.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.1, "min": 2.0, "max": 2.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004199 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 22.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 61.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.1, \"min\": 2.0, \"max\": 2.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 18.8\n _ssy = 17.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d68e8_0498", "family": "bracket", "tier": 2, "seed": 1234004200, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "e59c41180b396bed", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27500.0, "surface_area": 9410.0, "principal_moments": [4050000.0, 15799999.999999998, 16299999.999999998], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 40, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 43.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 31.54, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 42.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 10.1, "min": 4.0, "max": 15.8, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004200 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 40, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 43.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 31.54, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 42.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 10.1, \"min\": 4.0, \"max\": 15.8, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d68e9_0499", "family": "compound", "tier": 1, "seed": 1234004201, "symmetry": "none", "op_count": 2, "ir_hash": "0f6e4fadef2ff2d3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 66400.0, "surface_area": 14300.0, "principal_moments": [15199999.999999998, 30599999.999999996, 30599999.999999996], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 43.21, "min": 21.6, "max": 77.8, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 41.6, "min": 16.6, "max": 83.2, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 24.7, "min": 12.3, "max": 38.9, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 34.8, "min": 10.4, "max": 87.0, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 13.7, "min": 2.0, "max": 17.8, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004201 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 43.21, \"min\": 21.6, \"max\": 77.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 41.6, \"min\": 16.6, \"max\": 83.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 24.7, \"min\": 12.3, \"max\": 38.9, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 34.8, \"min\": 10.4, \"max\": 87.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 13.7, \"min\": 2.0, \"max\": 17.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d68ea_0500", "family": "bracket", "tier": 1, "seed": 1234004202, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "45a6aecbfedf5b42", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42400.0, "surface_area": 19500.0, "principal_moments": [21600000.0, 46899999.99999999, 51199999.99999999], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 75, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 54.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 49.08, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004202 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 54.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 49.08, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d68eb_0501", "family": "profiled", "tier": 1, "seed": 1234004203, "symmetry": "none", "op_count": 1, "ir_hash": "2ee64fa075716dda", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7510.0, "surface_area": 2390.0, "principal_moments": [236000.0, 1040000.0, 1040000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"circ_r": {"type": "float", "default": 8.69, "min": 4.3, "max": 17.4, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 38.3, "min": 11.5, "max": 114.9, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004203 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 8.69, \"min\": 4.3, \"max\": 17.4, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 38.3, \"min\": 11.5, \"max\": 114.9, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d68ec_0502", "family": "block", "tier": 1, "seed": 1234004204, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "73a4d3008e7a80fc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 474000.0, "surface_area": 45600.0, "principal_moments": [459000000.0, 496000000.0, 753000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 95, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 50.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004204 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 95, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 50.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 23.8\n _ssy = 24.6\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d68ed_0503", "family": "compound", "tier": 1, "seed": 1234004205, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "9b76696174172388", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 88500.0, "surface_area": 28700.0, "principal_moments": [91399999.99999999, 95999999.99999999, 108000000.0], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"base_w": {"type": "float", "default": 100, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 104.5, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 6.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 12.1, "min": 6.0, "max": 25.0, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 71.4, "min": 21.4, "max": 214.2, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004205 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 100, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 104.5, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 12.1, \"min\": 6.0, \"max\": 25.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 71.4, \"min\": 21.4, \"max\": 214.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d68ee_0504", "family": "block", "tier": 1, "seed": 1234004206, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "323dbbbfe94d47aa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 574000.0, "surface_area": 46700.0, "principal_moments": [587000000.0, 683000000.0, 788000000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 70.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 96.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004206 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 70.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 96.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 31.9\n _ssy = 34.1\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d68ef_0505", "family": "block", "tier": 1, "seed": 1234004207, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "e35d2027a6ab399b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 337000.0, "surface_area": 39000.0, "principal_moments": [273000000.0, 286000000.0, 460000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 90, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 42.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 91.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004207 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 90, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 42.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 91.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d68f0_0506", "family": "compound", "tier": 1, "seed": 1234004208, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "6da19029d543f640", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 40900.0, "surface_area": 10900.0, "principal_moments": [10800000.0, 12899999.999999998, 12899999.999999998], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 26.02, "min": 15.6, "max": 41.6, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 17.5, "min": 7.0, "max": 43.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 20.5, "min": 10.2, "max": 38.5, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 38.7, "min": 11.6, "max": 96.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 11.0, "min": 2.0, "max": 14.8, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004208 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 26.02, \"min\": 15.6, \"max\": 41.6, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 17.5, \"min\": 7.0, \"max\": 43.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 20.5, \"min\": 10.2, \"max\": 38.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 38.7, \"min\": 11.6, \"max\": 96.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 11.0, \"min\": 2.0, \"max\": 14.8, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d68f1_0507", "family": "bracket", "tier": 3, "seed": 1234004209, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "a22775fcb22fcd72", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9750.0, "surface_area": 5360.0, "principal_moments": [1000000.0, 3150000.0, 3170000.0], "n_faces": 17, "n_edges": 39, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 33.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 6.5, "min": 2.5, "max": 12.5, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004209 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 33.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.5, \"min\": 2.5, \"max\": 12.5, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d68f2_0508", "family": "flanged", "tier": 1, "seed": 1234004210, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "78123228f453ee5b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 541000.0, "surface_area": 91500.0, "principal_moments": [1040000000.0, 1040000000.0, 1360000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 86.25, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 81.0, "min": 24.3, "max": 202.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 39.4, "min": 2.0, "max": 60.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 194.0, "min": 112.1, "max": 258.8, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.1, "min": 2.1, "max": 32.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 58.2, "min": 38.8, "max": 87.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004210 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 86.25, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 81.0, \"min\": 24.3, \"max\": 202.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 39.4, \"min\": 2.0, \"max\": 60.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 194.0, \"min\": 112.1, \"max\": 258.8, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.1, \"min\": 2.1, \"max\": 32.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 58.2, \"min\": 38.8, \"max\": 87.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d68f3_0509", "family": "compound", "tier": 2, "seed": 1234004211, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "6b90b777fb5fa77b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 604000.0, "surface_area": 51400.0, "principal_moments": [674000000.0, 746000000.0, 876000000.0], "n_faces": 22, "n_edges": 66, "n_vertices": 44}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 95.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 88.9, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 69.5, "min": 27.8, "max": 111.2, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 61.9, "min": 24.8, "max": 99.0, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.6, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 35.4, "min": 17.7, "max": 60.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 45.0, "min": 22.5, "max": 76.1, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 49.0, "min": 19.6, "max": 75.6, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004211 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 95.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 88.9, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 69.5, \"min\": 27.8, \"max\": 111.2, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 61.9, \"min\": 24.8, \"max\": 99.0, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.6, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 35.4, \"min\": 17.7, \"max\": 60.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 45.0, \"min\": 22.5, \"max\": 76.1, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 49.0, \"min\": 19.6, \"max\": 75.6, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .rect(p[\"tab_a\"], p[\"tab_b\"]).extrude(p[\"tab_t\"])\n )\n result = (\n result.faces('>X').workplane()\n .rect(p[\"tab_a\"] * 0.6, p[\"tab_b\"] * 0.6, forConstruction=True)\n .vertices().hole(p[\"tab_hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d68f4_0510", "family": "compound", "tier": 1, "seed": 1234004212, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "65e1ccbfb78d21b4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12000.0, "surface_area": 3160.0, "principal_moments": [830000.0, 1260000.0, 1260000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 25, "min": 12.5, "max": 45.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 20.5, "min": 8.2, "max": 41.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 13.5, "min": 6.8, "max": 22.5, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 13.4, "min": 4.0, "max": 33.5, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004212 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 25, \"min\": 12.5, \"max\": 45.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 20.5, \"min\": 8.2, \"max\": 41.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 13.5, \"min\": 6.8, \"max\": 22.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 13.4, \"min\": 4.0, \"max\": 33.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d68f5_0511", "family": "revolved", "tier": 1, "seed": 1234004213, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "74ee13791f9ea23c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2640.0, "surface_area": 2180.0, "principal_moments": [52300.0, 254000.0, 254000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 11.5, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 38.1, "min": 11.4, "max": 114.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004213 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 11.5, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 38.1, \"min\": 11.4, \"max\": 114.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d68f6_0512", "family": "threaded", "tier": 1, "seed": 1234004214, "symmetry": "none", "op_count": 1, "ir_hash": "b1779440e3c69a8a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9540.0, "surface_area": 4460.0, "principal_moments": [264000.0, 2570000.0, 2570000.0], "n_faces": 493, "n_edges": 1357, "n_vertices": 866}, "params": {"major_d": {"type": "float", "default": 16.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.0, "min": 1.0, "max": 4.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 55.6, "min": 22.2, "max": 111.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004214 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 4.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 55.6, \"min\": 22.2, \"max\": 111.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d68f7_0513", "family": "revolved", "tier": 0, "seed": 1234004215, "symmetry": "none", "op_count": 1, "ir_hash": "0be7c6f708668d87", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 406000.0, "surface_area": 54000.0, "principal_moments": [336000000.0, 641000000.0, 641000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 74.33, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 140.2, "min": 42.1, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004215 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 74.33, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 140.2, \"min\": 42.1, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d68f8_0514", "family": "gear", "tier": 3, "seed": 1234004216, "symmetry": "none", "op_count": 1, "ir_hash": "6e68991ec9c3cdf7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 259000.0, "surface_area": 68300.0, "principal_moments": [1950000000.0, 1950000000.0, 3880000000.0], "n_faces": 193, "n_edges": 573, "n_vertices": 382}, "params": {"module": {"type": "float", "default": 6.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 38, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 26.1, "min": 10.4, "max": 65.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": -0.06, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 1.13, "min": 0.0, "max": 3.0, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004216 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 6.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 38, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 26.1, \"min\": 10.4, \"max\": 65.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.06, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 1.13, \"min\": 0.0, \"max\": 3.0, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurRingGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d68f9_0515", "family": "threaded", "tier": 1, "seed": 1234004217, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "db81663e39971238", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 516.0, "surface_area": 746.0, "principal_moments": [4170.0, 14300.0, 14300.0], "n_faces": 199, "n_edges": 541, "n_vertices": 344}, "params": {"major_d": {"type": "float", "default": 4.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.7, "min": 0.35, "max": 1.4, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 16.9, "min": 6.8, "max": 33.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004217 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.35, \"max\": 1.4, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 16.9, \"min\": 6.8, \"max\": 33.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d68fa_0516", "family": "compound", "tier": 1, "seed": 1234004218, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "0dfbc575c61d6e1f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16000.0, "surface_area": 7600.0, "principal_moments": [3950000.0, 7110000.0, 7720000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"base_w": {"type": "float", "default": 51.28, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 43.7, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 5.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 10.7, "min": 4.3, "max": 21.9, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 60.1, "min": 18.0, "max": 180.3, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004218 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 51.28, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 43.7, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 10.7, \"min\": 4.3, \"max\": 21.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 60.1, \"min\": 18.0, \"max\": 180.3, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d68fb_0517", "family": "revolved", "tier": 1, "seed": 1234004219, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ba151fdd96d7639f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 69000.0, "surface_area": 15800.0, "principal_moments": [14099999.999999998, 47299999.99999999, 47299999.99999999], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 36.63, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 83.7, "min": 25.1, "max": 251.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.1, "min": 2.0, "max": 25.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004219 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 36.63, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 83.7, \"min\": 25.1, \"max\": 251.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.1, \"min\": 2.0, \"max\": 25.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d68fc_0518", "family": "enclosure", "tier": 1, "seed": 1234004220, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "745eec6654246d03", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 178000.0, "surface_area": 61500.0, "principal_moments": [249000000.0, 304000000.0, 389000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 100, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 84.3, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 67.6, "min": 27.0, "max": 135.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004220 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 100, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 84.3, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 67.6, \"min\": 27.0, \"max\": 135.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d68fd_0519", "family": "block", "tier": 1, "seed": 1234004221, "symmetry": "none", "op_count": 2, "ir_hash": "c904befabe69918a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20100.0, "surface_area": 6680.0, "principal_moments": [2550000.0, 2660000.0, 4270000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 16.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 36.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.8, "min": 2.0, "max": 1.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004221 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 16.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 36.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.8, \"min\": 2.0, \"max\": 1.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 6.6\n _ssy = 6.5\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d68fe_0520", "family": "flanged", "tier": 3, "seed": 1234004222, "symmetry": "none", "op_count": 3, "ir_hash": "63f012a368fbe649", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 139000.0, "surface_area": 34000.0, "principal_moments": [102000000.0, 102000000.0, 164000000.0], "n_faces": 26, "n_edges": 57, "n_vertices": 34}, "params": {"outer_d": {"type": "float", "default": 60, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 39.3, "min": 11.8, "max": 98.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 26.8, "min": 2.0, "max": 42.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 122.0, "min": 78.0, "max": 180.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.7, "min": 1.7, "max": 15.7, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 36.6, "min": 24.4, "max": 54.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004222 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 39.3, \"min\": 11.8, \"max\": 98.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 26.8, \"min\": 2.0, \"max\": 42.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 122.0, \"min\": 78.0, \"max\": 180.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.7, \"min\": 1.7, \"max\": 15.7, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 36.6, \"min\": 24.4, \"max\": 54.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6902_0524", "family": "bracket", "tier": 1, "seed": 1234004226, "symmetry": "none", "op_count": 1, "ir_hash": "458ea63a9cca5a7e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45900.0, "surface_area": 21000.0, "principal_moments": [16199999.999999998, 85400000.0, 85700000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 73.89, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 65.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 46.25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 70.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004226 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 73.89, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 65.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 46.25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 70.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6903_0525", "family": "plate", "tier": 0, "seed": 1234004227, "symmetry": "radial", "op_count": 1, "ir_hash": "180583b7ff4f4c3d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 54500.0, "surface_area": 12700.0, "principal_moments": [8400000.0, 55599999.99999999, 62699999.99999999], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 110, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 41.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004227 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 110, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 41.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6904_0526", "family": "plate", "tier": 1, "seed": 1234004228, "symmetry": "none", "op_count": 2, "ir_hash": "c0376d65eaeb9ed2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7430.0, "surface_area": 3010.0, "principal_moments": [298000.0, 828000.0, 948000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 18.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004228 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 18.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6905_0527", "family": "bracket", "tier": 1, "seed": 1234004229, "symmetry": "none", "op_count": 1, "ir_hash": "e3c6c71ff48df39f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6660.0, "surface_area": 4260.0, "principal_moments": [494000.0, 1650000.0, 1800000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 23.78, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 9.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004229 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 23.78, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 9.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6906_0528", "family": "gear", "tier": 1, "seed": 1234004230, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "07c5fe4f14555088", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3450.0, "surface_area": 2230.0, "principal_moments": [176000.0, 176000.0, 329000.0], "n_faces": 111, "n_edges": 327, "n_vertices": 218}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 18, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.3, "min": 2.5, "max": 15.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 4.1, "min": 2.0, "max": 13.9, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004230 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 18, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.3, \"min\": 2.5, \"max\": 15.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 4.1, \"min\": 2.0, \"max\": 13.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6907_0529", "family": "profiled", "tier": 0, "seed": 1234004231, "symmetry": "none", "op_count": 1, "ir_hash": "d4340cd2422f77c0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21100.0, "surface_area": 5480.0, "principal_moments": [900000.0, 11699999.999999998, 11699999.999999998], "n_faces": 7, "n_edges": 15, "n_vertices": 10}, "params": {"circ_r": {"type": "float", "default": 10.53, "min": 5.3, "max": 21.1, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 80.0, "min": 24.0, "max": 240.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004231 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 10.53, \"min\": 5.3, \"max\": 21.1, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 80.0, \"min\": 24.0, \"max\": 240.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6908_0530", "family": "enclosure", "tier": 2, "seed": 1234004232, "symmetry": "none", "op_count": 3, "ir_hash": "15db661896d202ca", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 63800.0, "surface_area": 42400.0, "principal_moments": [50599999.99999999, 83900000.0, 89500000.0], "n_faces": 19, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 88.99, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 48.2, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 66.2, "min": 26.5, "max": 132.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.1, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 10.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004232 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 88.99, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 48.2, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 66.2, \"min\": 26.5, \"max\": 132.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.1, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 10.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6909_0531", "family": "threaded", "tier": 2, "seed": 1234004233, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "0ab3287e72fa239e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18100.0, "surface_area": 5320.0, "principal_moments": [1940000.0, 2070000.0, 2080000.0], "n_faces": 60, "n_edges": 146, "n_vertices": 88}, "params": {"thread_size": {"type": "enum", "default": "1 1/4", "choices": ["1/4", "5/16", "3/8", "1/2", "5/8", "3/4", "7/8", "1", "1 1/4", "1 1/2"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 27.6, "min": 11.0, "max": 55.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004233 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '1 1/4', \"choices\": ['1/4', '5/16', '3/8', '1/2', '5/8', '3/4', '7/8', '1', '1 1/4', '1 1/2'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 27.6, \"min\": 11.0, \"max\": 55.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.AcmeThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d690a_0532", "family": "gear", "tier": 0, "seed": 1234004234, "symmetry": "none", "op_count": 1, "ir_hash": "157fb26b52327bf5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2600.0, "surface_area": 1820.0, "principal_moments": [114000.0, 114000.0, 217000.0], "n_faces": 104, "n_edges": 306, "n_vertices": 204}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 17, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.2, "min": 2.1, "max": 13.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004234 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 17, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.1, \"max\": 13.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d690b_0533", "family": "bracket", "tier": 2, "seed": 1234004235, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ee4fea4a8d1d6eaa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11800.0, "surface_area": 8760.0, "principal_moments": [2720000.0, 4500000.0, 5580000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 38.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 44.62, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.0, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004235 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 38.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 44.62, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d690c_0534", "family": "compound", "tier": 1, "seed": 1234004236, "symmetry": "none", "op_count": 3, "ir_hash": "c8fe36258a3caa58", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 63100.0, "surface_area": 10300.0, "principal_moments": [14199999.999999998, 17700000.0, 21600000.0], "n_faces": 27, "n_edges": 68, "n_vertices": 45}, "params": {"block_w": {"type": "float", "default": 48.89, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 41.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 31.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 3.1, "min": 1.6, "max": 7.0, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 6.1, "min": 1.4, "max": 17.2, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 2.4, "min": 2.0, "max": 4.1, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004236 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 48.89, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 41.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 31.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 3.1, \"min\": 1.6, \"max\": 7.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 6.1, \"min\": 1.4, \"max\": 17.2, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 4.1, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"head_sides\"], p[\"head_r\"] * 2).extrude(p[\"head_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d690e_0536", "family": "bracket", "tier": 1, "seed": 1234004238, "symmetry": "none", "op_count": 1, "ir_hash": "b2bd94ef4d30a404", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17500.0, "surface_area": 8780.0, "principal_moments": [4100000.0, 8050000.0, 9460000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 39.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004238 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 39.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d690f_0537", "family": "block", "tier": 1, "seed": 1234004239, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "7ec2bd8878f2a1e0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 572000.0, "surface_area": 50400.0, "principal_moments": [579000000.0, 677000000.0, 855000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 89.65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 65.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004239 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 89.65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 65.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6910_0538", "family": "flanged", "tier": 1, "seed": 1234004240, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "9631ef35e6626a2c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 191000.0, "surface_area": 43400.0, "principal_moments": [122000000.0, 193000000.0, 193000000.0], "n_faces": 29, "n_edges": 114, "n_vertices": 76}, "params": {"outer_d": {"type": "float", "default": 60, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 84.3, "min": 25.3, "max": 210.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 24.4, "min": 2.0, "max": 42.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 96.6, "min": 78.0, "max": 180.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.4, "min": 1.9, "max": 33.7, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 29.0, "min": 19.3, "max": 43.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004240 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 84.3, \"min\": 25.3, \"max\": 210.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 24.4, \"min\": 2.0, \"max\": 42.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 96.6, \"min\": 78.0, \"max\": 180.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.4, \"min\": 1.9, \"max\": 33.7, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 29.0, \"min\": 19.3, \"max\": 43.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6911_0539", "family": "revolved", "tier": 2, "seed": 1234004241, "symmetry": "none", "op_count": 2, "ir_hash": "8e19dcf35d53d0d6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 402000.0, "surface_area": 59100.0, "principal_moments": [255000000.0, 915000000.0, 915000000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 65, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 181.7, "min": 54.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 1.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004241 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 181.7, \"min\": 54.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 1.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6915_0543", "family": "profiled", "tier": 1, "seed": 1234004245, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "5ccda9bb97befe8e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 116000.0, "surface_area": 31700.0, "principal_moments": [16199999.999999998, 471000000.0, 471000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 29.91, "min": 15.0, "max": 59.8, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 218.5, "min": 65.5, "max": 655.5, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 14.7, "min": 2.0, "max": 23.9, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004245 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 29.91, \"min\": 15.0, \"max\": 59.8, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 218.5, \"min\": 65.5, \"max\": 655.5, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 14.7, \"min\": 2.0, \"max\": 23.9, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6916_0544", "family": "threaded", "tier": 1, "seed": 1234004246, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "4537715d5f1c3f92", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 64200.0, "surface_area": 16800.0, "principal_moments": [19000000.0, 28499999.999999996, 28499999.999999996], "n_faces": 308, "n_edges": 886, "n_vertices": 580}, "params": {"major_d": {"type": "float", "default": 24.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 3.0, "min": 1.5, "max": 6.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 59.7, "min": 23.9, "max": 119.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004246 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 24.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.5, \"max\": 6.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 59.7, \"min\": 23.9, \"max\": 119.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6917_0545", "family": "revolved", "tier": 1, "seed": 1234004247, "symmetry": "radial", "op_count": 1, "ir_hash": "acdf5b3b64748a3a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 288000.0, "surface_area": 52800.0, "principal_moments": [123000000.0, 1020000000.0, 1020000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 51.26, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 199.9, "min": 60.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 28.2, "min": 2.0, "max": 35.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004247 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 51.26, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 199.9, \"min\": 60.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 28.2, \"min\": 2.0, \"max\": 35.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6918_0546", "family": "compound", "tier": 2, "seed": 1234004248, "symmetry": "none", "op_count": 4, "ir_hash": "cdbe6a42cd9dfaa8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 393000.0, "surface_area": 39800.0, "principal_moments": [298000000.0, 386000000.0, 454000000.0], "n_faces": 20, "n_edges": 54, "n_vertices": 36}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 56.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 91.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 47.3, "min": 18.9, "max": 75.7, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 74.7, "min": 29.9, "max": 119.5, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 10.4, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 46.3, "min": 23.1, "max": 60.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 28.3, "min": 14.2, "max": 45.1, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 42.9, "min": 17.2, "max": 77.9, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004248 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 56.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 91.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 47.3, \"min\": 18.9, \"max\": 75.7, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 74.7, \"min\": 29.9, \"max\": 119.5, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 10.4, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 46.3, \"min\": 23.1, \"max\": 60.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 28.3, \"min\": 14.2, \"max\": 45.1, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 42.9, \"min\": 17.2, \"max\": 77.9, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6919_0547", "family": "revolved", "tier": 0, "seed": 1234004249, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "79bb5faaa82c3cc0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 340.0, "surface_area": 412.0, "principal_moments": [3410.0, 3410.0, 5110.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 10, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 6.5, "min": 1.9, "max": 19.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004249 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 10, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 6.5, \"min\": 1.9, \"max\": 19.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d691a_0548", "family": "ribbed", "tier": 3, "seed": 1234004250, "symmetry": "none", "op_count": 3, "ir_hash": "8af0d804ffb98fa8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39700.0, "surface_area": 14700.0, "principal_moments": [10900000.0, 14299999.999999998, 23599999.999999996], "n_faces": 39, "n_edges": 108, "n_vertices": 72}, "params": {"base_w": {"type": "float", "default": 64.91, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 57.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 8.5, "min": 3.4, "max": 17.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.2, "min": 1.0, "max": 13.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 12.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004250 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 64.91, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 57.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 8.5, \"min\": 3.4, \"max\": 17.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.2, \"min\": 1.0, \"max\": 13.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 12.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d691b_0549", "family": "profiled", "tier": 1, "seed": 1234004251, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ac9e6e63979842e6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21000.0, "surface_area": 6010.0, "principal_moments": [690000.0, 18900000.0, 18900000.0], "n_faces": 7, "n_edges": 15, "n_vertices": 10}, "params": {"circ_r": {"type": "float", "default": 9.25, "min": 4.6, "max": 18.5, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 103.0, "min": 30.9, "max": 309.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004251 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 9.25, \"min\": 4.6, \"max\": 18.5, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 103.0, \"min\": 30.9, \"max\": 309.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d691c_0550", "family": "profiled", "tier": 2, "seed": 1234004252, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "70c180d445ff86a2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 44400.0, "surface_area": 7840.0, "principal_moments": [4170000.0, 23199999.999999996, 23199999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"circ_r": {"type": "float", "default": 14.42, "min": 7.2, "max": 28.8, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 75.5, "min": 22.6, "max": 226.5, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004252 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 14.42, \"min\": 7.2, \"max\": 28.8, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 75.5, \"min\": 22.6, \"max\": 226.5, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d691d_0551", "family": "bracket", "tier": 3, "seed": 1234004253, "symmetry": "none", "op_count": 1, "ir_hash": "c55435d54a508b13", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41600.0, "surface_area": 19700.0, "principal_moments": [26699999.999999996, 32399999.999999996, 45000000.0], "n_faces": 26, "n_edges": 92, "n_vertices": 56}, "params": {"base_len": {"type": "float", "default": 60, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 68.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.3, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004253 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 60, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 68.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d691e_0552", "family": "plate", "tier": 1, "seed": 1234004254, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "d8e202b3f7319ec9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8410.0, "surface_area": 4000.0, "principal_moments": [569000.0, 1850000.0, 2360000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 51.23, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 28.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004254 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 51.23, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 28.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d691f_0553", "family": "block", "tier": 2, "seed": 1234004255, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "06d7ac269681b404", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 196000.0, "surface_area": 41600.0, "principal_moments": [114000000.0, 185000000.0, 247000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 36.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 8.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 49.0, "min": 24.5, "max": 56.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 18.8, "min": 9.4, "max": 29.5, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 53.5, "min": 21.4, "max": 85.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004255 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 36.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 8.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 49.0, \"min\": 24.5, \"max\": 56.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 18.8, \"min\": 9.4, \"max\": 29.5, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 53.5, \"min\": 21.4, \"max\": 85.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6920_0554", "family": "compound", "tier": 2, "seed": 1234004256, "symmetry": "none", "op_count": 3, "ir_hash": "89babecd6d1d9e1a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 432000.0, "surface_area": 43000.0, "principal_moments": [435000000.0, 449000000.0, 499000000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 64.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 84.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 32.1, "min": 12.8, "max": 52.5, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 53.0, "min": 9.6, "max": 128.4, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 13.1, "min": 2.0, "max": 23.1, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004256 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 64.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 84.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 32.1, \"min\": 12.8, \"max\": 52.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 53.0, \"min\": 9.6, \"max\": 128.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 13.1, \"min\": 2.0, \"max\": 23.1, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6921_0555", "family": "bracket", "tier": 1, "seed": 1234004257, "symmetry": "none", "op_count": 1, "ir_hash": "08ad435fe7113d20", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11700.0, "surface_area": 6900.0, "principal_moments": [1640000.0, 3770000.0, 4770000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 58.75, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004257 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 58.75, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6925_0559", "family": "ribbed", "tier": 1, "seed": 1234004261, "symmetry": "none", "op_count": 2, "ir_hash": "3278e14a1a04fba3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29900.0, "surface_area": 18100.0, "principal_moments": [11499999.999999998, 22899999.999999996, 34100000.0], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 65.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 6.6, "min": 2.6, "max": 13.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004261 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 65.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 6.6, \"min\": 2.6, \"max\": 13.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6926_0560", "family": "compound", "tier": 2, "seed": 1234004262, "symmetry": "none", "op_count": 3, "ir_hash": "18bde643fa23f74e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19800.0, "surface_area": 5380.0, "principal_moments": [2340000.0, 2800000.0, 3340000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"block_w": {"type": "float", "default": 31.04, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 24.2, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 24.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 10.2, "min": 4.1, "max": 17.1, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 22.7, "min": 3.1, "max": 40.8, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004262 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 31.04, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 24.2, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 24.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 10.2, \"min\": 4.1, \"max\": 17.1, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 22.7, \"min\": 3.1, \"max\": 40.8, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6927_0561", "family": "block", "tier": 2, "seed": 1234004263, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "8c5ec07f22ef81de", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 390000.0, "surface_area": 43800.0, "principal_moments": [284000000.0, 409000000.0, 525000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 80, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 51.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 11.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004263 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 51.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 11.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.10175587909936212)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6928_0562", "family": "flanged", "tier": 2, "seed": 1234004264, "symmetry": "none", "op_count": 2, "ir_hash": "93a33b68a9e81506", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 53600.0, "surface_area": 17100.0, "principal_moments": [21900000.0, 21900000.0, 25699999.999999996], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 35, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 41.8, "min": 12.5, "max": 104.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 14.1, "min": 2.0, "max": 24.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 79.5, "min": 45.5, "max": 105.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.6, "min": 1.7, "max": 16.7, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 23.8, "min": 15.9, "max": 35.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004264 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 41.8, \"min\": 12.5, \"max\": 104.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 14.1, \"min\": 2.0, \"max\": 24.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 79.5, \"min\": 45.5, \"max\": 105.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.6, \"min\": 1.7, \"max\": 16.7, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 23.8, \"min\": 15.9, \"max\": 35.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6929_0563", "family": "threaded", "tier": 1, "seed": 1234004265, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ee64610f4c86fc67", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2290.0, "surface_area": 1740.0, "principal_moments": [24100.0, 249000.0, 249000.0], "n_faces": 240, "n_edges": 614, "n_vertices": 376}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 35.4, "min": 14.2, "max": 70.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004265 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 35.4, \"min\": 14.2, \"max\": 70.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d692a_0564", "family": "block", "tier": 2, "seed": 1234004266, "symmetry": "radial", "op_count": 3, "ir_hash": "53ddf5b645c66cdc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2020.0, "surface_area": 2310.0, "principal_moments": [64200.0, 78000.0, 98100.0], "n_faces": 21, "n_edges": 60, "n_vertices": 36}, "params": {"block_w": {"type": "float", "default": 15.0, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 11.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 14.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 4.5, "min": 3.0, "max": 6.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "boss_d": {"type": "float", "default": 10.2, "min": 5.1, "max": 20.4, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 4.2, "min": 1.7, "max": 10.5, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.1, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004266 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 15.0, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 11.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 14.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 4.5, \"min\": 3.0, \"max\": 6.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"boss_d\": {\"type\": 'float', \"default\": 10.2, \"min\": 5.1, \"max\": 20.4, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 4.2, \"min\": 1.7, \"max\": 10.5, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.1, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d692b_0565", "family": "bracket", "tier": 1, "seed": 1234004267, "symmetry": "none", "op_count": 1, "ir_hash": "35bbd7d13090520d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17000.0, "surface_area": 9700.0, "principal_moments": [5080000.0, 6120000.0, 8730000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 41.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 51.89, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004267 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 41.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 51.89, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.06887729636234075)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d692d_0567", "family": "bracket", "tier": 1, "seed": 1234004269, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "8384c2eaa5e3005a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12000.0, "surface_area": 7880.0, "principal_moments": [1830000.0, 22700000.0, 23999999.999999996], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 76.86, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 52.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 15.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 81.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 6.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004269 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 76.86, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 52.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 15.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 81.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 6.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d692e_0568", "family": "block", "tier": 1, "seed": 1234004270, "symmetry": "none", "op_count": 2, "ir_hash": "0c2765779c7a87bf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12100.0, "surface_area": 6160.0, "principal_moments": [779000.0, 2350000.0, 2860000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 11.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 46.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.7, "min": 2.0, "max": 1.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004270 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 11.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 46.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.7, \"min\": 2.0, \"max\": 1.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 4.7\n _ssy = 4.6\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d692f_0569", "family": "plate", "tier": 1, "seed": 1234004271, "symmetry": "none", "op_count": 2, "ir_hash": "66f77e5fca126bf4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14000.0, "surface_area": 6420.0, "principal_moments": [978000.0, 8250000.0, 9140000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 84.64, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 28.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004271 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 84.64, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 28.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6930_0570", "family": "compound", "tier": 3, "seed": 1234004272, "symmetry": "none", "op_count": 4, "ir_hash": "cbcd3506af0c2996", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12800.0, "surface_area": 4010.0, "principal_moments": [1150000.0, 1290000.0, 1440000.0], "n_faces": 20, "n_edges": 51, "n_vertices": 34}, "params": {"block_w": {"type": "float", "default": 25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 18.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 27.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 4.7, "min": 2.4, "max": 8.8, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 13.7, "min": 2.6, "max": 34.7, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.3, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004272 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 18.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 27.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 4.7, \"min\": 2.4, \"max\": 8.8, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 13.7, \"min\": 2.6, \"max\": 34.7, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.3, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"spig_sides\"], p[\"spig_r\"] * 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.07598709827295981)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6931_0571", "family": "plate", "tier": 1, "seed": 1234004273, "symmetry": "none", "op_count": 2, "ir_hash": "0917608e9536b600", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 642.0, "surface_area": 875.0, "principal_moments": [10300.0, 31800.0, 41700.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 24.89, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 14.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.1, "min": 2.0, "max": 3.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004273 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 24.89, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 14.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.1, \"min\": 2.0, \"max\": 3.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6933_0573", "family": "gear", "tier": 0, "seed": 1234004275, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "c57d6e3e683db9eb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 117000.0, "surface_area": 26800.0, "principal_moments": [87300000.0, 87300000.0, 171000000.0], "n_faces": 218, "n_edges": 648, "n_vertices": 432}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 36, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 12.9, "min": 5.2, "max": 32.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004275 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 36, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 12.9, \"min\": 5.2, \"max\": 32.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6934_0574", "family": "bracket", "tier": 1, "seed": 1234004276, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "944d93558f4e4813", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41300.0, "surface_area": 13200.0, "principal_moments": [12399999.999999998, 29899999.999999996, 31499999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 53.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004276 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 53.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6937_0577", "family": "revolved", "tier": 2, "seed": 1234004279, "symmetry": "radial", "op_count": 2, "ir_hash": "0b61364c44f1c9a7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42600.0, "surface_area": 11200.0, "principal_moments": [11100000.0, 14099999.999999998, 14099999.999999998], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 40, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 49.0, "min": 14.7, "max": 147.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 22.2, "min": 2.0, "max": 28.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.5, "min": 0.1, "max": 1.5, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004279 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 49.0, \"min\": 14.7, \"max\": 147.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 22.2, \"min\": 2.0, \"max\": 28.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.5, \"min\": 0.1, \"max\": 1.5, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.05922540328954841)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6939_0579", "family": "flanged", "tier": 1, "seed": 1234004281, "symmetry": "none", "op_count": 2, "ir_hash": "37f819338abbd65a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11700.0, "surface_area": 6250.0, "principal_moments": [1680000.0, 1680000.0, 2720000.0], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 26.88, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 18.0, "min": 5.4, "max": 45.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 14.6, "min": 2.0, "max": 18.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 48.1, "min": 34.9, "max": 80.6, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.3, "min": 1.3, "max": 7.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 14.4, "min": 9.6, "max": 21.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004281 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 26.88, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 18.0, \"min\": 5.4, \"max\": 45.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 14.6, \"min\": 2.0, \"max\": 18.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 48.1, \"min\": 34.9, \"max\": 80.6, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.3, \"min\": 1.3, \"max\": 7.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 14.4, \"min\": 9.6, \"max\": 21.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d693b_0581", "family": "profiled", "tier": 0, "seed": 1234004283, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "429d5487217c85e4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 89900.0, "surface_area": 14000.0, "principal_moments": [10300000.0, 124000000.0, 124000000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"circ_r": {"type": "float", "default": 16.56, "min": 8.3, "max": 33.1, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 126.2, "min": 37.9, "max": 378.6, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004283 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 16.56, \"min\": 8.3, \"max\": 33.1, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 126.2, \"min\": 37.9, \"max\": 378.6, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d693c_0582", "family": "bracket", "tier": 1, "seed": 1234004284, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "07ec158bc4f91281", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12500.0, "surface_area": 5800.0, "principal_moments": [1990000.0, 2730000.0, 3560000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 34.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 23.29, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 9.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004284 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 34.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 23.29, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 9.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d693d_0583", "family": "bracket", "tier": 1, "seed": 1234004285, "symmetry": "none", "op_count": 1, "ir_hash": "e2b113da14d9072a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25000.0, "surface_area": 18300.0, "principal_moments": [16699999.999999998, 28099999.999999996, 38100000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 74.45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 70.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004285 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 74.45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 70.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d693e_0584", "family": "revolved", "tier": 0, "seed": 1234004286, "symmetry": "radial", "op_count": 1, "ir_hash": "11578ff8b501be08", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 76500.0, "surface_area": 19600.0, "principal_moments": [16199999.999999998, 57099999.99999999, 57099999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 37.51, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 103.9, "min": 31.2, "max": 311.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004286 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 37.51, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 103.9, \"min\": 31.2, \"max\": 311.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6940_0586", "family": "compound", "tier": 3, "seed": 1234004288, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "06424266b862a1e7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 54400.0, "surface_area": 9700.0, "principal_moments": [11499999.999999998, 14099999.999999998, 14999999.999999998], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 34.66, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 42.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 37.2, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 8.9, "min": 3.6, "max": 24.3, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 21.2, "min": 2.7, "max": 35.6, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 3.9, "min": 2.0, "max": 6.4, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 7.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004288 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 34.66, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 42.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 37.2, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 8.9, \"min\": 3.6, \"max\": 24.3, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 21.2, \"min\": 2.7, \"max\": 35.6, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 3.9, \"min\": 2.0, \"max\": 6.4, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 7.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.11089002544897664)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6942_0588", "family": "compound", "tier": 1, "seed": 1234004290, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "a924930e7164165f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 184000.0, "surface_area": 26400.0, "principal_moments": [97899999.99999999, 101000000.0, 153000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 67.57, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 38.7, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 71.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 34.4, "min": 13.8, "max": 55.0, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 61.5, "min": 24.6, "max": 98.4, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 7.6, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004290 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 67.57, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 38.7, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 71.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 34.4, \"min\": 13.8, \"max\": 55.0, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 61.5, \"min\": 24.6, \"max\": 98.4, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 7.6, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .rect(p[\"tab_a\"], p[\"tab_b\"]).extrude(p[\"tab_t\"])\n )\n result = (\n result.faces('>X').workplane()\n .rect(p[\"tab_a\"] * 0.6, p[\"tab_b\"] * 0.6, forConstruction=True)\n .vertices().hole(p[\"tab_hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6943_0589", "family": "plate", "tier": 3, "seed": 1234004291, "symmetry": "radial", "op_count": 4, "ir_hash": "f66d865b2fc6cb92", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21700.0, "surface_area": 6770.0, "principal_moments": [2320000.0, 5990000.0, 7620000.0], "n_faces": 30, "n_edges": 81, "n_vertices": 54}, "params": {"plate_w": {"type": "float", "default": 55.65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 34.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 16.7, "min": 11.1, "max": 25.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "boss_d": {"type": "float", "default": 11.8, "min": 5.9, "max": 23.6, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 8.6, "min": 3.4, "max": 21.5, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004291 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 55.65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 34.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 16.7, \"min\": 11.1, \"max\": 25.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"boss_d\": {\"type\": 'float', \"default\": 11.8, \"min\": 5.9, \"max\": 23.6, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 8.6, \"min\": 3.4, \"max\": 21.5, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.05871500815715534)\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6944_0590", "family": "gear", "tier": 0, "seed": 1234004292, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "33d3193b35c03169", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3660.0, "surface_area": 2310.0, "principal_moments": [203000.0, 203000.0, 387000.0], "n_faces": 176, "n_edges": 522, "n_vertices": 348}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 29, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.6, "min": 2.2, "max": 14.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004292 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 29, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.6, \"min\": 2.2, \"max\": 14.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6945_0591", "family": "block", "tier": 1, "seed": 1234004293, "symmetry": "none", "op_count": 2, "ir_hash": "e1f29efddc46c7a8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2750.0, "surface_area": 1800.0, "principal_moments": [90000.0, 107000.0, 170000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 18.55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 7.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 20.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.8, "min": 2.0, "max": 1.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004293 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 18.55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 7.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 20.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.8, \"min\": 2.0, \"max\": 1.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6946_0592", "family": "block", "tier": 2, "seed": 1234004294, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "d74228aa067015bb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 146000.0, "surface_area": 21900.0, "principal_moments": [46699999.99999999, 95699999.99999999, 109000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 37.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 80.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 8.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004294 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 37.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 80.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 8.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.041208714136009766)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6947_0593", "family": "compound", "tier": 2, "seed": 1234004295, "symmetry": "none", "op_count": 5, "ir_hash": "3b6a29366b822152", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 162000.0, "surface_area": 23600.0, "principal_moments": [79300000.0, 79900000.0, 93399999.99999999], "n_faces": 23, "n_edges": 55, "n_vertices": 35}, "params": {"block_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 57.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 50.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 15.1, "min": 6.0, "max": 22.5, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 18.5, "min": 3.8, "max": 45.3, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 6.2, "min": 2.0, "max": 10.9, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 12.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004295 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 57.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 50.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 15.1, \"min\": 6.0, \"max\": 22.5, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 18.5, \"min\": 3.8, \"max\": 45.3, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 6.2, \"min\": 2.0, \"max\": 10.9, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 12.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6948_0594", "family": "bracket", "tier": 1, "seed": 1234004296, "symmetry": "none", "op_count": 1, "ir_hash": "7c711938d8ca27a8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21300.0, "surface_area": 7310.0, "principal_moments": [4010000.0, 5330000.0, 7080000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 40.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004296 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 40.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d694a_0596", "family": "gear", "tier": 0, "seed": 1234004298, "symmetry": "none", "op_count": 1, "ir_hash": "8d20963f8fe398bf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 56000.0, "surface_area": 12900.0, "principal_moments": [13999999.999999998, 13999999.999999998, 22899999.999999996], "n_faces": 86, "n_edges": 252, "n_vertices": 168}, "params": {"module": {"type": "float", "default": 4.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 14, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 23.4, "min": 9.4, "max": 58.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004298 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 14, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 23.4, \"min\": 9.4, \"max\": 58.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d694b_0597", "family": "revolved", "tier": 1, "seed": 1234004299, "symmetry": "radial", "op_count": 1, "ir_hash": "b9a4c20f4881d6db", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2990.0, "surface_area": 1690.0, "principal_moments": [99700.0, 158000.0, 158000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 15, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 20.8, "min": 6.2, "max": 62.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 6.5, "min": 2.0, "max": 10.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004299 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 15, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 20.8, \"min\": 6.2, \"max\": 62.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 6.5, \"min\": 2.0, \"max\": 10.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d694c_0598", "family": "bracket", "tier": 2, "seed": 1234004300, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "445f18b54ab764e2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 92600.0, "surface_area": 27500.0, "principal_moments": [38200000.0, 206000000.0, 207000000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 79.26, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 74.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 84.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 8.6, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004300 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 79.26, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 74.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 84.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 8.6, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d694d_0599", "family": "block", "tier": 1, "seed": 1234004301, "symmetry": "none", "op_count": 2, "ir_hash": "efc96987107d6600", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 531000.0, "surface_area": 46800.0, "principal_moments": [481000000.0, 643000000.0, 724000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 80, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 67.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004301 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 67.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d694e_0600", "family": "bracket", "tier": 3, "seed": 1234004302, "symmetry": "none", "op_count": 1, "ir_hash": "e464b0f172aa5b7e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4160.0, "surface_area": 3440.0, "principal_moments": [330000.0, 1030000.0, 1190000.0], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 41.13, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 39.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 16.2, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 6.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 2.7, "min": 1.5, "max": 8.1, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004302 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 41.13, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 39.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 16.2, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 6.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.7, \"min\": 1.5, \"max\": 8.1, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d694f_0601", "family": "bracket", "tier": 1, "seed": 1234004303, "symmetry": "none", "op_count": 1, "ir_hash": "78470adacc6ab9b1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22900.0, "surface_area": 9970.0, "principal_moments": [9070000.0, 9970000.0, 16599999.999999998], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 49.07, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 58.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004303 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 49.07, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 58.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6950_0602", "family": "bracket", "tier": 1, "seed": 1234004304, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "24bf83acf1df2db8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16900.0, "surface_area": 7260.0, "principal_moments": [2930000.0, 7620000.0, 8000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 50.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004304 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 50.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cboreHole(p[\"hole_d\"], p[\"cb_d\"], p[\"cb_depth\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.0975437924387059)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6952_0604", "family": "compound", "tier": 1, "seed": 1234004306, "symmetry": "none", "op_count": 3, "ir_hash": "fa12fcdc34e6a5e9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 78800.0, "surface_area": 13300.0, "principal_moments": [22200000.0, 25099999.999999996, 26099999.999999996], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 42.65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 44.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 40.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 25.7, "min": 10.3, "max": 41.1, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 35.2, "min": 14.1, "max": 56.3, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.7, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004306 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 42.65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 44.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 40.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 25.7, \"min\": 10.3, \"max\": 41.1, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 35.2, \"min\": 14.1, \"max\": 56.3, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.7, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .rect(p[\"tab_a\"], p[\"tab_b\"]).extrude(p[\"tab_t\"])\n )\n result = (\n result.faces('>Y').workplane()\n .rect(p[\"tab_a\"] * 0.6, p[\"tab_b\"] * 0.6, forConstruction=True)\n .vertices().hole(p[\"tab_hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6953_0605", "family": "block", "tier": 2, "seed": 1234004307, "symmetry": "radial", "op_count": 3, "ir_hash": "8a123207e3f61820", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 64500.0, "surface_area": 15800.0, "principal_moments": [15899999.999999998, 22600000.0, 28499999.999999996], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 43.81, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 30.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 54.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 13.1, "min": 8.8, "max": 19.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "boss_d": {"type": "float", "default": 18.8, "min": 9.4, "max": 37.6, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 9.4, "min": 3.8, "max": 23.5, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.2, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004307 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 43.81, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 30.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 54.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 13.1, \"min\": 8.8, \"max\": 19.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"boss_d\": {\"type\": 'float', \"default\": 18.8, \"min\": 9.4, \"max\": 37.6, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 9.4, \"min\": 3.8, \"max\": 23.5, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.2, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6954_0606", "family": "revolved", "tier": 0, "seed": 1234004308, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "d7ef33ec47dcd554", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 89700.0, "surface_area": 20800.0, "principal_moments": [23599999.999999996, 62799999.99999999, 62799999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 41.86, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 97.8, "min": 29.3, "max": 293.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004308 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 41.86, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 97.8, \"min\": 29.3, \"max\": 293.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6955_0607", "family": "gear", "tier": 3, "seed": 1234004309, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "9e56daecbda6e745", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16000.0, "surface_area": 12200.0, "principal_moments": [13999999.999999998, 13999999.999999998, 27599999.999999996], "n_faces": 237, "n_edges": 705, "n_vertices": 470}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 39, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 13.3, "min": 5.3, "max": 33.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": 0.15, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.57, "min": 0.0, "max": 1.0, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004309 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 39, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 13.3, \"min\": 5.3, \"max\": 33.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.15, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.57, \"min\": 0.0, \"max\": 1.0, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurRingGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6956_0608", "family": "bracket", "tier": 1, "seed": 1234004310, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "b6a663248041789a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9190.0, "surface_area": 4680.0, "principal_moments": [1030000.0, 1540000.0, 2110000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 25.43, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 41.09, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004310 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 25.43, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 41.09, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6958_0610", "family": "plate", "tier": 1, "seed": 1234004312, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "b29f1dacc2d130d6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3190.0, "surface_area": 1760.0, "principal_moments": [53400.0, 338000.0, 357000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 11.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.1, "min": 2.0, "max": 2.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004312 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 11.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.1, \"min\": 2.0, \"max\": 2.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6959_0611", "family": "plate", "tier": 1, "seed": 1234004313, "symmetry": "none", "op_count": 2, "ir_hash": "41c63888c08637e5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35700.0, "surface_area": 12300.0, "principal_moments": [5850000.0, 32199999.999999996, 37700000.0], "n_faces": 30, "n_edges": 84, "n_vertices": 56}, "params": {"plate_w": {"type": "float", "default": 104.38, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 44.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}, "hole_slot_len": {"type": "float", "default": 8.1, "min": 6.4, "max": 24.9, "step": 0.5, "group": "Holes", "label": "Slot length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004313 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 104.38, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 44.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n \"hole_slot_len\": {\"type\": 'float', \"default\": 8.1, \"min\": 6.4, \"max\": 24.9, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot length (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(41.8, 35.6, p[\"hole_nx\"], p[\"hole_ny\"])\n .slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d695a_0612", "family": "threaded", "tier": 0, "seed": 1234004314, "symmetry": "none", "op_count": 1, "ir_hash": "562520835be0695a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2330.0, "surface_area": 1770.0, "principal_moments": [24500.0, 262000.0, 262000.0], "n_faces": 245, "n_edges": 629, "n_vertices": 386}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 36.0, "min": 14.4, "max": 72.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004314 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 36.0, \"min\": 14.4, \"max\": 72.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d695b_0613", "family": "revolved", "tier": 1, "seed": 1234004315, "symmetry": "none", "op_count": 2, "ir_hash": "fecc6732d4b170ce", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15000.0, "surface_area": 4390.0, "principal_moments": [1740000.0, 1740000.0, 2260000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 32.15, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 22.3, "min": 6.7, "max": 66.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 13.2, "min": 2.0, "max": 22.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004315 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 32.15, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 22.3, \"min\": 6.7, \"max\": 66.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 13.2, \"min\": 2.0, \"max\": 22.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d695d_0615", "family": "gear", "tier": 0, "seed": 1234004317, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "aee6acbf94e1913a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 624000.0, "surface_area": 87700.0, "principal_moments": [1580000000.0, 1580000000.0, 3120000000.0], "n_faces": 162, "n_edges": 480, "n_vertices": 320}, "params": {"module": {"type": "float", "default": 5.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 40, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 20.0, "min": 8.0, "max": 50.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004317 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 5.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 40, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 20.0, \"min\": 8.0, \"max\": 50.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d695e_0616", "family": "block", "tier": 1, "seed": 1234004318, "symmetry": "radial", "op_count": 2, "ir_hash": "4eb7997c87e8c340", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 517000.0, "surface_area": 49500.0, "principal_moments": [466000000.0, 628000000.0, 699000000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 78.48, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 67.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 23.5, "min": 15.7, "max": 35.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004318 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 78.48, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 67.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 23.5, \"min\": 15.7, \"max\": 35.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d695f_0617", "family": "ribbed", "tier": 1, "seed": 1234004319, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f8d8f6080cd81569", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38800.0, "surface_area": 25000.0, "principal_moments": [17800000.0, 28399999.999999996, 44900000.0], "n_faces": 54, "n_edges": 132, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 69.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 11.0, "min": 4.4, "max": 22.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.8, "min": 1.0, "max": 9.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004319 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 69.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 11.0, \"min\": 4.4, \"max\": 22.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.8, \"min\": 1.0, \"max\": 9.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6960_0618", "family": "revolved", "tier": 1, "seed": 1234004320, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "e4ce3c3c1473faa7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3460.0, "surface_area": 1930.0, "principal_moments": [161000.0, 161000.0, 165000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 16.08, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 15.5, "min": 4.6, "max": 46.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 5.1, "min": 2.0, "max": 11.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 23.6, "min": 19.3, "max": 48.2, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 2.7, "min": 0.8, "max": 7.8, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004320 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 16.08, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 15.5, \"min\": 4.6, \"max\": 46.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 5.1, \"min\": 2.0, \"max\": 11.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 23.6, \"min\": 19.3, \"max\": 48.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 2.7, \"min\": 0.8, \"max\": 7.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6962_0620", "family": "revolved", "tier": 2, "seed": 1234004322, "symmetry": "radial", "op_count": 1, "ir_hash": "38e3498456849345", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 498000.0, "surface_area": 73900.0, "principal_moments": [301000000.0, 1790000000.0, 1790000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 63.51, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 235.6, "min": 70.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004322 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 63.51, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 235.6, \"min\": 70.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6963_0621", "family": "revolved", "tier": 1, "seed": 1234004323, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "b2280ee1e76795c4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 161000.0, "surface_area": 25000.0, "principal_moments": [111000000.0, 112000000.0, 112000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 65.82, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 65.3, "min": 19.6, "max": 195.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 34.3, "min": 2.0, "max": 46.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 1.4, "min": 0.1, "max": 4.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004323 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65.82, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 65.3, \"min\": 19.6, \"max\": 195.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 34.3, \"min\": 2.0, \"max\": 46.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.4, \"min\": 0.1, \"max\": 4.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6965_0623", "family": "profiled", "tier": 2, "seed": 1234004325, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "f0a800387964a4a6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 656000.0, "surface_area": 72600.0, "principal_moments": [265000000.0, 9330000000.0, 9530000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 70.09, "min": 35.0, "max": 140.2, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 24.52, "min": 12.3, "max": 49.0, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 412.5, "min": 123.8, "max": 1237.5, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004325 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 70.09, \"min\": 35.0, \"max\": 140.2, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 24.52, \"min\": 12.3, \"max\": 49.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 412.5, \"min\": 123.8, \"max\": 1237.5, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6966_0624", "family": "bracket", "tier": 1, "seed": 1234004326, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "0adf0d58de65725f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 46700.0, "surface_area": 14500.0, "principal_moments": [14899999.999999998, 36000000.0, 40600000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 76.38, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 48.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004326 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 76.38, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 48.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d696b_0629", "family": "ribbed", "tier": 1, "seed": 1234004331, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "4c04be9206464d07", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19900.0, "surface_area": 11900.0, "principal_moments": [3330000.0, 5840000.0, 7960000.0], "n_faces": 46, "n_edges": 112, "n_vertices": 68}, "params": {"base_w": {"type": "float", "default": 56.75, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 35.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 13.6, "min": 5.4, "max": 27.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.2, "min": 1.0, "max": 8.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004331 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 56.75, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 35.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 13.6, \"min\": 5.4, \"max\": 27.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.2, \"min\": 1.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d696c_0630", "family": "block", "tier": 2, "seed": 1234004332, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "b858598c9c0fc2da", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 63300.0, "surface_area": 17600.0, "principal_moments": [10500000.0, 33299999.999999996, 38100000.0], "n_faces": 42, "n_edges": 120, "n_vertices": 80}, "params": {"block_w": {"type": "float", "default": 40, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 24.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 76.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 7.2, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004332 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 24.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 76.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 7.2, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.10399073263051403)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d696d_0631", "family": "plate", "tier": 0, "seed": 1234004333, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "45895e2832080358", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22800.0, "surface_area": 9260.0, "principal_moments": [2810000.0, 19100000.0, 21700000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 100, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 38.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004333 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 100, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 38.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d696e_0632", "family": "bracket", "tier": 1, "seed": 1234004334, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "f26f4505b505c15d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25800.0, "surface_area": 9030.0, "principal_moments": [4460000.0, 20100000.0, 21400000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 48.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 26.92, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004334 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 48.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 26.92, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6971_0635", "family": "revolved", "tier": 1, "seed": 1234004337, "symmetry": "radial", "op_count": 1, "ir_hash": "1b12d633598a513d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 149000.0, "surface_area": 33800.0, "principal_moments": [112000000.0, 112000000.0, 196000000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 60, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 42.3, "min": 12.7, "max": 126.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 119.0, "min": 72.0, "max": 180.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.3, "min": 2.5, "max": 21.1, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004337 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 42.3, \"min\": 12.7, \"max\": 126.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 119.0, \"min\": 72.0, \"max\": 180.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.3, \"min\": 2.5, \"max\": 21.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6972_0636", "family": "revolved", "tier": 2, "seed": 1234004338, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "dde52e8c307fb20a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8930.0, "surface_area": 4090.0, "principal_moments": [648000.0, 1180000.0, 1180000.0], "n_faces": 12, "n_edges": 20, "n_vertices": 12}, "params": {"outer_d": {"type": "float", "default": 21.61, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 33.9, "min": 10.2, "max": 101.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 11.0, "min": 2.0, "max": 15.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 1.26, "min": 0.5, "max": 3.78, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 3.16, "min": 1.26, "max": 9.48, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 25.2, "min": 5.1, "max": 28.8, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.5, "min": 0.1, "max": 1.5, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004338 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 21.61, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 33.9, \"min\": 10.2, \"max\": 101.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 11.0, \"min\": 2.0, \"max\": 15.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 1.26, \"min\": 0.5, \"max\": 3.78, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 3.16, \"min\": 1.26, \"max\": 9.48, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 25.2, \"min\": 5.1, \"max\": 28.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.5, \"min\": 0.1, \"max\": 1.5, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07452921337607749)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6974_0638", "family": "ribbed", "tier": 1, "seed": 1234004340, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f5aec4c81a56fa69", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32100.0, "surface_area": 17300.0, "principal_moments": [9170000.0, 16399999.999999998, 23099999.999999996], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 74.26, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 50.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.5, "min": 6.6, "max": 33.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.4, "min": 1.0, "max": 8.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004340 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 74.26, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 50.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.5, \"min\": 6.6, \"max\": 33.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.4, \"min\": 1.0, \"max\": 8.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6976_0640", "family": "ribbed", "tier": 1, "seed": 1234004342, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "9c65b7e92c35266d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7190.0, "surface_area": 4270.0, "principal_moments": [689000.0, 1470000.0, 1610000.0], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 22.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.9, "min": 6.8, "max": 33.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.1, "min": 1.0, "max": 12.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004342 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 22.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.9, \"min\": 6.8, \"max\": 33.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.1, \"min\": 1.0, \"max\": 12.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6977_0641", "family": "threaded", "tier": 0, "seed": 1234004343, "symmetry": "none", "op_count": 1, "ir_hash": "1fb103ad2de73b4b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 442.0, "surface_area": 566.0, "principal_moments": [1640.0, 14500.0, 14500.0], "n_faces": 200, "n_edges": 510, "n_vertices": 312}, "params": {"major_d": {"type": "float", "default": 6.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.0, "min": 0.5, "max": 2.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 19.4, "min": 7.8, "max": 38.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004343 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.5, \"max\": 2.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 19.4, \"min\": 7.8, \"max\": 38.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6978_0642", "family": "flanged", "tier": 2, "seed": 1234004344, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "735bfbd4c4aabb75", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 393000.0, "surface_area": 52800.0, "principal_moments": [377000000.0, 557000000.0, 557000000.0], "n_faces": 44, "n_edges": 114, "n_vertices": 67}, "params": {"outer_d": {"type": "float", "default": 70, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 97.9, "min": 29.4, "max": 244.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 23.9, "min": 2.0, "max": 49.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 119.7, "min": 91.0, "max": 210.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.7, "min": 2.6, "max": 39.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 35.9, "min": 23.9, "max": 53.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004344 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 97.9, \"min\": 29.4, \"max\": 244.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 23.9, \"min\": 2.0, \"max\": 49.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 119.7, \"min\": 91.0, \"max\": 210.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.7, \"min\": 2.6, \"max\": 39.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 35.9, \"min\": 23.9, \"max\": 53.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d697a_0644", "family": "compound", "tier": 1, "seed": 1234004346, "symmetry": "none", "op_count": 2, "ir_hash": "67b1e648cbf8d6dc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 81800.0, "surface_area": 13000.0, "principal_moments": [25299999.999999996, 25499999.999999996, 28799999.999999996], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 45.98, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 44.7, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 40.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 6.8, "min": 3.4, "max": 14.0, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 12.8, "min": 3.5, "max": 47.1, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 6.6, "min": 2.0, "max": 8.5, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004346 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45.98, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 44.7, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 40.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 6.8, \"min\": 3.4, \"max\": 14.0, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 12.8, \"min\": 3.5, \"max\": 47.1, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 6.6, \"min\": 2.0, \"max\": 8.5, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d697c_0646", "family": "flanged", "tier": 1, "seed": 1234004348, "symmetry": "none", "op_count": 2, "ir_hash": "4e1101bec219bfbe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 634000.0, "surface_area": 90100.0, "principal_moments": [1380000000.0, 1380000000.0, 1460000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 85.68, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 101.1, "min": 30.3, "max": 252.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 43.7, "min": 2.0, "max": 60.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 174.6, "min": 111.4, "max": 257.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 11.2, "min": 3.4, "max": 40.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 52.4, "min": 34.9, "max": 78.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004348 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 85.68, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 101.1, \"min\": 30.3, \"max\": 252.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 43.7, \"min\": 2.0, \"max\": 60.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 174.6, \"min\": 111.4, \"max\": 257.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 11.2, \"min\": 3.4, \"max\": 40.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 52.4, \"min\": 34.9, \"max\": 78.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d697d_0647", "family": "revolved", "tier": 1, "seed": 1234004349, "symmetry": "none", "op_count": 2, "ir_hash": "8999c7b441d5f586", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 111000.0, "surface_area": 19500.0, "principal_moments": [65899999.99999999, 65899999.99999999, 105000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 38.4, "min": 11.5, "max": 115.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 43.7, "min": 2.0, "max": 52.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 1.4, "min": 0.1, "max": 4.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004349 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 38.4, \"min\": 11.5, \"max\": 115.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 43.7, \"min\": 2.0, \"max\": 52.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.4, \"min\": 0.1, \"max\": 4.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6980_0650", "family": "plate", "tier": 3, "seed": 1234004352, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "24d56b264de5b89a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4450.0, "surface_area": 4670.0, "principal_moments": [397000.0, 1180000.0, 1560000.0], "n_faces": 20, "n_edges": 47, "n_vertices": 30}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 34.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "cs_angle": {"type": "float", "default": 82.0, "min": 60.0, "max": 120.0, "step": 15.0, "group": "Holes", "label": "Countersink angle (\u00b0)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "boss_d": {"type": "float", "default": 10.1, "min": 5.0, "max": 20.2, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 5.8, "min": 2.3, "max": 14.5, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004352 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 34.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"cs_angle\": {\"type\": 'float', \"default\": 82.0, \"min\": 60.0, \"max\": 120.0, \"step\": 15.0, \"group\": 'Holes', \"label\": 'Countersink angle (\u00b0)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"boss_d\": {\"type\": 'float', \"default\": 10.1, \"min\": 5.0, \"max\": 20.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.3, \"max\": 14.5, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cskHole(p[\"hole_d\"], p[\"hole_d\"] * 2, p[\"cs_angle\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08770910419591035)\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6982_0652", "family": "bracket", "tier": 3, "seed": 1234004354, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "1f467ca3b1329449", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 76900.0, "surface_area": 23400.0, "principal_moments": [52399999.99999999, 91699999.99999999, 119000000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 80.99, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 72.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 11.0, "min": 4.0, "max": 22.5, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004354 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80.99, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 72.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 11.0, \"min\": 4.0, \"max\": 22.5, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6983_0653", "family": "threaded", "tier": 0, "seed": 1234004355, "symmetry": "none", "op_count": 1, "ir_hash": "7a4c40d0408bdba0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3600.0, "surface_area": 2670.0, "principal_moments": [37900.0, 933000.0, 933000.0], "n_faces": 375, "n_edges": 967, "n_vertices": 594}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 55.4, "min": 22.2, "max": 110.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004355 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 55.4, \"min\": 22.2, \"max\": 110.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6984_0654", "family": "block", "tier": 1, "seed": 1234004356, "symmetry": "none", "op_count": 2, "ir_hash": "c15a719f5ae1dfe9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41500.0, "surface_area": 11200.0, "principal_moments": [5300000.0, 17000000.0, 20000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 35.1, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 18.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 67.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004356 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35.1, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 18.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 67.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6985_0655", "family": "plate", "tier": 0, "seed": 1234004357, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "a7aaa81225a33cd4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34100.0, "surface_area": 9510.0, "principal_moments": [3530000.0, 29199999.999999996, 32099999.999999996], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 100.83, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 33.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004357 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 100.83, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 33.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6987_0657", "family": "bracket", "tier": 3, "seed": 1234004359, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "7ff13852243bc322", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13000.0, "surface_area": 9800.0, "principal_moments": [3140000.0, 6250000.0, 7260000.0], "n_faces": 17, "n_edges": 55, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 57.37, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 42.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 44.14, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.1, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004359 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 57.37, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 42.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 44.14, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.1, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6988_0658", "family": "bracket", "tier": 1, "seed": 1234004360, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "deb889dd91e1c533", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14600.0, "surface_area": 5390.0, "principal_moments": [1280000.0, 3860000.0, 4120000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 34.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 25.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004360 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 34.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 25.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6989_0659", "family": "compound", "tier": 2, "seed": 1234004361, "symmetry": "mirror_x", "op_count": 5, "ir_hash": "ef620b9edba9add7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 417000.0, "surface_area": 42500.0, "principal_moments": [367000000.0, 387000000.0, 476000000.0], "n_faces": 20, "n_edges": 47, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 84.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 63.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 14.1, "min": 5.6, "max": 28.4, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 13.4, "min": 3.5, "max": 42.3, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 7.9, "min": 2.0, "max": 10.2, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004361 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 84.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 63.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 14.1, \"min\": 5.6, \"max\": 28.4, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 13.4, \"min\": 3.5, \"max\": 42.3, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 7.9, \"min\": 2.0, \"max\": 10.2, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d698a_0660", "family": "compound", "tier": 2, "seed": 1234004362, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "d5a2c404443cfb1c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14700.0, "surface_area": 4540.0, "principal_moments": [1470000.0, 1520000.0, 1540000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 24.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 24.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_a": {"type": "float", "default": 8.2, "min": 4.1, "max": 17.0, "step": 1.0, "group": "Spigot", "label": "Spigot width (mm)"}, "spig_b": {"type": "float", "default": 6.0, "min": 3.0, "max": 17.0, "step": 1.0, "group": "Spigot", "label": "Spigot depth (mm)"}, "spig_len": {"type": "float", "default": 5.4, "min": 1.8, "max": 24.0, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 3.0, "min": 2.0, "max": 4.3, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004362 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 24.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 24.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_a\": {\"type\": 'float', \"default\": 8.2, \"min\": 4.1, \"max\": 17.0, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot width (mm)'},\n \"spig_b\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 17.0, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot depth (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 5.4, \"min\": 1.8, \"max\": 24.0, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 4.3, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d698b_0661", "family": "revolved", "tier": 0, "seed": 1234004363, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "e20f578e4312b6eb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 264000.0, "surface_area": 47100.0, "principal_moments": [112000000.0, 554000000.0, 554000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 53.2, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 178.2, "min": 53.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004363 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 53.2, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 178.2, \"min\": 53.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d698c_0662", "family": "revolved", "tier": 2, "seed": 1234004364, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "9b877f7d3c2f399b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 141000.0, "surface_area": 29500.0, "principal_moments": [91099999.99999999, 91099999.99999999, 154000000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 57.87, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 44.4, "min": 13.3, "max": 133.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 106.1, "min": 69.4, "max": 173.6, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 10.1, "min": 3.0, "max": 22.2, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004364 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 57.87, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 44.4, \"min\": 13.3, \"max\": 133.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 106.1, \"min\": 69.4, \"max\": 173.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 10.1, \"min\": 3.0, \"max\": 22.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d698d_0663", "family": "plate", "tier": 2, "seed": 1234004365, "symmetry": "radial", "op_count": 3, "ir_hash": "aa481f671bc1d84f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10600.0, "surface_area": 5030.0, "principal_moments": [654000.0, 4710000.0, 5300000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"plate_w": {"type": "float", "default": 73.01, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 25.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 21.9, "min": 14.6, "max": 32.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004365 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 73.01, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 25.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 21.9, \"min\": 14.6, \"max\": 32.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.06274286407339358)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d698e_0664", "family": "threaded", "tier": 1, "seed": 1234004366, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "df3a18df2a6797cb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 120.0, "surface_area": 232.0, "principal_moments": [196.0, 1520.0, 1520.0], "n_faces": 180, "n_edges": 458, "n_vertices": 280}, "params": {"major_d": {"type": "float", "default": 4.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.7, "min": 0.35, "max": 1.4, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 12.0, "min": 5.0, "max": 24.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004366 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.35, \"max\": 1.4, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 12.0, \"min\": 5.0, \"max\": 24.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d698f_0665", "family": "flanged", "tier": 2, "seed": 1234004367, "symmetry": "radial", "op_count": 2, "ir_hash": "094baea0e1507af2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 220000.0, "surface_area": 42300.0, "principal_moments": [216000000.0, 216000000.0, 253000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 56.91, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 64.4, "min": 19.3, "max": 161.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 21.0, "min": 2.0, "max": 39.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 126.3, "min": 74.0, "max": 170.7, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.9, "min": 2.4, "max": 25.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 37.9, "min": 25.3, "max": 56.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004367 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 56.91, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 64.4, \"min\": 19.3, \"max\": 161.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 21.0, \"min\": 2.0, \"max\": 39.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 126.3, \"min\": 74.0, \"max\": 170.7, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.9, \"min\": 2.4, \"max\": 25.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 37.9, \"min\": 25.3, \"max\": 56.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6990_0666", "family": "gear", "tier": 0, "seed": 1234004368, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "0531e8493bf3f292", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 43500.0, "surface_area": 12200.0, "principal_moments": [12999999.999999998, 12999999.999999998, 24999999.999999996], "n_faces": 164, "n_edges": 486, "n_vertices": 324}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 27, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 12.3, "min": 4.9, "max": 30.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004368 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 27, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 12.3, \"min\": 4.9, \"max\": 30.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6991_0667", "family": "ribbed", "tier": 1, "seed": 1234004369, "symmetry": "none", "op_count": 2, "ir_hash": "527ae87a5bbb8a38", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 48200.0, "surface_area": 16000.0, "principal_moments": [16399999.999999998, 28899999.999999996, 44400000.0], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 83.72, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 62.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 5.3, "min": 2.1, "max": 10.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.5, "min": 1.0, "max": 11.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004369 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 83.72, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 62.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.1, \"max\": 10.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.0, \"max\": 11.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6992_0668", "family": "plate", "tier": 3, "seed": 1234004370, "symmetry": "radial", "op_count": 4, "ir_hash": "7e3c3a7ab955ae9e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10200.0, "surface_area": 6440.0, "principal_moments": [1380000.0, 3720000.0, 5040000.0], "n_faces": 33, "n_edges": 102, "n_vertices": 68}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 38.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 18.0, "min": 12.0, "max": 27.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "pocket_w": {"type": "float", "default": 29.6, "min": 14.8, "max": 48.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 20.5, "min": 10.2, "max": 30.6, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 3.4, "min": 1.4, "max": 5.1, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004370 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 38.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 18.0, \"min\": 12.0, \"max\": 27.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"pocket_w\": {\"type\": 'float', \"default\": 29.6, \"min\": 14.8, \"max\": 48.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 20.5, \"min\": 10.2, \"max\": 30.6, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 3.4, \"min\": 1.4, \"max\": 5.1, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08888548688542863)\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6993_0669", "family": "revolved", "tier": 1, "seed": 1234004371, "symmetry": "radial", "op_count": 1, "ir_hash": "2b1934da11962bb6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2050.0, "surface_area": 1410.0, "principal_moments": [55000.0, 83200.0, 83200.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 12.55, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 17.0, "min": 5.1, "max": 51.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 4.7, "min": 2.0, "max": 8.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 17.7, "min": 15.1, "max": 37.7, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 2.0, "min": 0.6, "max": 8.5, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004371 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 12.55, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 17.0, \"min\": 5.1, \"max\": 51.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 4.7, \"min\": 2.0, \"max\": 8.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 17.7, \"min\": 15.1, \"max\": 37.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 2.0, \"min\": 0.6, \"max\": 8.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6994_0670", "family": "compound", "tier": 1, "seed": 1234004372, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "c284ad7ca500ad27", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 132000.0, "surface_area": 42200.0, "principal_moments": [220000000.0, 355000000.0, 361000000.0], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"base_w": {"type": "float", "default": 120.0, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 123.4, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 6.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 10.7, "min": 5.3, "max": 30.0, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 146.5, "min": 43.9, "max": 439.5, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004372 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 120.0, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 123.4, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 10.7, \"min\": 5.3, \"max\": 30.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 146.5, \"min\": 43.9, \"max\": 439.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6995_0671", "family": "threaded", "tier": 1, "seed": 1234004373, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "5ac7a038fda7013c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28700.0, "surface_area": 10800.0, "principal_moments": [3760000.0, 10500000.0, 10500000.0], "n_faces": 476, "n_edges": 1362, "n_vertices": 888}, "params": {"major_d": {"type": "float", "default": 16.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.0, "min": 1.0, "max": 4.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 60.0, "min": 24.0, "max": 120.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004373 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 4.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 60.0, \"min\": 24.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6996_0672", "family": "bracket", "tier": 1, "seed": 1234004374, "symmetry": "none", "op_count": 1, "ir_hash": "d1a6ca13bb6dbf07", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13000.0, "surface_area": 7530.0, "principal_moments": [2120000.0, 4310000.0, 5680000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 33.71, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 60.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004374 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 33.71, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 60.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6998_0674", "family": "block", "tier": 3, "seed": 1234004376, "symmetry": "none", "op_count": 4, "ir_hash": "aba54492d0995716", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 348000.0, "surface_area": 46300.0, "principal_moments": [323000000.0, 335000000.0, 547000000.0], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 94.8, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 42.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 9.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 51.7, "min": 25.9, "max": 75.8, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 25.4, "min": 12.7, "max": 33.8, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 33.2, "min": 13.3, "max": 85.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}, "filleted2": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004376 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 94.8, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 42.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 9.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 51.7, \"min\": 25.9, \"max\": 75.8, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 25.4, \"min\": 12.7, \"max\": 33.8, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 33.2, \"min\": 13.3, \"max\": 85.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n \"filleted2\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.07091235082641689)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6999_0675", "family": "bracket", "tier": 3, "seed": 1234004377, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "3499702ac6574399", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34000.0, "surface_area": 15300.0, "principal_moments": [11799999.999999998, 25899999.999999996, 27099999.999999996], "n_faces": 17, "n_edges": 39, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 65.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.9, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004377 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 65.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.9, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d699a_0676", "family": "plate", "tier": 1, "seed": 1234004378, "symmetry": "none", "op_count": 2, "ir_hash": "a7573e2cdd37c5ce", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2360.0, "surface_area": 1570.0, "principal_moments": [42300.0, 242000.0, 274000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 13.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.2, "min": 2.0, "max": 3.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004378 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 13.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 3.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d699b_0677", "family": "gear", "tier": 1, "seed": 1234004379, "symmetry": "none", "op_count": 1, "ir_hash": "95cf4cab464c2cbd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 102000.0, "surface_area": 28500.0, "principal_moments": [90400000.0, 90400000.0, 179000000.0], "n_faces": 237, "n_edges": 705, "n_vertices": 470}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 39, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 9.8, "min": 3.9, "max": 24.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 19.2, "min": 2.0, "max": 65.7, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004379 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 39, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 9.8, \"min\": 3.9, \"max\": 24.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 19.2, \"min\": 2.0, \"max\": 65.7, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d699c_0678", "family": "gear", "tier": 0, "seed": 1234004380, "symmetry": "none", "op_count": 1, "ir_hash": "34395dad14fb861b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13100.0, "surface_area": 4990.0, "principal_moments": [1360000.0, 1360000.0, 2390000.0], "n_faces": 92, "n_edges": 270, "n_vertices": 180}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 15, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 12.2, "min": 4.9, "max": 30.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004380 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 15, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 12.2, \"min\": 4.9, \"max\": 30.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d699d_0679", "family": "threaded", "tier": 0, "seed": 1234004381, "symmetry": "none", "op_count": 1, "ir_hash": "aa9342bfcd70ba84", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 223.0, "surface_area": 345.0, "principal_moments": [580.0, 3890.0, 3890.0], "n_faces": 180, "n_edges": 458, "n_vertices": 280}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 14.0, "min": 5.6, "max": 28.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004381 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 14.0, \"min\": 5.6, \"max\": 28.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d699f_0681", "family": "revolved", "tier": 2, "seed": 1234004383, "symmetry": "radial", "op_count": 2, "ir_hash": "69da783d4afdd737", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 331000.0, "surface_area": 34000.0, "principal_moments": [255000000.0, 329000000.0, 329000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 74.52, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 85.5, "min": 25.6, "max": 256.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 24.8, "min": 2.0, "max": 52.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 1.1, "min": 0.1, "max": 3.3, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004383 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 74.52, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 85.5, \"min\": 25.6, \"max\": 256.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 24.8, \"min\": 2.0, \"max\": 52.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.1, \"min\": 0.1, \"max\": 3.3, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d69a1_0683", "family": "compound", "tier": 1, "seed": 1234004385, "symmetry": "none", "op_count": 2, "ir_hash": "65b66eb87479d842", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 357000.0, "surface_area": 32500.0, "principal_moments": [264000000.0, 308000000.0, 375000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 74.43, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 83.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 57.5, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_a": {"type": "float", "default": 15.3, "min": 7.7, "max": 40.2, "step": 1.0, "group": "Spigot", "label": "Spigot width (mm)"}, "spig_b": {"type": "float", "default": 8.6, "min": 4.3, "max": 40.2, "step": 1.0, "group": "Spigot", "label": "Spigot depth (mm)"}, "spig_len": {"type": "float", "default": 9.6, "min": 2.6, "max": 34.4, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 4.9, "min": 2.0, "max": 6.2, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004385 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 74.43, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 83.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 57.5, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_a\": {\"type\": 'float', \"default\": 15.3, \"min\": 7.7, \"max\": 40.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot width (mm)'},\n \"spig_b\": {\"type\": 'float', \"default\": 8.6, \"min\": 4.3, \"max\": 40.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot depth (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 9.6, \"min\": 2.6, \"max\": 34.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.0, \"max\": 6.2, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d69a4_0686", "family": "plate", "tier": 2, "seed": 1234004388, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "5bffbea612c744e9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 724.0, "surface_area": 977.0, "principal_moments": [8200.0, 65900.0, 73600.0], "n_faces": 18, "n_edges": 56, "n_vertices": 36}, "params": {"plate_w": {"type": "float", "default": 33.86, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 11.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.5, "min": 2.0, "max": 2.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "cs_angle": {"type": "float", "default": 82.0, "min": 60.0, "max": 120.0, "step": 15.0, "group": "Holes", "label": "Countersink angle (\u00b0)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004388 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 33.86, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 11.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.5, \"min\": 2.0, \"max\": 2.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"cs_angle\": {\"type\": 'float', \"default\": 82.0, \"min\": 60.0, \"max\": 120.0, \"step\": 15.0, \"group\": 'Holes', \"label\": 'Countersink angle (\u00b0)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cskHole(p[\"hole_d\"], p[\"hole_d\"] * 2, p[\"cs_angle\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.043101831935918246)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d69a5_0687", "family": "plate", "tier": 1, "seed": 1234004389, "symmetry": "radial", "op_count": 2, "ir_hash": "b49cd10f67746688", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 70500.0, "surface_area": 17900.0, "principal_moments": [37000000.0, 48299999.99999999, 84100000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 90, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 78.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 27.0, "min": 18.0, "max": 40.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004389 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 78.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 27.0, \"min\": 18.0, \"max\": 40.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d69a7_0689", "family": "flanged", "tier": 3, "seed": 1234004391, "symmetry": "none", "op_count": 3, "ir_hash": "2da1b2963558b7f7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 198000.0, "surface_area": 38700.0, "principal_moments": [198000000.0, 198000000.0, 204000000.0], "n_faces": 26, "n_edges": 57, "n_vertices": 34}, "params": {"outer_d": {"type": "float", "default": 50, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 70.9, "min": 21.3, "max": 177.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 18.8, "min": 2.0, "max": 35.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 117.8, "min": 65.0, "max": 150.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.9, "min": 2.7, "max": 28.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 35.3, "min": 23.6, "max": 53.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004391 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 70.9, \"min\": 21.3, \"max\": 177.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 18.8, \"min\": 2.0, \"max\": 35.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 117.8, \"min\": 65.0, \"max\": 150.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.9, \"min\": 2.7, \"max\": 28.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 35.3, \"min\": 23.6, \"max\": 53.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d69ac_0694", "family": "plate", "tier": 1, "seed": 1234004396, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "d0442f6a2357b2e1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11900.0, "surface_area": 4730.0, "principal_moments": [569000.0, 4460000.0, 4900000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 66.94, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 22.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004396 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 66.94, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 22.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d69ad_0695", "family": "ribbed", "tier": 1, "seed": 1234004397, "symmetry": "none", "op_count": 2, "ir_hash": "9879bc908bb6f362", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37900.0, "surface_area": 29300.0, "principal_moments": [14999999.999999998, 28899999.999999996, 40300000.0], "n_faces": 54, "n_edges": 132, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 52.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 18.7, "min": 7.5, "max": 37.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.1, "min": 1.0, "max": 5.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004397 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 52.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 18.7, \"min\": 7.5, \"max\": 37.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.1, \"min\": 1.0, \"max\": 5.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d69ae_0696", "family": "bracket", "tier": 2, "seed": 1234004398, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "75670e00f5c7a45d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 52000.0, "surface_area": 17100.0, "principal_moments": [34500000.0, 52099999.99999999, 79100000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 76.66, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 77.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 29.67, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 8.4, "min": 4.0, "max": 14.8, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004398 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 76.66, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 77.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 29.67, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 8.4, \"min\": 4.0, \"max\": 14.8, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d69af_0697", "family": "bracket", "tier": 1, "seed": 1234004399, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "48b0972a10e80f83", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28400.0, "surface_area": 11500.0, "principal_moments": [8770000.0, 13999999.999999998, 17200000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 47.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004399 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 47.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d69b1_0699", "family": "ribbed", "tier": 3, "seed": 1234004401, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "207572c04c3e8670", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17600.0, "surface_area": 9540.0, "principal_moments": [3050000.0, 5240000.0, 7050000.0], "n_faces": 38, "n_edges": 108, "n_vertices": 68}, "params": {"base_w": {"type": "float", "default": 51.61, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 40.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.1, "min": 6.4, "max": 32.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.9, "min": 1.0, "max": 14.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 9.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004401 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 51.61, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 40.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.1, \"min\": 6.4, \"max\": 32.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.9, \"min\": 1.0, \"max\": 14.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 9.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d69b2_0700", "family": "profiled", "tier": 0, "seed": 1234004402, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "347455c18b034a03", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 40000.0, "surface_area": 9450.0, "principal_moments": [1740000.0, 78400000.0, 78800000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 20.65, "min": 10.3, "max": 41.3, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 15, "min": 7.5, "max": 30.0, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 152.8, "min": 45.8, "max": 458.4, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004402 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 20.65, \"min\": 10.3, \"max\": 41.3, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 15, \"min\": 7.5, \"max\": 30.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 152.8, \"min\": 45.8, \"max\": 458.4, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d69b3_0701", "family": "bracket", "tier": 1, "seed": 1234004403, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "da741ddf25eb25db", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5710.0, "surface_area": 4410.0, "principal_moments": [667000.0, 954000.0, 1340000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 41.09, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004403 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 41.09, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d69b6_0704", "family": "flanged", "tier": 3, "seed": 1234004406, "symmetry": "none", "op_count": 2, "ir_hash": "9807798cc0ad3fd2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30100.0, "surface_area": 10500.0, "principal_moments": [7200000.0, 7200000.0, 8710000.0], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 30.33, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 31.5, "min": 9.4, "max": 78.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 10.4, "min": 2.0, "max": 21.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 60.9, "min": 39.4, "max": 91.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.2, "min": 1.6, "max": 12.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 18.3, "min": 12.2, "max": 27.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004406 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30.33, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 31.5, \"min\": 9.4, \"max\": 78.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 10.4, \"min\": 2.0, \"max\": 21.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 60.9, \"min\": 39.4, \"max\": 91.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.2, \"min\": 1.6, \"max\": 12.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 18.3, \"min\": 12.2, \"max\": 27.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d69b7_0705", "family": "plate", "tier": 2, "seed": 1234004407, "symmetry": "none", "op_count": 3, "ir_hash": "7af91466c16c3cb1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24000.0, "surface_area": 7980.0, "principal_moments": [3380000.0, 7830000.0, 10800000.0], "n_faces": 22, "n_edges": 48, "n_vertices": 32}, "params": {"plate_w": {"type": "float", "default": 63.58, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 41.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 9.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "cb_d": {"type": "float", "default": 10.6, "min": 7.9, "max": 15.9, "step": 0.5, "group": "Holes", "label": "Counterbore diameter (mm)"}, "cb_depth": {"type": "float", "default": 4.2, "min": 2.1, "max": 8.4, "step": 0.5, "group": "Holes", "label": "Counterbore depth (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004407 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 63.58, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 41.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 9.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"cb_d\": {\"type\": 'float', \"default\": 10.6, \"min\": 7.9, \"max\": 15.9, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Counterbore diameter (mm)'},\n \"cb_depth\": {\"type\": 'float', \"default\": 4.2, \"min\": 2.1, \"max\": 8.4, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Counterbore depth (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cboreHole(p[\"hole_d\"], p[\"cb_d\"], p[\"cb_depth\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.11029332681081733)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d69b8_0706", "family": "bracket", "tier": 3, "seed": 1234004408, "symmetry": "none", "op_count": 1, "ir_hash": "8277ffd72d839096", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 46800.0, "surface_area": 16200.0, "principal_moments": [26299999.999999996, 49499999.99999999, 69900000.0], "n_faces": 26, "n_edges": 60, "n_vertices": 40}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 71.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 27.73, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 9.6, "min": 4.0, "max": 13.9, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004408 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 71.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 27.73, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 9.6, \"min\": 4.0, \"max\": 13.9, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69b9_0707", "family": "revolved", "tier": 1, "seed": 1234004409, "symmetry": "none", "op_count": 2, "ir_hash": "010d78eae5f6b91a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32300.0, "surface_area": 8350.0, "principal_moments": [6830000.0, 6830000.0, 10600000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 46.85, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 28.2, "min": 8.5, "max": 84.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004409 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 46.85, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 28.2, \"min\": 8.5, \"max\": 84.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d69bf_0713", "family": "block", "tier": 2, "seed": 1234004415, "symmetry": "radial", "op_count": 3, "ir_hash": "e772191f633bc834", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 280000.0, "surface_area": 39300.0, "principal_moments": [183000000.0, 262000000.0, 288000000.0], "n_faces": 21, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 63.67, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 55.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 92.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 19.1, "min": 12.7, "max": 28.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "pocket_w": {"type": "float", "default": 38.7, "min": 19.4, "max": 50.9, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 34.0, "min": 17.0, "max": 44.2, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 32.1, "min": 12.8, "max": 78.9, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004415 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 63.67, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 55.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 92.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 19.1, \"min\": 12.7, \"max\": 28.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"pocket_w\": {\"type\": 'float', \"default\": 38.7, \"min\": 19.4, \"max\": 50.9, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 34.0, \"min\": 17.0, \"max\": 44.2, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 32.1, \"min\": 12.8, \"max\": 78.9, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69c0_0714", "family": "revolved", "tier": 2, "seed": 1234004416, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "99a44a33c1c46dfe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 220000.0, "surface_area": 41700.0, "principal_moments": [82600000.0, 411000000.0, 411000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 50, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 168.2, "min": 50.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004416 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 168.2, \"min\": 50.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d69c1_0715", "family": "enclosure", "tier": 2, "seed": 1234004417, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "73ee2e377724124f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19900.0, "surface_area": 10800.0, "principal_moments": [4190000.0, 6550000.0, 7770000.0], "n_faces": 19, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 47.43, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 33.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 27.9, "min": 11.2, "max": 55.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004417 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 47.43, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 33.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 27.9, \"min\": 11.2, \"max\": 55.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d69c2_0716", "family": "profiled", "tier": 2, "seed": 1234004418, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "d2a451737fae9556", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 99300.0, "surface_area": 18200.0, "principal_moments": [6720000.0, 473000000.0, 474000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 25, "min": 12.5, "max": 50.0, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 20.15, "min": 10.1, "max": 40.3, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 238.4, "min": 71.5, "max": 715.2, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004418 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 25, \"min\": 12.5, \"max\": 50.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 20.15, \"min\": 10.1, \"max\": 40.3, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 238.4, \"min\": 71.5, \"max\": 715.2, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d69c3_0717", "family": "compound", "tier": 3, "seed": 1234004419, "symmetry": "mirror_x", "op_count": 7, "ir_hash": "709b262a1c46de6b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 223000.0, "surface_area": 28200.0, "principal_moments": [129000000.0, 134000000.0, 190000000.0], "n_faces": 57, "n_edges": 152, "n_vertices": 99}, "params": {"block_w": {"type": "float", "default": 70.14, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 72.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 44.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 5.2, "min": 2.6, "max": 10.0, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 12.5, "min": 2.4, "max": 28.8, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.9, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004419 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70.14, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 72.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 44.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.6, \"max\": 10.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 12.5, \"min\": 2.4, \"max\": 28.8, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.9, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.054302076784653736)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d69c4_0718", "family": "profiled", "tier": 0, "seed": 1234004420, "symmetry": "none", "op_count": 1, "ir_hash": "411956453036fdf5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 126000.0, "surface_area": 33400.0, "principal_moments": [23099999.999999996, 300000000.0, 300000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 35, "min": 17.5, "max": 70.0, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 196.4, "min": 58.9, "max": 589.2, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004420 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 17.5, \"max\": 70.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 196.4, \"min\": 58.9, \"max\": 589.2, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d69c5_0719", "family": "threaded", "tier": 1, "seed": 1234004421, "symmetry": "none", "op_count": 1, "ir_hash": "83718060f2f1de87", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 217.0, "surface_area": 336.0, "principal_moments": [563.0, 3580.0, 3580.0], "n_faces": 175, "n_edges": 447, "n_vertices": 274}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 13.6, "min": 5.4, "max": 27.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004421 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 13.6, \"min\": 5.4, \"max\": 27.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69c6_0720", "family": "revolved", "tier": 1, "seed": 1234004422, "symmetry": "radial", "op_count": 1, "ir_hash": "d0b6070f08f027c4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 318000.0, "surface_area": 38700.0, "principal_moments": [272000000.0, 361000000.0, 361000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 92.0, "min": 27.6, "max": 276.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 34.9, "min": 2.0, "max": 52.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004422 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 92.0, \"min\": 27.6, \"max\": 276.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 34.9, \"min\": 2.0, \"max\": 52.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d69c7_0721", "family": "block", "tier": 2, "seed": 1234004423, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "594c464c02466d3a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6230.0, "surface_area": 4000.0, "principal_moments": [285000.0, 739000.0, 931000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 20.95, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 9.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 38.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 10.5, "min": 5.2, "max": 16.8, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 5.6, "min": 2.8, "max": 7.4, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 11.9, "min": 4.8, "max": 32.3, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004423 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20.95, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 9.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 38.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 10.5, \"min\": 5.2, \"max\": 16.8, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 5.6, \"min\": 2.8, \"max\": 7.4, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 11.9, \"min\": 4.8, \"max\": 32.3, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d69c8_0722", "family": "plate", "tier": 1, "seed": 1234004424, "symmetry": "none", "op_count": 2, "ir_hash": "f2df6ae11a75af17", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6620.0, "surface_area": 4310.0, "principal_moments": [394000.0, 2280000.0, 2660000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 26.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004424 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 26.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d69ca_0724", "family": "ribbed", "tier": 3, "seed": 1234004426, "symmetry": "none", "op_count": 3, "ir_hash": "f7cdbb85083fa2ec", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 57500.0, "surface_area": 25300.0, "principal_moments": [22999999.999999996, 33399999.999999996, 52399999.99999999], "n_faces": 62, "n_edges": 168, "n_vertices": 104}, "params": {"base_w": {"type": "float", "default": 83.31, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 66.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 14.6, "min": 5.8, "max": 29.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.2, "min": 1.0, "max": 13.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004426 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 83.31, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 66.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 14.6, \"min\": 5.8, \"max\": 29.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.2, \"min\": 1.0, \"max\": 13.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69cb_0725", "family": "revolved", "tier": 1, "seed": 1234004427, "symmetry": "radial", "op_count": 2, "ir_hash": "acea9e833109897e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 210000.0, "surface_area": 34500.0, "principal_moments": [120000000.0, 292000000.0, 292000000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 44.6, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 111.4, "min": 33.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 22.1, "min": 2.0, "max": 31.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 77.8, "min": 53.5, "max": 133.8, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 24.7, "min": 7.4, "max": 55.7, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 1.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004427 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 44.6, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 111.4, \"min\": 33.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 22.1, \"min\": 2.0, \"max\": 31.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 77.8, \"min\": 53.5, \"max\": 133.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 24.7, \"min\": 7.4, \"max\": 55.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 1.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d69cd_0727", "family": "plate", "tier": 0, "seed": 1234004429, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "81fb87dd71df960f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20600.0, "surface_area": 9550.0, "principal_moments": [4940000.0, 10300000.0, 15099999.999999998], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 77.15, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 53.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004429 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 77.15, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 53.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d69ce_0728", "family": "bracket", "tier": 2, "seed": 1234004430, "symmetry": "none", "op_count": 1, "ir_hash": "9b62d685c36a6f36", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16300.0, "surface_area": 12000.0, "principal_moments": [4910000.0, 12899999.999999998, 14599999.999999998], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 45.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.5, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004430 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 45.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d69cf_0729", "family": "bracket", "tier": 2, "seed": 1234004431, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "f4c779a8ab0dcb7f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33000.0, "surface_area": 18100.0, "principal_moments": [11799999.999999998, 29199999.999999996, 37000000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 52.81, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 36.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 60.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 54.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 5.2, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004431 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 52.81, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 36.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 60.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 54.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d69d0_0730", "family": "bracket", "tier": 2, "seed": 1234004432, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "fa8d7174139b4035", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 54700.0, "surface_area": 20400.0, "principal_moments": [24399999.999999996, 66699999.99999999, 70500000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 7.9, "min": 3.0, "max": 18.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004432 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 7.9, \"min\": 3.0, \"max\": 18.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69d2_0732", "family": "revolved", "tier": 0, "seed": 1234004434, "symmetry": "radial", "op_count": 1, "ir_hash": "ea03e0cab9060a5c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 223.0, "surface_area": 312.0, "principal_moments": [1670.0, 1670.0, 2380.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 8.43, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 6.0, "min": 1.8, "max": 18.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004434 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 8.43, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 6.0, \"min\": 1.8, \"max\": 18.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d69d3_0733", "family": "enclosure", "tier": 1, "seed": 1234004435, "symmetry": "none", "op_count": 2, "ir_hash": "a623b45ae5522aee", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 178000.0, "surface_area": 70200.0, "principal_moments": [230000000.0, 350000000.0, 425000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 115, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 54.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 93.5, "min": 37.4, "max": 187.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004435 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 115, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 54.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 93.5, \"min\": 37.4, \"max\": 187.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69d4_0734", "family": "revolved", "tier": 1, "seed": 1234004436, "symmetry": "none", "op_count": 2, "ir_hash": "9d4c8bc972d39f64", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30000.0, "surface_area": 9610.0, "principal_moments": [4010000.0, 9290000.0, 9290000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 29.9, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 64.1, "min": 19.2, "max": 192.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.7, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004436 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 29.9, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 64.1, \"min\": 19.2, \"max\": 192.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.7, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d69d6_0736", "family": "bracket", "tier": 2, "seed": 1234004438, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "4e8c0cc6c4b843c6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19300.0, "surface_area": 6880.0, "principal_moments": [2780000.0, 8850000.0, 10400000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 59.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20.45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 8.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 8.3, "min": 4.0, "max": 10.2, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004438 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 59.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20.45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 8.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 8.3, \"min\": 4.0, \"max\": 10.2, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69d7_0737", "family": "revolved", "tier": 0, "seed": 1234004439, "symmetry": "none", "op_count": 1, "ir_hash": "35091469f86d701d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 314000.0, "surface_area": 42500.0, "principal_moments": [274000000.0, 336000000.0, 336000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 76.25, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 103.3, "min": 31.0, "max": 309.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004439 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 76.25, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 103.3, \"min\": 31.0, \"max\": 309.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69d8_0738", "family": "revolved", "tier": 1, "seed": 1234004440, "symmetry": "radial", "op_count": 1, "ir_hash": "7100fa637ce0e3a7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3220.0, "surface_area": 2070.0, "principal_moments": [116000.0, 228000.0, 228000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 15, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 25.2, "min": 7.6, "max": 75.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 7.9, "min": 2.0, "max": 10.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004440 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 15, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 25.2, \"min\": 7.6, \"max\": 75.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 7.9, \"min\": 2.0, \"max\": 10.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d69d9_0739", "family": "bracket", "tier": 1, "seed": 1234004441, "symmetry": "none", "op_count": 1, "ir_hash": "479d0a85d849c875", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17500.0, "surface_area": 7720.0, "principal_moments": [2970000.0, 6950000.0, 7060000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 47.62, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 30.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30.85, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004441 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 47.62, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 30.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30.85, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69da_0740", "family": "revolved", "tier": 1, "seed": 1234004442, "symmetry": "none", "op_count": 2, "ir_hash": "42267d0ad1e0c017", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 85600.0, "surface_area": 21000.0, "principal_moments": [19000000.0, 71400000.0, 71400000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 38.51, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 110.4, "min": 33.1, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.1, "min": 0.1, "max": 3.3, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004442 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 38.51, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 110.4, \"min\": 33.1, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.1, \"min\": 0.1, \"max\": 3.3, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.11048994275245416)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69dc_0742", "family": "revolved", "tier": 1, "seed": 1234004444, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "74cc73b62ebbb2e5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 897000.0, "surface_area": 99100.0, "principal_moments": [732000000.0, 5980000000.0, 5980000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 73.14, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 274.0, "min": 82.2, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 34.4, "min": 2.0, "max": 51.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004444 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 73.14, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 274.0, \"min\": 82.2, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 34.4, \"min\": 2.0, \"max\": 51.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d69dd_0743", "family": "bracket", "tier": 2, "seed": 1234004445, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "4dbdf20fb0d0e477", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18300.0, "surface_area": 8700.0, "principal_moments": [3030000.0, 7490000.0, 9320000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 27.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 28.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 6.5, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004445 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 27.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 28.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.5, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d69de_0744", "family": "block", "tier": 2, "seed": 1234004446, "symmetry": "none", "op_count": 3, "ir_hash": "0304cf2d6d2e3800", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 467000.0, "surface_area": 49300.0, "principal_moments": [389000000.0, 531000000.0, 605000000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 77.91, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 64.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 97.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 11.9, "min": 6.0, "max": 23.8, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 5.7, "min": 2.3, "max": 14.2, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 8.3, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004446 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 77.91, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 64.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 97.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 11.9, \"min\": 6.0, \"max\": 23.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.3, \"max\": 14.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 8.3, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d69df_0745", "family": "bracket", "tier": 1, "seed": 1234004447, "symmetry": "none", "op_count": 1, "ir_hash": "6053112d692a811d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7560.0, "surface_area": 5800.0, "principal_moments": [1280000.0, 1950000.0, 2440000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 37.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 37.02, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004447 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 37.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 37.02, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d69e3_0749", "family": "plate", "tier": 1, "seed": 1234004451, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "cb7cb116d9aa0285", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1530.0, "surface_area": 1120.0, "principal_moments": [19100.0, 81400.0, 91400.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 25, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 10.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.4, "min": 2.0, "max": 2.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004451 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 10.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 2.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d69e4_0750", "family": "compound", "tier": 1, "seed": 1234004452, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "a2759279eca35af2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2900.0, "surface_area": 1210.0, "principal_moments": [67100.0, 131000.0, 131000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 14.42, "min": 7.2, "max": 26.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 14.0, "min": 5.6, "max": 28.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 10.0, "min": 5.0, "max": 13.0, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 7.8, "min": 2.3, "max": 19.5, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004452 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 14.42, \"min\": 7.2, \"max\": 26.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 14.0, \"min\": 5.6, \"max\": 28.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 5.0, \"max\": 13.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 7.8, \"min\": 2.3, \"max\": 19.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d69e6_0752", "family": "compound", "tier": 1, "seed": 1234004454, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "3d1b16b517617ebd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 43100.0, "surface_area": 22600.0, "principal_moments": [43700000.0, 45400000.0, 55299999.99999999], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"base_w": {"type": "float", "default": 98.1, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 75.6, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 5.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 6.0, "min": 3.0, "max": 18.9, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 109.1, "min": 32.7, "max": 327.3, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 5.9, "min": 2.0, "max": 7.5, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004454 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 98.1, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 75.6, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 18.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 109.1, \"min\": 32.7, \"max\": 327.3, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 5.9, \"min\": 2.0, \"max\": 7.5, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69e7_0753", "family": "revolved", "tier": 0, "seed": 1234004455, "symmetry": "none", "op_count": 1, "ir_hash": "51522509d7b453d0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 104000.0, "surface_area": 26200.0, "principal_moments": [22100000.0, 135000000.0, 135000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 37.54, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 141.4, "min": 42.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004455 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 37.54, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 141.4, \"min\": 42.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69e8_0754", "family": "revolved", "tier": 0, "seed": 1234004456, "symmetry": "radial", "op_count": 1, "ir_hash": "cb10ff50cc66cf2d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15200.0, "surface_area": 6710.0, "principal_moments": [1080000.0, 3970000.0, 3970000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 21.74, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 61.6, "min": 18.5, "max": 184.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004456 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 21.74, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 61.6, \"min\": 18.5, \"max\": 184.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d69e9_0755", "family": "threaded", "tier": 0, "seed": 1234004457, "symmetry": "none", "op_count": 1, "ir_hash": "7fc933cdeb01326d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5190.0, "surface_area": 3220.0, "principal_moments": [78900.0, 1350000.0, 1350000.0], "n_faces": 320, "n_edges": 822, "n_vertices": 504}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 55.2, "min": 22.1, "max": 110.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004457 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 55.2, \"min\": 22.1, \"max\": 110.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69ea_0756", "family": "revolved", "tier": 2, "seed": 1234004458, "symmetry": "none", "op_count": 1, "ir_hash": "50cadfa51bd01d21", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 378.0, "surface_area": 582.0, "principal_moments": [3560.0, 7700.0, 7700.0], "n_faces": 8, "n_edges": 12, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 7.55, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 13.4, "min": 4.0, "max": 40.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 4.4, "min": 2.0, "max": 5.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 0.58, "min": 0.23, "max": 1.74, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 1.42, "min": 0.57, "max": 4.26, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 7.1, "min": 2.0, "max": 11.4, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004458 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 7.55, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 13.4, \"min\": 4.0, \"max\": 40.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 4.4, \"min\": 2.0, \"max\": 5.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 0.58, \"min\": 0.23, \"max\": 1.74, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 1.42, \"min\": 0.57, \"max\": 4.26, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 7.1, \"min\": 2.0, \"max\": 11.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69ed_0759", "family": "revolved", "tier": 2, "seed": 1234004461, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "841eba18a6188869", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 86500.0, "surface_area": 19700.0, "principal_moments": [39400000.0, 39400000.0, 68200000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 41.33, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 39.0, "min": 11.7, "max": 117.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 86.5, "min": 49.6, "max": 124.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 11.4, "min": 3.4, "max": 19.5, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004461 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 41.33, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 39.0, \"min\": 11.7, \"max\": 117.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 86.5, \"min\": 49.6, \"max\": 124.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 11.4, \"min\": 3.4, \"max\": 19.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d69ef_0761", "family": "threaded", "tier": 0, "seed": 1234004463, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "57f89db2f569f191", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 798.0, "surface_area": 995.0, "principal_moments": [2970.0, 81900.0, 81900.0], "n_faces": 355, "n_edges": 915, "n_vertices": 562}, "params": {"major_d": {"type": "float", "default": 6.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.0, "min": 0.5, "max": 2.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 34.9, "min": 14.0, "max": 69.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004463 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.5, \"max\": 2.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 34.9, \"min\": 14.0, \"max\": 69.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d69f0_0762", "family": "bracket", "tier": 2, "seed": 1234004464, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "198d81e252eb01fd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28100.0, "surface_area": 10100.0, "principal_moments": [4760000.0, 32699999.999999996, 35700000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 64.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 54.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 7.6, "min": 4.0, "max": 10.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004464 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 64.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 54.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 7.6, \"min\": 4.0, \"max\": 10.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d69f1_0763", "family": "ribbed", "tier": 1, "seed": 1234004465, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "407475aac901e001", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 47300.0, "surface_area": 28100.0, "principal_moments": [30799999.999999996, 43200000.0, 71000000.0], "n_faces": 21, "n_edges": 48, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 99.36, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 88.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 18.2, "min": 7.3, "max": 36.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.8, "min": 1.0, "max": 7.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004465 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 99.36, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 88.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 18.2, \"min\": 7.3, \"max\": 36.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.8, \"min\": 1.0, \"max\": 7.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d69f2_0764", "family": "plate", "tier": 1, "seed": 1234004466, "symmetry": "none", "op_count": 2, "ir_hash": "6735f99cc3829e75", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12600.0, "surface_area": 7360.0, "principal_moments": [2230000.0, 4950000.0, 7150000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 68.83, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 46.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 10.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004466 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 68.83, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 46.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 10.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d69f3_0765", "family": "block", "tier": 2, "seed": 1234004467, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "68739f91fbdc3ca6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 84400.0, "surface_area": 17300.0, "principal_moments": [20000000.0, 55399999.99999999, 69900000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 20.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 86.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004467 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 20.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 86.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.07743143622664883)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d69f4_0766", "family": "plate", "tier": 1, "seed": 1234004468, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "fea3af57588585a9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1040.0, "surface_area": 1060.0, "principal_moments": [19900.0, 52700.0, 71100.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 25, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 15.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004468 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 15.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69f5_0767", "family": "revolved", "tier": 0, "seed": 1234004469, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "423c0f996c3ea468", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4090.0, "surface_area": 2730.0, "principal_moments": [128000.0, 407000.0, 407000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 14.42, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 37.6, "min": 11.3, "max": 112.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004469 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 14.42, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 37.6, \"min\": 11.3, \"max\": 112.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d69f6_0768", "family": "flanged", "tier": 1, "seed": 1234004470, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "916cd0f12ccbaf0b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33500.0, "surface_area": 12700.0, "principal_moments": [10200000.0, 11100000.0, 11100000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 30, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 42.3, "min": 12.7, "max": 105.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 15.3, "min": 2.0, "max": 21.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 63.2, "min": 39.0, "max": 90.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.9, "min": 1.5, "max": 16.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 19.0, "min": 12.6, "max": 28.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004470 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 42.3, \"min\": 12.7, \"max\": 105.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 15.3, \"min\": 2.0, \"max\": 21.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 63.2, \"min\": 39.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.9, \"min\": 1.5, \"max\": 16.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 19.0, \"min\": 12.6, \"max\": 28.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d69f7_0769", "family": "ribbed", "tier": 2, "seed": 1234004471, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "40fe50c7419d7ba8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13200.0, "surface_area": 7870.0, "principal_moments": [1930000.0, 3730000.0, 4680000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 49.39, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 26.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.8, "min": 6.7, "max": 33.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.7, "min": 1.0, "max": 11.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004471 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 49.39, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 26.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.8, \"min\": 6.7, \"max\": 33.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.7, \"min\": 1.0, \"max\": 11.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d69f8_0770", "family": "flanged", "tier": 2, "seed": 1234004472, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "94d60212a8c11930", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8510.0, "surface_area": 4980.0, "principal_moments": [828000.0, 985000.0, 985000.0], "n_faces": 29, "n_edges": 114, "n_vertices": 76}, "params": {"outer_d": {"type": "float", "default": 21.37, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 26.0, "min": 7.8, "max": 65.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 9.4, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 38.4, "min": 27.8, "max": 64.1, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 2.0, "min": 0.6, "max": 10.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 11.5, "min": 7.7, "max": 17.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004472 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 21.37, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 26.0, \"min\": 7.8, \"max\": 65.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 9.4, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 38.4, \"min\": 27.8, \"max\": 64.1, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 2.0, \"min\": 0.6, \"max\": 10.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 11.5, \"min\": 7.7, \"max\": 17.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d69f9_0771", "family": "plate", "tier": 2, "seed": 1234004473, "symmetry": "none", "op_count": 3, "ir_hash": "009d518b2c06ea4d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11600.0, "surface_area": 5850.0, "principal_moments": [1760000.0, 3030000.0, 4730000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"plate_w": {"type": "float", "default": 55.92, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 42.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004473 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 55.92, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 42.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 21.0\n _ssy = 23.9\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09489245079806397)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d69fa_0772", "family": "block", "tier": 3, "seed": 1234004474, "symmetry": "radial", "op_count": 5, "ir_hash": "a467ef80d91d8ad7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 214000.0, "surface_area": 35200.0, "principal_moments": [127000000.0, 201000000.0, 274000000.0], "n_faces": 31, "n_edges": 81, "n_vertices": 54}, "params": {"block_w": {"type": "float", "default": 70.38, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 36.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 21.1, "min": 14.1, "max": 31.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "pocket_w": {"type": "float", "default": 32.2, "min": 16.1, "max": 56.3, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 23.4, "min": 11.7, "max": 29.4, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 49.4, "min": 19.8, "max": 85.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}, "filleted2": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "side_tube_d": {"type": "float", "default": 10.4, "min": 4.2, "max": 18.4, "step": 1.0, "group": "Side Tube", "label": "Side tube diameter (mm)"}, "side_tube_len": {"type": "float", "default": 9.6, "min": 2.9, "max": 31.2, "step": 1.0, "group": "Side Tube", "label": "Side tube length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004474 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70.38, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 36.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 21.1, \"min\": 14.1, \"max\": 31.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"pocket_w\": {\"type\": 'float', \"default\": 32.2, \"min\": 16.1, \"max\": 56.3, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 23.4, \"min\": 11.7, \"max\": 29.4, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 49.4, \"min\": 19.8, \"max\": 85.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n \"filleted2\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"side_tube_d\": {\"type\": 'float', \"default\": 10.4, \"min\": 4.2, \"max\": 18.4, \"step\": 1.0, \"group\": 'Side Tube', \"label\": 'Side tube diameter (mm)'},\n \"side_tube_len\": {\"type\": 'float', \"default\": 9.6, \"min\": 2.9, \"max\": 31.2, \"step\": 1.0, \"group\": 'Side Tube', \"label\": 'Side tube length (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.11596103045861814)\n result = (\n result.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d69fc_0774", "family": "plate", "tier": 1, "seed": 1234004476, "symmetry": "radial", "op_count": 2, "ir_hash": "4032a391ac3f3b71", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5060.0, "surface_area": 2960.0, "principal_moments": [217000.0, 457000.0, 590000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 30, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 20.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 9.0, "min": 6.0, "max": 13.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004476 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 20.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 9.0, \"min\": 6.0, \"max\": 13.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d69fd_0775", "family": "plate", "tier": 2, "seed": 1234004477, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "8f3343237b855aa4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10800.0, "surface_area": 4450.0, "principal_moments": [782000.0, 2210000.0, 2880000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 29.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004477 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 29.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.11583792505448964)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69ff_0777", "family": "revolved", "tier": 1, "seed": 1234004479, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "020ff4d59bb0b822", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16700.0, "surface_area": 5490.0, "principal_moments": [2370000.0, 2580000.0, 2580000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 18.72, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 33.3, "min": 10.0, "max": 99.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 38.5, "min": 22.5, "max": 56.2, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.7, "min": 2.9, "max": 16.6, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004479 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 18.72, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 33.3, \"min\": 10.0, \"max\": 99.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 38.5, \"min\": 22.5, \"max\": 56.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.7, \"min\": 2.9, \"max\": 16.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6a01_0779", "family": "profiled", "tier": 2, "seed": 1234004481, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "76910e469445211c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 245000.0, "surface_area": 40800.0, "principal_moments": [83000000.0, 1440000000.0, 1510000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 65, "min": 32.5, "max": 130.0, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 15, "min": 7.5, "max": 30.0, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 264.6, "min": 79.4, "max": 793.8, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004481 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 65, \"min\": 32.5, \"max\": 130.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 15, \"min\": 7.5, \"max\": 30.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 264.6, \"min\": 79.4, \"max\": 793.8, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6a02_0780", "family": "enclosure", "tier": 1, "seed": 1234004482, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "87146ddcb1ce9b57", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61400.0, "surface_area": 51900.0, "principal_moments": [60199999.99999999, 89000000.0, 108000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 95.75, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 45.5, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 80.2, "min": 32.1, "max": 160.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.4, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004482 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 95.75, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 45.5, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 80.2, \"min\": 32.1, \"max\": 160.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6a03_0781", "family": "plate", "tier": 0, "seed": 1234004483, "symmetry": "none", "op_count": 1, "ir_hash": "cef0209a56f1b185", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8010.0, "surface_area": 4750.0, "principal_moments": [746000.0, 2430000.0, 3160000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 60.28, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 33.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004483 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60.28, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 33.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a04_0782", "family": "compound", "tier": 1, "seed": 1234004484, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "d037aea9428dd03c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18800.0, "surface_area": 5900.0, "principal_moments": [1330000.0, 4780000.0, 4780000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 24.18, "min": 12.1, "max": 43.5, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 38.4, "min": 15.4, "max": 76.8, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 11.9, "min": 6.0, "max": 21.8, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 25.5, "min": 7.6, "max": 63.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 5.8, "min": 2.0, "max": 8.6, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004484 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 24.18, \"min\": 12.1, \"max\": 43.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 38.4, \"min\": 15.4, \"max\": 76.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 11.9, \"min\": 6.0, \"max\": 21.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 25.5, \"min\": 7.6, \"max\": 63.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.0, \"max\": 8.6, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a05_0783", "family": "flanged", "tier": 3, "seed": 1234004485, "symmetry": "radial", "op_count": 3, "ir_hash": "dfba9c4c2820cbff", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 232000.0, "surface_area": 50300.0, "principal_moments": [249000000.0, 249000000.0, 327000000.0], "n_faces": 34, "n_edges": 77, "n_vertices": 46}, "params": {"outer_d": {"type": "float", "default": 61.63, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 60.3, "min": 18.1, "max": 150.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 23.3, "min": 2.0, "max": 43.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 145.8, "min": 80.1, "max": 184.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.7, "min": 1.7, "max": 24.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 43.7, "min": 29.2, "max": 65.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004485 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 61.63, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 60.3, \"min\": 18.1, \"max\": 150.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 23.3, \"min\": 2.0, \"max\": 43.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 145.8, \"min\": 80.1, \"max\": 184.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.7, \"min\": 1.7, \"max\": 24.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 43.7, \"min\": 29.2, \"max\": 65.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6a07_0785", "family": "threaded", "tier": 1, "seed": 1234004487, "symmetry": "none", "op_count": 1, "ir_hash": "446187be3a66eba0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 606.0, "surface_area": 742.0, "principal_moments": [7690.0, 12100.0, 12100.0], "n_faces": 132, "n_edges": 358, "n_vertices": 228}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 12.8, "min": 5.1, "max": 25.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004487 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 12.8, \"min\": 5.1, \"max\": 25.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a08_0786", "family": "flanged", "tier": 2, "seed": 1234004488, "symmetry": "radial", "op_count": 3, "ir_hash": "449893b61e0e78fb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45900.0, "surface_area": 12600.0, "principal_moments": [13699999.999999998, 13699999.999999998, 14299999.999999998], "n_faces": 32, "n_edges": 80, "n_vertices": 47}, "params": {"outer_d": {"type": "float", "default": 35, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 38.2, "min": 11.5, "max": 95.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 10.6, "min": 2.0, "max": 24.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 65.1, "min": 45.5, "max": 105.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.6, "min": 1.7, "max": 15.3, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 19.5, "min": 13.0, "max": 29.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.6, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004488 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 38.2, \"min\": 11.5, \"max\": 95.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 10.6, \"min\": 2.0, \"max\": 24.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 65.1, \"min\": 45.5, \"max\": 105.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.6, \"min\": 1.7, \"max\": 15.3, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 19.5, \"min\": 13.0, \"max\": 29.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.6, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6a0c_0790", "family": "enclosure", "tier": 2, "seed": 1234004492, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "f3bae8cf8b8d3046", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13700.0, "surface_area": 8300.0, "principal_moments": [2120000.0, 2350000.0, 3170000.0], "n_faces": 27, "n_edges": 84, "n_vertices": 56}, "params": {"enc_w": {"type": "float", "default": 35, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 20.4, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 34.2, "min": 13.7, "max": 68.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.5, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004492 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 35, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 20.4, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 34.2, \"min\": 13.7, \"max\": 68.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.5, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.05345828403765474)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6a0f_0793", "family": "block", "tier": 1, "seed": 1234004495, "symmetry": "radial", "op_count": 2, "ir_hash": "0c31a8dbaea8e4e3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 179000.0, "surface_area": 25500.0, "principal_moments": [77000000.0, 146000000.0, 197000000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"block_w": {"type": "float", "default": 65.22, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 29.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 94.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 19.6, "min": 13.0, "max": 29.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004495 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65.22, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 29.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 94.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 19.6, \"min\": 13.0, \"max\": 29.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a10_0794", "family": "revolved", "tier": 2, "seed": 1234004496, "symmetry": "radial", "op_count": 2, "ir_hash": "a3246083643039b4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 362000.0, "surface_area": 52200.0, "principal_moments": [264000000.0, 575000000.0, 575000000.0], "n_faces": 9, "n_edges": 14, "n_vertices": 9}, "params": {"outer_d": {"type": "float", "default": 70, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 143.1, "min": 42.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "groove_depth": {"type": "float", "default": 3.16, "min": 1.26, "max": 9.48, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 7.71, "min": 3.08, "max": 23.13, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 75.7, "min": 21.5, "max": 121.6, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.7, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004496 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 70, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 143.1, \"min\": 42.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 3.16, \"min\": 1.26, \"max\": 9.48, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 7.71, \"min\": 3.08, \"max\": 23.13, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 75.7, \"min\": 21.5, \"max\": 121.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.7, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a13_0797", "family": "compound", "tier": 2, "seed": 1234004499, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "26c23c611939d337", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 83900.0, "surface_area": 13800.0, "principal_moments": [22899999.999999996, 29499999.999999996, 37100000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 47.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 33.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 9.8, "min": 3.9, "max": 23.2, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 20.9, "min": 2.9, "max": 39.2, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 5.1, "min": 2.0, "max": 7.1, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 10.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004499 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 47.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 33.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 9.8, \"min\": 3.9, \"max\": 23.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 20.9, \"min\": 2.9, \"max\": 39.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 5.1, \"min\": 2.0, \"max\": 7.1, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 10.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a14_0798", "family": "flanged", "tier": 1, "seed": 1234004500, "symmetry": "radial", "op_count": 2, "ir_hash": "fa125bb49317ceae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21800.0, "surface_area": 8260.0, "principal_moments": [3610000.0, 3610000.0, 4980000.0], "n_faces": 17, "n_edges": 60, "n_vertices": 40}, "params": {"outer_d": {"type": "float", "default": 33.32, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 23.1, "min": 6.9, "max": 57.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 11.5, "min": 2.0, "max": 23.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 53.7, "min": 43.3, "max": 100.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.5, "min": 1.1, "max": 9.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 16.1, "min": 10.7, "max": 24.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004500 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 33.32, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 23.1, \"min\": 6.9, \"max\": 57.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 11.5, \"min\": 2.0, \"max\": 23.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 53.7, \"min\": 43.3, \"max\": 100.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.5, \"min\": 1.1, \"max\": 9.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 16.1, \"min\": 10.7, \"max\": 24.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a15_0799", "family": "compound", "tier": 3, "seed": 1234004501, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "14758dbefa149db6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 52300.0, "surface_area": 12800.0, "principal_moments": [14299999.999999998, 17900000.0, 17900000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 25, "min": 15.0, "max": 40.0, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 26.4, "min": 10.6, "max": 66.0, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 26.7, "min": 13.3, "max": 37.0, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 31.7, "min": 9.5, "max": 79.2, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 16.3, "min": 2.0, "max": 19.2, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004501 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 26.4, \"min\": 10.6, \"max\": 66.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 26.7, \"min\": 13.3, \"max\": 37.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 31.7, \"min\": 9.5, \"max\": 79.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 16.3, \"min\": 2.0, \"max\": 19.2, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a16_0800", "family": "revolved", "tier": 1, "seed": 1234004502, "symmetry": "radial", "op_count": 1, "ir_hash": "2a8c47b507e641f6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 947000.0, "surface_area": 83700.0, "principal_moments": [1660000000.0, 2570000000.0, 2570000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 75.61, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 145.7, "min": 43.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 27.6, "min": 2.0, "max": 52.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 139.6, "min": 90.7, "max": 226.8, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 35.1, "min": 10.5, "max": 72.8, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004502 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75.61, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 145.7, \"min\": 43.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 27.6, \"min\": 2.0, \"max\": 52.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 139.6, \"min\": 90.7, \"max\": 226.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 35.1, \"min\": 10.5, \"max\": 72.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a17_0801", "family": "compound", "tier": 2, "seed": 1234004503, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "3d4f50fc5006315a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5410.0, "surface_area": 2480.0, "principal_moments": [216000.0, 380000.0, 391000.0], "n_faces": 16, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 23.3, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 15.9, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 15.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_a": {"type": "float", "default": 6.0, "min": 3.0, "max": 10.5, "step": 1.0, "group": "Spigot", "label": "Spigot width (mm)"}, "spig_b": {"type": "float", "default": 6.0, "min": 3.0, "max": 10.5, "step": 1.0, "group": "Spigot", "label": "Spigot depth (mm)"}, "spig_len": {"type": "float", "default": 8.0, "min": 1.8, "max": 24.0, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 3.5, "min": 2.0, "max": 4.3, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004503 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 23.3, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 15.9, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 15.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_a\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 10.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot width (mm)'},\n \"spig_b\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 10.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot depth (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 8.0, \"min\": 1.8, \"max\": 24.0, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 3.5, \"min\": 2.0, \"max\": 4.3, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a18_0802", "family": "revolved", "tier": 1, "seed": 1234004504, "symmetry": "none", "op_count": 2, "ir_hash": "1274252006dc15ed", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5060.0, "surface_area": 2510.0, "principal_moments": [376000.0, 376000.0, 569000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 25.87, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 14.9, "min": 4.5, "max": 44.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 15.2, "min": 2.0, "max": 18.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.1, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004504 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25.87, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 14.9, \"min\": 4.5, \"max\": 44.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 15.2, \"min\": 2.0, \"max\": 18.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.1, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6a1a_0804", "family": "enclosure", "tier": 3, "seed": 1234004506, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "95daa739819c1397", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 79300.0, "surface_area": 47400.0, "principal_moments": [61099999.99999999, 125000000.0, 140000000.0], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 106.22, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 43.2, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 69.3, "min": 27.7, "max": 138.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.4, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 9.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004506 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 106.22, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 43.2, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 69.3, \"min\": 27.7, \"max\": 138.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.4, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 9.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.04144931727539882)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6a1c_0806", "family": "gear", "tier": 1, "seed": 1234004508, "symmetry": "none", "op_count": 1, "ir_hash": "c177af5b3e502dfc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5100.0, "surface_area": 3460.0, "principal_moments": [505000.0, 505000.0, 993000.0], "n_faces": 237, "n_edges": 705, "n_vertices": 470}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 39, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 4.4, "min": 1.8, "max": 11.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 6.0, "min": 2.0, "max": 21.9, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004508 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 39, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 4.4, \"min\": 1.8, \"max\": 11.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 21.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6a1d_0807", "family": "plate", "tier": 1, "seed": 1234004509, "symmetry": "none", "op_count": 2, "ir_hash": "93af9a5733806aeb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8780.0, "surface_area": 3620.0, "principal_moments": [546000.0, 1380000.0, 1830000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 42.94, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 26.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004509 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 42.94, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 26.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6a1e_0808", "family": "plate", "tier": 1, "seed": 1234004510, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "6b1faa67ab550812", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42900.0, "surface_area": 11100.0, "principal_moments": [6370000.0, 29099999.999999996, 34500000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 90, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 40.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 9.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004510 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 40.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 9.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a1f_0809", "family": "bracket", "tier": 3, "seed": 1234004511, "symmetry": "none", "op_count": 1, "ir_hash": "9f248778b39851ea", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 52700.0, "surface_area": 16400.0, "principal_moments": [18900000.0, 47599999.99999999, 47999999.99999999], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 75, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 67.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 46.92, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 6.5, "min": 4.0, "max": 23.5, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004511 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 67.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 46.92, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.5, \"min\": 4.0, \"max\": 23.5, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a20_0810", "family": "bracket", "tier": 1, "seed": 1234004512, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "07d492da5f892a27", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21400.0, "surface_area": 15500.0, "principal_moments": [9150000.0, 22899999.999999996, 23099999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 73.73, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 73.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004512 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 73.73, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 73.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a22_0812", "family": "compound", "tier": 1, "seed": 1234004514, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "046c24ac0df6bce3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 91900.0, "surface_area": 13100.0, "principal_moments": [23799999.999999996, 38100000.0, 46799999.99999999], "n_faces": 8, "n_edges": 15, "n_vertices": 10}, "params": {"block_w": {"type": "float", "default": 60.2, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 31.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 46.7, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 14.7, "min": 5.9, "max": 22.3, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 14.9, "min": 4.4, "max": 58.8, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004514 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 60.2, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 31.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 46.7, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 14.7, \"min\": 5.9, \"max\": 22.3, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 14.9, \"min\": 4.4, \"max\": 58.8, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a23_0813", "family": "bracket", "tier": 1, "seed": 1234004515, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8305e23077485399", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22500.0, "surface_area": 10600.0, "principal_moments": [5030000.0, 10800000.0, 13399999.999999998], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 36.46, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 42.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 32.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004515 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 36.46, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 42.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 32.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6a24_0814", "family": "gear", "tier": 2, "seed": 1234004516, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "1af00986f11c656e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4150.0, "surface_area": 2730.0, "principal_moments": [292000.0, 292000.0, 567000.0], "n_faces": 235, "n_edges": 699, "n_vertices": 466}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 29, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.1, "min": 2.0, "max": 12.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 27.6, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": -0.04, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.2, "min": 0.0, "max": 0.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 4.7, "min": 2.0, "max": 15.9, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004516 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 29, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.1, \"min\": 2.0, \"max\": 12.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 27.6, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.04, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.2, \"min\": 0.0, \"max\": 0.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 4.7, \"min\": 2.0, \"max\": 15.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6a25_0815", "family": "plate", "tier": 0, "seed": 1234004517, "symmetry": "radial", "op_count": 1, "ir_hash": "4800ba444d6561ea", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1960.0, "surface_area": 1190.0, "principal_moments": [44400.0, 106000.0, 143000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 25, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 15.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004517 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 15.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6a26_0816", "family": "ribbed", "tier": 1, "seed": 1234004518, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "e3b2dc44a813166d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31600.0, "surface_area": 18200.0, "principal_moments": [15799999.999999998, 22500000.0, 37600000.0], "n_faces": 16, "n_edges": 36, "n_vertices": 24}, "params": {"base_w": {"type": "float", "default": 85.71, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 77.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 12.4, "min": 5.0, "max": 24.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.9, "min": 1.0, "max": 7.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004518 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 85.71, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 77.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 12.4, \"min\": 5.0, \"max\": 24.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.9, \"min\": 1.0, \"max\": 7.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a27_0817", "family": "flanged", "tier": 1, "seed": 1234004519, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3f5fa02e3d10e219", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6350.0, "surface_area": 4780.0, "principal_moments": [765000.0, 765000.0, 1260000.0], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 21.68, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 15.2, "min": 4.6, "max": 38.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 11.1, "min": 2.0, "max": 15.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 47.3, "min": 28.2, "max": 65.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 2.6, "min": 0.8, "max": 6.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 14.2, "min": 9.5, "max": 21.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004519 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 21.68, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 15.2, \"min\": 4.6, \"max\": 38.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 11.1, \"min\": 2.0, \"max\": 15.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 47.3, \"min\": 28.2, \"max\": 65.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 2.6, \"min\": 0.8, \"max\": 6.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 14.2, \"min\": 9.5, \"max\": 21.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a28_0818", "family": "flanged", "tier": 2, "seed": 1234004520, "symmetry": "none", "op_count": 3, "ir_hash": "f840971ca3a20657", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22100.0, "surface_area": 8780.0, "principal_moments": [4250000.0, 4250000.0, 6660000.0], "n_faces": 44, "n_edges": 114, "n_vertices": 67}, "params": {"outer_d": {"type": "float", "default": 35, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 21.0, "min": 6.3, "max": 52.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 15.8, "min": 2.0, "max": 24.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 59.2, "min": 45.5, "max": 105.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.7, "min": 1.1, "max": 8.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 17.8, "min": 11.8, "max": 26.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004520 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 21.0, \"min\": 6.3, \"max\": 52.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 15.8, \"min\": 2.0, \"max\": 24.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 59.2, \"min\": 45.5, \"max\": 105.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.7, \"min\": 1.1, \"max\": 8.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 17.8, \"min\": 11.8, \"max\": 26.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6a2a_0820", "family": "block", "tier": 2, "seed": 1234004522, "symmetry": "none", "op_count": 3, "ir_hash": "366b67d6cf6dd3bb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 148000.0, "surface_area": 21900.0, "principal_moments": [60499999.99999999, 94199999.99999999, 136000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 28.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 83.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004522 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 28.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 83.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.11473538814338366)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6a2c_0822", "family": "plate", "tier": 1, "seed": 1234004524, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "6f489333bee096f8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6660.0, "surface_area": 3770.0, "principal_moments": [291000.0, 2070000.0, 2330000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 61.48, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 22.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004524 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 61.48, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 22.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6a2d_0823", "family": "profiled", "tier": 1, "seed": 1234004525, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "dda448b533e18d9b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4860.0, "surface_area": 3240.0, "principal_moments": [147000.0, 679000.0, 679000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 14.23, "min": 7.1, "max": 28.5, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 45.8, "min": 13.7, "max": 137.4, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004525 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 14.23, \"min\": 7.1, \"max\": 28.5, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 45.8, \"min\": 13.7, \"max\": 137.4, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6a2e_0824", "family": "gear", "tier": 3, "seed": 1234004526, "symmetry": "none", "op_count": 1, "ir_hash": "b570305fd1bb4695", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 913.0, "surface_area": 927.0, "principal_moments": [15400.0, 15400.0, 22100.0], "n_faces": 109, "n_edges": 318, "n_vertices": 212}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 13, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.1, "min": 2.4, "max": 15.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": 0.42, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.29, "min": 0.0, "max": 0.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 3.0, "min": 2.0, "max": 6.3, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}, "hub_d": {"type": "float", "default": 5.4, "min": 4.2, "max": 6.5, "step": 1.0, "group": "Hub", "label": "Hub diameter (mm)"}, "hub_h": {"type": "float", "default": 4.2, "min": 1.3, "max": 8.4, "step": 0.5, "group": "Hub", "label": "Hub height (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004526 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 13, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.1, \"min\": 2.4, \"max\": 15.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.42, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.29, \"min\": 0.0, \"max\": 0.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 6.3, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n \"hub_d\": {\"type\": 'float', \"default\": 5.4, \"min\": 4.2, \"max\": 6.5, \"step\": 1.0, \"group\": 'Hub', \"label\": 'Hub diameter (mm)'},\n \"hub_h\": {\"type\": 'float', \"default\": 4.2, \"min\": 1.3, \"max\": 8.4, \"step\": 0.5, \"group\": 'Hub', \"label\": 'Hub height (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"hub_d\"] / 2).extrude(p[\"hub_h\"])\n )\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a2f_0825", "family": "revolved", "tier": 0, "seed": 1234004527, "symmetry": "radial", "op_count": 1, "ir_hash": "8b79b562f42b86a9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19500.0, "surface_area": 6670.0, "principal_moments": [2630000.0, 3280000.0, 3280000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 30, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 41.3, "min": 12.4, "max": 123.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004527 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 41.3, \"min\": 12.4, \"max\": 123.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6a30_0826", "family": "enclosure", "tier": 2, "seed": 1234004528, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "8166761babd51912", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30900.0, "surface_area": 14100.0, "principal_moments": [9930000.0, 10900000.0, 13499999.999999998], "n_faces": 27, "n_edges": 84, "n_vertices": 56}, "params": {"enc_w": {"type": "float", "default": 45, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 41.3, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 35.4, "min": 14.2, "max": 70.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 9.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004528 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 45, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 41.3, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 35.4, \"min\": 14.2, \"max\": 70.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 9.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.06498994301069547)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6a31_0827", "family": "block", "tier": 2, "seed": 1234004529, "symmetry": "radial", "op_count": 3, "ir_hash": "ef9acc6ca854fa00", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4010.0, "surface_area": 2710.0, "principal_moments": [138000.0, 377000.0, 414000.0], "n_faces": 36, "n_edges": 102, "n_vertices": 68}, "params": {"block_w": {"type": "float", "default": 30, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 12.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 16.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 9.0, "min": 6.0, "max": 13.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004529 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 12.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 16.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 9.0, \"min\": 6.0, \"max\": 13.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.057091526871710735)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a32_0828", "family": "revolved", "tier": 2, "seed": 1234004530, "symmetry": "none", "op_count": 1, "ir_hash": "4167d20cd6a60f8c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1090000.0, "surface_area": 94700.0, "principal_moments": [919000000.0, 6660000000.0, 6660000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 77.63, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 261.9, "min": 78.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 27.4, "min": 2.0, "max": 54.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004530 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 77.63, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 261.9, \"min\": 78.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 27.4, \"min\": 2.0, \"max\": 54.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6a34_0830", "family": "gear", "tier": 0, "seed": 1234004532, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "06e05685be99b372", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 965000.0, "surface_area": 93100.0, "principal_moments": [2080000000.0, 2080000000.0, 3930000000.0], "n_faces": 182, "n_edges": 540, "n_vertices": 360}, "params": {"module": {"type": "float", "default": 6.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 30, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 38.3, "min": 15.3, "max": 95.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004532 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 6.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 30, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 38.3, \"min\": 15.3, \"max\": 95.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a35_0831", "family": "bracket", "tier": 2, "seed": 1234004533, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ebc1a86e32d7c44c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9270.0, "surface_area": 7200.0, "principal_moments": [1470000.0, 6430000.0, 7090000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 75, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 49.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 23.69, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 9.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 2.4, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004533 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 49.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 23.69, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 9.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.4, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6a36_0832", "family": "block", "tier": 1, "seed": 1234004534, "symmetry": "none", "op_count": 2, "ir_hash": "019c54093cf4da3a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4890.0, "surface_area": 4150.0, "principal_moments": [203000.0, 502000.0, 642000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 20, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 8.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 34.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 0.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004534 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 8.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 34.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 0.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 3.8\n _ssy = 4.2\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a37_0833", "family": "bracket", "tier": 3, "seed": 1234004535, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "c71ea0503115f18f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31300.0, "surface_area": 17200.0, "principal_moments": [10900000.0, 74000000.0, 81100000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 28.68, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 71.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 5.8, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004535 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 28.68, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 71.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6a38_0834", "family": "enclosure", "tier": 2, "seed": 1234004536, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "b269aec4b5ac9710", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 46900.0, "surface_area": 35600.0, "principal_moments": [28899999.999999996, 48799999.99999999, 59699999.99999999], "n_faces": 19, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 85.76, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 34.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 65.6, "min": 26.2, "max": 131.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.7, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 7.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004536 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 85.76, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 34.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 65.6, \"min\": 26.2, \"max\": 131.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.7, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 7.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a39_0835", "family": "revolved", "tier": 1, "seed": 1234004537, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "5fee9b574348f0ae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 594000.0, "surface_area": 76000.0, "principal_moments": [493000000.0, 1730000000.0, 1730000000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 74.4, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 205.1, "min": 61.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.1, "min": 0.1, "max": 3.3, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004537 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 74.4, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 205.1, \"min\": 61.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.1, \"min\": 0.1, \"max\": 3.3, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08713999510749657)\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6a3b_0837", "family": "ribbed", "tier": 2, "seed": 1234004539, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "2256fdf3b7cdd537", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12000.0, "surface_area": 10300.0, "principal_moments": [1480000.0, 1840000.0, 2410000.0], "n_faces": 50, "n_edges": 144, "n_vertices": 96}, "params": {"base_w": {"type": "float", "default": 40, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 34.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.1, "min": 6.4, "max": 32.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 7.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004539 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 34.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.1, \"min\": 6.4, \"max\": 32.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 7.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6a3c_0838", "family": "gear", "tier": 0, "seed": 1234004540, "symmetry": "none", "op_count": 1, "ir_hash": "d3b1e717040ac477", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3920.0, "surface_area": 2310.0, "principal_moments": [202000.0, 202000.0, 375000.0], "n_faces": 134, "n_edges": 396, "n_vertices": 264}, "params": {"module": {"type": "float", "default": 1.25, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 22, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.7, "min": 2.7, "max": 16.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004540 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.25, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 22, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.7, \"min\": 2.7, \"max\": 16.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a3d_0839", "family": "compound", "tier": 1, "seed": 1234004541, "symmetry": "none", "op_count": 2, "ir_hash": "7191ff083c16a26b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 81700.0, "surface_area": 13500.0, "principal_moments": [20400000.0, 31999999.999999996, 37300000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 60, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 31.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 43.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 16.1, "min": 6.4, "max": 30.4, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 13.7, "min": 4.8, "max": 64.4, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 8.5, "min": 2.0, "max": 11.6, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004541 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 60, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 31.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 43.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 16.1, \"min\": 6.4, \"max\": 30.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 13.7, \"min\": 4.8, \"max\": 64.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 8.5, \"min\": 2.0, \"max\": 11.6, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6a40_0842", "family": "enclosure", "tier": 1, "seed": 1234004544, "symmetry": "none", "op_count": 2, "ir_hash": "e1f739c5f4c78f10", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 62400.0, "surface_area": 48700.0, "principal_moments": [59399999.99999999, 79700000.0, 102000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 90, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 43.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 81.2, "min": 32.5, "max": 162.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004544 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 90, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 43.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 81.2, \"min\": 32.5, \"max\": 162.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6a41_0843", "family": "plate", "tier": 1, "seed": 1234004545, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "1a2610b8f5e08c15", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7700.0, "surface_area": 3480.0, "principal_moments": [300000.0, 1600000.0, 1820000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 20.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004545 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 20.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a42_0844", "family": "bracket", "tier": 2, "seed": 1234004546, "symmetry": "none", "op_count": 1, "ir_hash": "fdf4261ef05f197c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6440.0, "surface_area": 4940.0, "principal_moments": [715000.0, 2490000.0, 2820000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 43.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.5, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004546 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 43.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a43_0845", "family": "revolved", "tier": 1, "seed": 1234004547, "symmetry": "none", "op_count": 1, "ir_hash": "5ce8c606d6148c39", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12600.0, "surface_area": 5580.0, "principal_moments": [1210000.0, 1960000.0, 1960000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 19.02, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 43.3, "min": 13.0, "max": 129.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 32.0, "min": 22.8, "max": 57.1, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.5, "min": 2.5, "max": 21.6, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004547 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 19.02, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 43.3, \"min\": 13.0, \"max\": 129.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 32.0, \"min\": 22.8, \"max\": 57.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.5, \"min\": 2.5, \"max\": 21.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a44_0846", "family": "bracket", "tier": 2, "seed": 1234004548, "symmetry": "none", "op_count": 1, "ir_hash": "091dd4eea015c1fe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38100.0, "surface_area": 15000.0, "principal_moments": [13299999.999999998, 27999999.999999996, 29799999.999999996], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 62.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.5, "min": 3.0, "max": 18.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004548 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 62.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.5, \"min\": 3.0, \"max\": 18.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6a45_0847", "family": "threaded", "tier": 1, "seed": 1234004549, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "9ef330afe6075a7d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 509.0, "surface_area": 646.0, "principal_moments": [1890.0, 21800.0, 21800.0], "n_faces": 230, "n_edges": 588, "n_vertices": 360}, "params": {"major_d": {"type": "float", "default": 6.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.0, "min": 0.5, "max": 2.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 22.3, "min": 8.9, "max": 44.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004549 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.5, \"max\": 2.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 22.3, \"min\": 8.9, \"max\": 44.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6a46_0848", "family": "threaded", "tier": 1, "seed": 1234004550, "symmetry": "none", "op_count": 1, "ir_hash": "1f62b88161bfbb26", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2740.0, "surface_area": 2050.0, "principal_moments": [28800.0, 417000.0, 417000.0], "n_faces": 290, "n_edges": 744, "n_vertices": 456}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 42.2, "min": 16.9, "max": 84.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004550 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 42.2, \"min\": 16.9, \"max\": 84.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6a47_0849", "family": "plate", "tier": 2, "seed": 1234004551, "symmetry": "radial", "op_count": 3, "ir_hash": "d3813171abcdb227", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 40300.0, "surface_area": 11900.0, "principal_moments": [7340000.0, 28599999.999999996, 35200000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 91.38, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 46.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 27.4, "min": 18.3, "max": 41.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004551 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 91.38, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 46.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 27.4, \"min\": 18.3, \"max\": 41.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08218981456606059)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a48_0850", "family": "revolved", "tier": 2, "seed": 1234004552, "symmetry": "none", "op_count": 2, "ir_hash": "66c9eb7a49704afe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6490.0, "surface_area": 2980.0, "principal_moments": [546000.0, 546000.0, 672000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 25, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 20.2, "min": 6.1, "max": 60.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 14.3, "min": 2.0, "max": 17.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 1.2, "min": 0.1, "max": 3.6, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004552 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 20.2, \"min\": 6.1, \"max\": 60.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 14.3, \"min\": 2.0, \"max\": 17.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.2, \"min\": 0.1, \"max\": 3.6, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a4a_0852", "family": "flanged", "tier": 2, "seed": 1234004554, "symmetry": "none", "op_count": 3, "ir_hash": "c88db199a2c88f9c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 174000.0, "surface_area": 37000.0, "principal_moments": [130000000.0, 180000000.0, 180000000.0], "n_faces": 44, "n_edges": 114, "n_vertices": 67}, "params": {"outer_d": {"type": "float", "default": 55, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 81.4, "min": 24.4, "max": 203.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 30.1, "min": 2.0, "max": 38.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 97.5, "min": 71.5, "max": 165.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.4, "min": 2.5, "max": 32.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 29.2, "min": 19.5, "max": 43.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004554 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 81.4, \"min\": 24.4, \"max\": 203.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 30.1, \"min\": 2.0, \"max\": 38.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 97.5, \"min\": 71.5, \"max\": 165.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.5, \"max\": 32.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 29.2, \"min\": 19.5, \"max\": 43.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"head_sides\"], p[\"head_r\"] * 2).extrude(p[\"head_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a4e_0856", "family": "flanged", "tier": 1, "seed": 1234004558, "symmetry": "none", "op_count": 2, "ir_hash": "05946f05fd6bf785", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 81000.0, "surface_area": 21000.0, "principal_moments": [34900000.0, 46699999.99999999, 46699999.99999999], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 40, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 60.0, "min": 18.0, "max": 150.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 18.2, "min": 2.0, "max": 28.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 77.4, "min": 52.0, "max": 120.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.4, "min": 1.9, "max": 24.0, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 23.2, "min": 15.5, "max": 34.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004558 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 60.0, \"min\": 18.0, \"max\": 150.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 18.2, \"min\": 2.0, \"max\": 28.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 77.4, \"min\": 52.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.4, \"min\": 1.9, \"max\": 24.0, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 23.2, \"min\": 15.5, \"max\": 34.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6a4f_0857", "family": "plate", "tier": 1, "seed": 1234004559, "symmetry": "none", "op_count": 2, "ir_hash": "0f632ff913a32dc6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2390.0, "surface_area": 2460.0, "principal_moments": [64500.0, 497000.0, 558000.0], "n_faces": 70, "n_edges": 204, "n_vertices": 136}, "params": {"plate_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 17.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.4, "min": 2.0, "max": 2.8, "step": 0.1, "group": "Holes", "label": "Square hole size (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004559 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 17.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 2.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(13.3, 4.7, p[\"hole_nx\"], p[\"hole_ny\"])\n .rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6a50_0858", "family": "block", "tier": 2, "seed": 1234004560, "symmetry": "none", "op_count": 3, "ir_hash": "b8d1d5467d89d47d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18200.0, "surface_area": 8890.0, "principal_moments": [1720000.0, 5070000.0, 6270000.0], "n_faces": 27, "n_edges": 72, "n_vertices": 48}, "params": {"block_w": {"type": "float", "default": 30, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 12.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 57.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.4, "min": 2.0, "max": 3.7, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "pocket_w": {"type": "float", "default": 15.2, "min": 7.6, "max": 24.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 7.0, "min": 3.5, "max": 10.2, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 23.0, "min": 9.2, "max": 49.1, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004560 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 12.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 57.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 3.7, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 15.2, \"min\": 7.6, \"max\": 24.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 7.0, \"min\": 3.5, \"max\": 10.2, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 23.0, \"min\": 9.2, \"max\": 49.1, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a51_0859", "family": "flanged", "tier": 2, "seed": 1234004561, "symmetry": "none", "op_count": 2, "ir_hash": "5a46411f636830bc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1150000.0, "surface_area": 131000.0, "principal_moments": [2870000000.0, 3730000000.0, 3730000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 98.8, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 139.8, "min": 41.9, "max": 349.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 37.3, "min": 2.0, "max": 69.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 209.9, "min": 128.4, "max": 296.4, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.8, "min": 2.6, "max": 55.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 63.0, "min": 42.0, "max": 94.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004561 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 98.8, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 139.8, \"min\": 41.9, \"max\": 349.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 37.3, \"min\": 2.0, \"max\": 69.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 209.9, \"min\": 128.4, \"max\": 296.4, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.8, \"min\": 2.6, \"max\": 55.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 63.0, \"min\": 42.0, \"max\": 94.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a52_0860", "family": "compound", "tier": 2, "seed": 1234004562, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "45560185f421f4cd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31200.0, "surface_area": 9070.0, "principal_moments": [7140000.0, 7140000.0, 7500000.0], "n_faces": 21, "n_edges": 54, "n_vertices": 36}, "params": {"base_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 24.09, "min": 14.5, "max": 38.5, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 15.8, "min": 6.3, "max": 39.5, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 24.4, "min": 12.2, "max": 35.6, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 25.4, "min": 7.6, "max": 63.5, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 14.3, "min": 2.0, "max": 17.6, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004562 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 24.09, \"min\": 14.5, \"max\": 38.5, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 15.8, \"min\": 6.3, \"max\": 39.5, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 24.4, \"min\": 12.2, \"max\": 35.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 25.4, \"min\": 7.6, \"max\": 63.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 14.3, \"min\": 2.0, \"max\": 17.6, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_r\"], p[\"base_r\"]) * 0.10098298132895267)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6a53_0861", "family": "plate", "tier": 1, "seed": 1234004563, "symmetry": "radial", "op_count": 2, "ir_hash": "7eacffc0b92ef2e9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29800.0, "surface_area": 12100.0, "principal_moments": [7820000.0, 20300000.0, 27999999.999999996], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 90, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 55.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 27.0, "min": 18.0, "max": 40.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004563 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 55.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 27.0, \"min\": 18.0, \"max\": 40.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a54_0862", "family": "revolved", "tier": 0, "seed": 1234004564, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "d4455a8de2e2771b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 107000.0, "surface_area": 25400.0, "principal_moments": [25699999.999999996, 116000000.0, 116000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 40, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 127.7, "min": 38.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004564 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 127.7, \"min\": 38.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6a55_0863", "family": "block", "tier": 2, "seed": 1234004565, "symmetry": "none", "op_count": 3, "ir_hash": "41a2233a1c1e6412", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 395000.0, "surface_area": 48000.0, "principal_moments": [327000000.0, 393000000.0, 542000000.0], "n_faces": 21, "n_edges": 57, "n_vertices": 36}, "params": {"block_w": {"type": "float", "default": 95.14, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 51.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 84.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "boss_d": {"type": "float", "default": 22.2, "min": 11.1, "max": 44.4, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 9.0, "min": 3.6, "max": 22.5, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 15.5, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004565 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 95.14, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 51.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 84.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"boss_d\": {\"type\": 'float', \"default\": 22.2, \"min\": 11.1, \"max\": 44.4, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 9.0, \"min\": 3.6, \"max\": 22.5, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 15.5, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 17.8\n _ssy = 19.2\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6a56_0864", "family": "gear", "tier": 1, "seed": 1234004566, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "d94f2286320f1ec8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3520.0, "surface_area": 2260.0, "principal_moments": [178000.0, 178000.0, 332000.0], "n_faces": 165, "n_edges": 489, "n_vertices": 326}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 27, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.4, "min": 2.6, "max": 16.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 4.5, "min": 2.0, "max": 14.7, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004566 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 27, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.6, \"max\": 16.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 4.5, \"min\": 2.0, \"max\": 14.7, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a57_0865", "family": "bracket", "tier": 1, "seed": 1234004567, "symmetry": "none", "op_count": 1, "ir_hash": "2c74aaea95fc4797", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 63700.0, "surface_area": 19500.0, "principal_moments": [30699999.999999996, 71700000.0, 73300000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 74.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004567 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 74.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6a59_0867", "family": "gear", "tier": 3, "seed": 1234004569, "symmetry": "none", "op_count": 1, "ir_hash": "4eb8f1a581c0f364", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35200.0, "surface_area": 13500.0, "principal_moments": [12199999.999999998, 12199999.999999998, 23699999.999999996], "n_faces": 227, "n_edges": 672, "n_vertices": 448}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 37, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 8.1, "min": 3.2, "max": 20.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 15.7, "min": 2.0, "max": 41.4, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}, "hub_d": {"type": "float", "default": 28.3, "min": 22.0, "max": 37.0, "step": 1.0, "group": "Hub", "label": "Hub diameter (mm)"}, "hub_h": {"type": "float", "default": 5.7, "min": 1.7, "max": 11.4, "step": 0.5, "group": "Hub", "label": "Hub height (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004569 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 37, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 8.1, \"min\": 3.2, \"max\": 20.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 15.7, \"min\": 2.0, \"max\": 41.4, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n \"hub_d\": {\"type\": 'float', \"default\": 28.3, \"min\": 22.0, \"max\": 37.0, \"step\": 1.0, \"group\": 'Hub', \"label\": 'Hub diameter (mm)'},\n \"hub_h\": {\"type\": 'float', \"default\": 5.7, \"min\": 1.7, \"max\": 11.4, \"step\": 0.5, \"group\": 'Hub', \"label\": 'Hub height (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.CycloidGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"hub_d\"] / 2).extrude(p[\"hub_h\"])\n )\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a5a_0868", "family": "revolved", "tier": 2, "seed": 1234004570, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "c0e20c8a67f0e1d1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 47300.0, "surface_area": 13800.0, "principal_moments": [6680000.0, 35200000.0, 35200000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 30, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 90.0, "min": 27.0, "max": 270.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 15.2, "min": 2.0, "max": 21.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 1.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004570 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 90.0, \"min\": 27.0, \"max\": 270.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 15.2, \"min\": 2.0, \"max\": 21.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 1.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6a5d_0871", "family": "block", "tier": 1, "seed": 1234004573, "symmetry": "none", "op_count": 2, "ir_hash": "df479d0db6fe3c91", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 73100.0, "surface_area": 15000.0, "principal_moments": [20100000.0, 24299999.999999996, 36800000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 52.32, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 25.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 58.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 7.4, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004573 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 52.32, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 25.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 58.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 7.4, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a5e_0872", "family": "flanged", "tier": 1, "seed": 1234004574, "symmetry": "none", "op_count": 2, "ir_hash": "93653f8269a8ae87", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 347000.0, "surface_area": 58900.0, "principal_moments": [474000000.0, 474000000.0, 517000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 65.82, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 78.4, "min": 23.5, "max": 196.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 22.5, "min": 2.0, "max": 46.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 149.5, "min": 85.6, "max": 197.5, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.0, "min": 2.4, "max": 31.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 44.9, "min": 29.9, "max": 67.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004574 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65.82, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 78.4, \"min\": 23.5, \"max\": 196.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 22.5, \"min\": 2.0, \"max\": 46.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 149.5, \"min\": 85.6, \"max\": 197.5, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.4, \"max\": 31.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 44.9, \"min\": 29.9, \"max\": 67.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a5f_0873", "family": "compound", "tier": 1, "seed": 1234004575, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "0cd5b833b2836bfa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38000.0, "surface_area": 8180.0, "principal_moments": [5980000.0, 8610000.0, 11100000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 35.62, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 46.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 23.2, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 10.6, "min": 4.2, "max": 16.2, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 9.4, "min": 3.2, "max": 42.4, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 5.7, "min": 2.0, "max": 7.6, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004575 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35.62, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 46.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 23.2, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 10.6, \"min\": 4.2, \"max\": 16.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 9.4, \"min\": 3.2, \"max\": 42.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.0, \"max\": 7.6, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6a60_0874", "family": "block", "tier": 2, "seed": 1234004576, "symmetry": "none", "op_count": 3, "ir_hash": "f76a2d5514a17ebc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 88400.0, "surface_area": 16900.0, "principal_moments": [26199999.999999996, 33499999.999999996, 46499999.99999999], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 60.53, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 29.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 51.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 11.5, "min": 5.8, "max": 23.0, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 7.7, "min": 3.1, "max": 19.2, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 8.0, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004576 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 60.53, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 29.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 51.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 11.5, \"min\": 5.8, \"max\": 23.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 7.7, \"min\": 3.1, \"max\": 19.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a61_0875", "family": "flanged", "tier": 1, "seed": 1234004577, "symmetry": "radial", "op_count": 2, "ir_hash": "9b36eacbf3cedd60", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 786000.0, "surface_area": 106000.0, "principal_moments": [1960000000.0, 1960000000.0, 2560000000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 90, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 95.2, "min": 28.6, "max": 238.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 43.8, "min": 2.0, "max": 63.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 202.2, "min": 117.0, "max": 270.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 12.6, "min": 3.8, "max": 38.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 60.7, "min": 40.4, "max": 91.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004577 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 95.2, \"min\": 28.6, \"max\": 238.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 43.8, \"min\": 2.0, \"max\": 63.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 202.2, \"min\": 117.0, \"max\": 270.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 12.6, \"min\": 3.8, \"max\": 38.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 60.7, \"min\": 40.4, \"max\": 91.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a62_0876", "family": "bracket", "tier": 2, "seed": 1234004578, "symmetry": "none", "op_count": 1, "ir_hash": "10692780a71f38e5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 46900.0, "surface_area": 24900.0, "principal_moments": [19400000.0, 89500000.0, 90300000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 70.43, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 75.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 52.52, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 70.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004578 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70.43, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 75.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 52.52, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 70.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6a63_0877", "family": "profiled", "tier": 1, "seed": 1234004579, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "36329f9b558a4236", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35700.0, "surface_area": 6670.0, "principal_moments": [3350000.0, 12799999.999999998, 12799999.999999998], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"circ_r": {"type": "float", "default": 15, "min": 7.5, "max": 30.0, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 61.1, "min": 18.3, "max": 183.3, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004579 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 15, \"min\": 7.5, \"max\": 30.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 61.1, \"min\": 18.3, \"max\": 183.3, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a64_0878", "family": "bracket", "tier": 2, "seed": 1234004580, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "a3bd2c3daca4b33a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26800.0, "surface_area": 12400.0, "principal_moments": [8880000.0, 11599999.999999998, 13599999.999999998], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 36.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 49.54, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.7, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004580 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 36.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 49.54, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.7, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a65_0879", "family": "revolved", "tier": 1, "seed": 1234004581, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "51aa776644baea8e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 184000.0, "surface_area": 35900.0, "principal_moments": [65899999.99999999, 270000000.0, 270000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 48.85, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 147.3, "min": 44.2, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004581 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 48.85, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 147.3, \"min\": 44.2, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a66_0880", "family": "compound", "tier": 1, "seed": 1234004582, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "0f2112bea5f892f5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 84500.0, "surface_area": 13500.0, "principal_moments": [26299999.999999996, 27299999.999999996, 29999999.999999996], "n_faces": 24, "n_edges": 63, "n_vertices": 41}, "params": {"block_w": {"type": "float", "default": 46.44, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 40.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 45.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 5.5, "min": 2.8, "max": 9.1, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 8.1, "min": 2.4, "max": 28.6, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 4.8, "min": 2.0, "max": 6.9, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004582 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 46.44, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 40.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 45.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.8, \"max\": 9.1, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 8.1, \"min\": 2.4, \"max\": 28.6, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 4.8, \"min\": 2.0, \"max\": 6.9, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a68_0882", "family": "bracket", "tier": 2, "seed": 1234004584, "symmetry": "none", "op_count": 1, "ir_hash": "7721abc50ee872d1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14100.0, "surface_area": 8430.0, "principal_moments": [2640000.0, 11399999.999999998, 12799999.999999998], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 82.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 55.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 24.15, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 9.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.8, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004584 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 82.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 55.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 24.15, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 9.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6a69_0883", "family": "block", "tier": 1, "seed": 1234004585, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "44ea8f751ba7129a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 109000.0, "surface_area": 17400.0, "principal_moments": [33700000.0, 47699999.99999999, 59399999.99999999], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 34.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 63.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004585 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 34.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 63.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 18.8\n _ssy = 20.1\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6a6a_0884", "family": "block", "tier": 1, "seed": 1234004586, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "d835c5f7be0054c3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 168000.0, "surface_area": 20500.0, "principal_moments": [69100000.0, 98299999.99999999, 104000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 69.05, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 51.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 47.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 11.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004586 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 69.05, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 51.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 47.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 11.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a6b_0885", "family": "compound", "tier": 3, "seed": 1234004587, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "4c1c9cd7fed13b18", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 102000.0, "surface_area": 15300.0, "principal_moments": [12999999.999999998, 159000000.0, 159000000.0], "n_faces": 13, "n_edges": 26, "n_vertices": 17}, "params": {"shaft_d": {"type": "float", "default": 35, "min": 17.5, "max": 63.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 73.1, "min": 29.2, "max": 146.2, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 24.6, "min": 12.3, "max": 31.5, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 59.0, "min": 17.7, "max": 147.5, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "head_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Head", "label": "Drive head sides"}, "head_r": {"type": "float", "default": 10.7, "min": 6.4, "max": 11.8, "step": 1.0, "group": "Head", "label": "Drive head circumradius (mm)"}, "head_len": {"type": "float", "default": 13.1, "min": 3.9, "max": 26.2, "step": 1.0, "group": "Head", "label": "Drive head length (mm)"}, "chamfer_d": {"type": "float", "default": 1.4, "min": 0.5, "max": 3.0, "step": 0.5, "group": "Body", "label": "Chamfer distance (mm)"}, "chamfered": {"type": "bool", "default": true, "group": "Body", "label": "Chamfer edges"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004587 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 35, \"min\": 17.5, \"max\": 63.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 73.1, \"min\": 29.2, \"max\": 146.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 24.6, \"min\": 12.3, \"max\": 31.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 59.0, \"min\": 17.7, \"max\": 147.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"head_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Head', \"label\": 'Drive head sides'},\n \"head_r\": {\"type\": 'float', \"default\": 10.7, \"min\": 6.4, \"max\": 11.8, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head circumradius (mm)'},\n \"head_len\": {\"type\": 'float', \"default\": 13.1, \"min\": 3.9, \"max\": 26.2, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head length (mm)'},\n \"chamfer_d\": {\"type\": 'float', \"default\": 1.4, \"min\": 0.5, \"max\": 3.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Chamfer distance (mm)'},\n \"chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Chamfer edges'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"head_sides\"], p[\"head_r\"] * 2).extrude(p[\"head_len\"])\n )\n if p[\"chamfered\"]:\n result = result.edges('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a6d_0887", "family": "bracket", "tier": 1, "seed": 1234004589, "symmetry": "none", "op_count": 1, "ir_hash": "cb774cb618abfa3b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21600.0, "surface_area": 15600.0, "principal_moments": [8960000.0, 17400000.0, 21400000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 75.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 47.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 60.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004589 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 47.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 60.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.0486569968624746)\n if p[\"chamfered\"]:\n result = result.edges('>Z').chamfer(p[\"chamfer_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6a71_0891", "family": "enclosure", "tier": 2, "seed": 1234004593, "symmetry": "none", "op_count": 4, "ir_hash": "8bfbf1fcfc665b1b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 77100.0, "surface_area": 36000.0, "principal_moments": [48799999.99999999, 96399999.99999999, 98499999.99999999], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 90.49, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 48.3, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 55.1, "min": 22.0, "max": 110.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.4, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 10.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004593 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 90.49, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 48.3, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 55.1, \"min\": 22.0, \"max\": 110.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.4, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 10.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.04756541360473409)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a72_0892", "family": "revolved", "tier": 2, "seed": 1234004594, "symmetry": "none", "op_count": 1, "ir_hash": "bd39a3128eb9f2c1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 135000.0, "surface_area": 20800.0, "principal_moments": [73700000.0, 73700000.0, 86700000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 65, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 52.0, "min": 15.6, "max": 156.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 30.5, "min": 2.0, "max": 45.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004594 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 52.0, \"min\": 15.6, \"max\": 156.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 30.5, \"min\": 2.0, \"max\": 45.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a73_0893", "family": "compound", "tier": 1, "seed": 1234004595, "symmetry": "none", "op_count": 3, "ir_hash": "fa1fd4dbe36925ff", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 57400.0, "surface_area": 10300.0, "principal_moments": [10400000.0, 18600000.0, 20900000.0], "n_faces": 14, "n_edges": 34, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 36.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 28.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 6.0, "min": 2.4, "max": 13.0, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 5.2, "min": 1.5, "max": 18.0, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 2.7, "min": 2.0, "max": 4.3, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004595 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 36.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 28.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.4, \"max\": 13.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 5.2, \"min\": 1.5, \"max\": 18.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 2.7, \"min\": 2.0, \"max\": 4.3, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6a77_0897", "family": "enclosure", "tier": 1, "seed": 1234004599, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "6c152176e6f752b5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35500.0, "surface_area": 26800.0, "principal_moments": [17500000.0, 25699999.999999996, 33299999.999999996], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 71.27, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 29.9, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 60.2, "min": 24.1, "max": 120.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.7, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004599 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 71.27, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 29.9, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 60.2, \"min\": 24.1, \"max\": 120.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.7, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6a78_0898", "family": "block", "tier": 2, "seed": 1234004600, "symmetry": "radial", "op_count": 3, "ir_hash": "71510197215d642d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 144000.0, "surface_area": 24800.0, "principal_moments": [75600000.0, 81100000.0, 134000000.0], "n_faces": 21, "n_edges": 54, "n_vertices": 36}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 29.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 78.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 21.0, "min": 14.0, "max": 31.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "pocket_w": {"type": "float", "default": 34.6, "min": 17.3, "max": 56.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 16.7, "min": 8.3, "max": 23.8, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 28.6, "min": 11.4, "max": 66.6, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004600 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 29.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 78.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 21.0, \"min\": 14.0, \"max\": 31.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"pocket_w\": {\"type\": 'float', \"default\": 34.6, \"min\": 17.3, \"max\": 56.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 16.7, \"min\": 8.3, \"max\": 23.8, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 28.6, \"min\": 11.4, \"max\": 66.6, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6a79_0899", "family": "ribbed", "tier": 1, "seed": 1234004601, "symmetry": "none", "op_count": 2, "ir_hash": "784b05dec5117785", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 47200.0, "surface_area": 17300.0, "principal_moments": [12299999.999999998, 27899999.999999996, 37000000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 49.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.5, "min": 6.6, "max": 33.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.4, "min": 1.0, "max": 6.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004601 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 49.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.5, \"min\": 6.6, \"max\": 33.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.4, \"min\": 1.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a7a_0900", "family": "flanged", "tier": 3, "seed": 1234004602, "symmetry": "radial", "op_count": 2, "ir_hash": "dc4a706ed89d8f4b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12900.0, "surface_area": 6680.0, "principal_moments": [1920000.0, 1920000.0, 3220000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 25, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 16.5, "min": 5.0, "max": 41.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 7.8, "min": 2.0, "max": 17.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 54.9, "min": 32.5, "max": 75.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.1, "min": 0.9, "max": 6.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 16.5, "min": 11.0, "max": 24.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004602 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 16.5, \"min\": 5.0, \"max\": 41.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 7.8, \"min\": 2.0, \"max\": 17.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 54.9, \"min\": 32.5, \"max\": 75.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.1, \"min\": 0.9, \"max\": 6.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 16.5, \"min\": 11.0, \"max\": 24.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6a7b_0901", "family": "block", "tier": 1, "seed": 1234004603, "symmetry": "none", "op_count": 2, "ir_hash": "51fcaef8fde9f51e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 120000.0, "surface_area": 19200.0, "principal_moments": [38300000.0, 68200000.0, 90000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 28.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 77.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004603 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 28.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 77.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6a7c_0902", "family": "profiled", "tier": 2, "seed": 1234004604, "symmetry": "none", "op_count": 1, "ir_hash": "fc992943caf898c5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4110.0, "surface_area": 3280.0, "principal_moments": [63200.0, 1620000.0, 1620000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 10, "min": 5.0, "max": 20.0, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 68.0, "min": 20.4, "max": 204.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 4.8, "min": 2.0, "max": 8.0, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004604 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 10, \"min\": 5.0, \"max\": 20.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 68.0, \"min\": 20.4, \"max\": 204.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 4.8, \"min\": 2.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a7d_0903", "family": "flanged", "tier": 1, "seed": 1234004605, "symmetry": "none", "op_count": 2, "ir_hash": "3f055c945f0c5311", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 207000.0, "surface_area": 42200.0, "principal_moments": [182000000.0, 209000000.0, 209000000.0], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 65, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 76.0, "min": 22.8, "max": 190.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 35.2, "min": 2.0, "max": 45.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 108.9, "min": 84.5, "max": 195.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.3, "min": 1.6, "max": 30.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 32.7, "min": 21.8, "max": 49.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004605 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 76.0, \"min\": 22.8, \"max\": 190.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 35.2, \"min\": 2.0, \"max\": 45.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 108.9, \"min\": 84.5, \"max\": 195.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.3, \"min\": 1.6, \"max\": 30.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 32.7, \"min\": 21.8, \"max\": 49.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6a7e_0904", "family": "threaded", "tier": 2, "seed": 1234004606, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "2fe92a011a88eed4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4930.0, "surface_area": 3030.0, "principal_moments": [251000.0, 403000.0, 403000.0], "n_faces": 143, "n_edges": 515, "n_vertices": 374}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 26.1, "min": 10.4, "max": 52.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004606 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 26.1, \"min\": 10.4, \"max\": 52.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6a7f_0905", "family": "ribbed", "tier": 2, "seed": 1234004607, "symmetry": "none", "op_count": 2, "ir_hash": "28fe8aaf8f4d80f8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25500.0, "surface_area": 10500.0, "principal_moments": [4530000.0, 7330000.0, 10500000.0], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 41.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 11.6, "min": 4.6, "max": 23.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.8, "min": 1.0, "max": 14.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004607 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 41.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 11.6, \"min\": 4.6, \"max\": 23.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.8, \"min\": 1.0, \"max\": 14.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6a80_0906", "family": "plate", "tier": 3, "seed": 1234004608, "symmetry": "radial", "op_count": 4, "ir_hash": "9a9c53bd3ab21f7e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13500.0, "surface_area": 9720.0, "principal_moments": [4530000.0, 6290000.0, 10800000.0], "n_faces": 33, "n_edges": 108, "n_vertices": 72}, "params": {"plate_w": {"type": "float", "default": 70, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 59.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 21.0, "min": 14.0, "max": 31.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "pocket_w": {"type": "float", "default": 42.0, "min": 21.0, "max": 56.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 37.4, "min": 18.7, "max": 47.8, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 1.7, "min": 0.7, "max": 3.4, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004608 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 59.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 21.0, \"min\": 14.0, \"max\": 31.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"pocket_w\": {\"type\": 'float', \"default\": 42.0, \"min\": 21.0, \"max\": 56.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 37.4, \"min\": 18.7, \"max\": 47.8, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 1.7, \"min\": 0.7, \"max\": 3.4, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.06582421229981134)\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a81_0907", "family": "compound", "tier": 2, "seed": 1234004609, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "aa476d6189c30b5d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29100.0, "surface_area": 9780.0, "principal_moments": [8180000.0, 11200000.0, 11599999.999999998], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"base_w": {"type": "float", "default": 60, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 46.0, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 10.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 9.8, "min": 3.9, "max": 23.0, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 49.6, "min": 14.9, "max": 148.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 10.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004609 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 60, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 46.0, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 10.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 9.8, \"min\": 3.9, \"max\": 23.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 49.6, \"min\": 14.9, \"max\": 148.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 10.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6a82_0908", "family": "block", "tier": 1, "seed": 1234004610, "symmetry": "none", "op_count": 2, "ir_hash": "5ca2e6c70d77d3db", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 60000.0, "surface_area": 15000.0, "principal_moments": [11599999.999999998, 28599999.999999996, 36600000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 45, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 19.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 73.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004610 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 19.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 73.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6a83_0909", "family": "threaded", "tier": 1, "seed": 1234004611, "symmetry": "none", "op_count": 1, "ir_hash": "1eddd7e48999bf3c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2420.0, "surface_area": 1830.0, "principal_moments": [25400.0, 290000.0, 290000.0], "n_faces": 255, "n_edges": 655, "n_vertices": 402}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 37.3, "min": 14.9, "max": 74.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004611 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 37.3, \"min\": 14.9, \"max\": 74.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6a84_0910", "family": "enclosure", "tier": 2, "seed": 1234004612, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "fe0593484baa2d27", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 69100.0, "surface_area": 63800.0, "principal_moments": [97899999.99999999, 146000000.0, 203000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 120.0, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 89.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 52.9, "min": 21.2, "max": 105.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004612 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 120.0, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 89.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 52.9, \"min\": 21.2, \"max\": 105.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a85_0911", "family": "compound", "tier": 1, "seed": 1234004613, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "99d7ea495c59a96c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 70600.0, "surface_area": 13200.0, "principal_moments": [20700000.0, 22000000.0, 23199999.999999996], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 40, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 40.7, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 43.2, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 15.6, "min": 6.2, "max": 28.5, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 24.9, "min": 4.7, "max": 62.4, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 9.4, "min": 2.0, "max": 11.2, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004613 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 40.7, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 43.2, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 15.6, \"min\": 6.2, \"max\": 28.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 24.9, \"min\": 4.7, \"max\": 62.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 9.4, \"min\": 2.0, \"max\": 11.2, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a87_0913", "family": "compound", "tier": 1, "seed": 1234004615, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "911189f2c65e0d55", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 203000.0, "surface_area": 29200.0, "principal_moments": [84700000.0, 163000000.0, 171000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 80.0, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 52.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 47.7, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 45.1, "min": 18.0, "max": 72.2, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 37.7, "min": 15.1, "max": 60.3, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 8.3, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004615 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80.0, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 52.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 47.7, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 45.1, \"min\": 18.0, \"max\": 72.2, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 37.7, \"min\": 15.1, \"max\": 60.3, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 8.3, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6a89_0915", "family": "plate", "tier": 1, "seed": 1234004617, "symmetry": "none", "op_count": 2, "ir_hash": "92f285ae131c24c0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14400.0, "surface_area": 5080.0, "principal_moments": [838000.0, 4460000.0, 5060000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 24.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.3, "min": 2.0, "max": 2.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004617 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 24.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.3, \"min\": 2.0, \"max\": 2.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 15.0\n _ssy = 15.6\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6a8a_0916", "family": "threaded", "tier": 2, "seed": 1234004618, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "257e5f453c72703b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21500.0, "surface_area": 6130.0, "principal_moments": [2310000.0, 2990000.0, 3000000.0], "n_faces": 70, "n_edges": 172, "n_vertices": 104}, "params": {"thread_size": {"type": "enum", "default": "1 1/4", "choices": ["1/4", "5/16", "3/8", "1/2", "5/8", "3/4", "7/8", "1", "1 1/4", "1 1/2"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 32.6, "min": 13.0, "max": 65.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004618 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '1 1/4', \"choices\": ['1/4', '5/16', '3/8', '1/2', '5/8', '3/4', '7/8', '1', '1 1/4', '1 1/2'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 32.6, \"min\": 13.0, \"max\": 65.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.AcmeThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a8b_0917", "family": "revolved", "tier": 1, "seed": 1234004619, "symmetry": "radial", "op_count": 1, "ir_hash": "54d4d23b55840bbf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 417000.0, "surface_area": 40700.0, "principal_moments": [319000000.0, 552000000.0, 552000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 74.56, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 106.3, "min": 31.9, "max": 318.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 23.7, "min": 2.0, "max": 52.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004619 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 74.56, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 106.3, \"min\": 31.9, \"max\": 318.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 23.7, \"min\": 2.0, \"max\": 52.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a8c_0918", "family": "flanged", "tier": 1, "seed": 1234004620, "symmetry": "none", "op_count": 2, "ir_hash": "99e73572c94b2c04", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 48200.0, "surface_area": 17000.0, "principal_moments": [20600000.0, 20600000.0, 23799999.999999996], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 33.26, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 43.7, "min": 13.1, "max": 109.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.7, "min": 2.0, "max": 23.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 78.1, "min": 43.2, "max": 99.8, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.4, "min": 1.6, "max": 17.5, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 23.4, "min": 15.6, "max": 35.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004620 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 33.26, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 43.7, \"min\": 13.1, \"max\": 109.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.7, \"min\": 2.0, \"max\": 23.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 78.1, \"min\": 43.2, \"max\": 99.8, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.4, \"min\": 1.6, \"max\": 17.5, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 23.4, \"min\": 15.6, \"max\": 35.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6a8d_0919", "family": "threaded", "tier": 1, "seed": 1234004621, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "05813d03d12a008f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21900.0, "surface_area": 8480.0, "principal_moments": [2870000.0, 5250000.0, 5250000.0], "n_faces": 356, "n_edges": 1024, "n_vertices": 670}, "params": {"major_d": {"type": "float", "default": 16.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.0, "min": 1.0, "max": 4.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 45.8, "min": 18.3, "max": 91.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004621 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 4.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 45.8, \"min\": 18.3, \"max\": 91.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6a8e_0920", "family": "enclosure", "tier": 1, "seed": 1234004622, "symmetry": "none", "op_count": 2, "ir_hash": "b0625828b9332b32", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6930.0, "surface_area": 6520.0, "principal_moments": [849000.0, 1150000.0, 1560000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 35, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 15.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 31.0, "min": 12.4, "max": 62.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004622 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 35, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 15.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 31.0, \"min\": 12.4, \"max\": 62.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a8f_0921", "family": "compound", "tier": 2, "seed": 1234004623, "symmetry": "mirror_x", "op_count": 5, "ir_hash": "b61eddcd93721c86", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 72700.0, "surface_area": 15500.0, "principal_moments": [18000000.0, 25399999.999999996, 32299999.999999996], "n_faces": 21, "n_edges": 49, "n_vertices": 31}, "params": {"block_w": {"type": "float", "default": 56.22, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 45.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 30.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 9.9, "min": 4.0, "max": 13.5, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 10.4, "min": 2.5, "max": 29.7, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 5.3, "min": 2.0, "max": 7.1, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 10.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004623 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 56.22, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 45.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 30.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 9.9, \"min\": 4.0, \"max\": 13.5, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 10.4, \"min\": 2.5, \"max\": 29.7, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 7.1, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 10.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6a90_0922", "family": "threaded", "tier": 1, "seed": 1234004624, "symmetry": "none", "op_count": 1, "ir_hash": "736299bc59c611ae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1920.0, "surface_area": 1780.0, "principal_moments": [12900.0, 352000.0, 352000.0], "n_faces": 380, "n_edges": 978, "n_vertices": 600}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 46.6, "min": 18.6, "max": 93.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004624 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 46.6, \"min\": 18.6, \"max\": 93.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6a91_0923", "family": "gear", "tier": 0, "seed": 1234004625, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "7bdd27439b5ada10", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2910.0, "surface_area": 1900.0, "principal_moments": [123000.0, 123000.0, 229000.0], "n_faces": 152, "n_edges": 450, "n_vertices": 300}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 25, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.0, "min": 2.4, "max": 15.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004625 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 25, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.4, \"max\": 15.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a92_0924", "family": "bracket", "tier": 1, "seed": 1234004626, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "a4968fb3b05edf9a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14500.0, "surface_area": 8810.0, "principal_moments": [4930000.0, 6870000.0, 10300000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 52.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004626 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 52.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a93_0925", "family": "bracket", "tier": 2, "seed": 1234004627, "symmetry": "none", "op_count": 1, "ir_hash": "16e8e3f3adc66819", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31800.0, "surface_area": 14800.0, "principal_moments": [13999999.999999998, 16499999.999999998, 18100000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 49.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 48.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.4, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004627 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 49.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 48.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.4, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6a94_0926", "family": "threaded", "tier": 2, "seed": 1234004628, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ae42731ed83ae457", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 244.0, "surface_area": 375.0, "principal_moments": [634.0, 5020.0, 5020.0], "n_faces": 200, "n_edges": 510, "n_vertices": 312}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 15.3, "min": 6.1, "max": 30.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004628 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 15.3, \"min\": 6.1, \"max\": 30.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a95_0927", "family": "flanged", "tier": 2, "seed": 1234004629, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "60a1ea436f8531b6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 227000.0, "surface_area": 46000.0, "principal_moments": [230000000.0, 230000000.0, 344000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 60, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 51.9, "min": 15.6, "max": 129.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 18.9, "min": 2.0, "max": 42.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 140.9, "min": 78.0, "max": 180.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.5, "min": 2.2, "max": 20.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 42.3, "min": 28.2, "max": 63.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004629 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 51.9, \"min\": 15.6, \"max\": 129.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 18.9, \"min\": 2.0, \"max\": 42.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 140.9, \"min\": 78.0, \"max\": 180.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.5, \"min\": 2.2, \"max\": 20.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 42.3, \"min\": 28.2, \"max\": 63.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6a96_0928", "family": "profiled", "tier": 2, "seed": 1234004630, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "23715fd7b582f67f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42700.0, "surface_area": 19000.0, "principal_moments": [2720000.0, 94699999.99999999, 94699999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 20.6, "min": 10.3, "max": 41.2, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 192.0, "min": 57.6, "max": 576.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004630 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 20.6, \"min\": 10.3, \"max\": 41.2, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 192.0, \"min\": 57.6, \"max\": 576.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a97_0929", "family": "bracket", "tier": 1, "seed": 1234004631, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "05843e6f4bc98fca", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 40000.0, "surface_area": 22000.0, "principal_moments": [15899999.999999998, 67500000.0, 70200000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 79.15, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 61.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 52.82, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 56.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004631 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 79.15, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 61.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 52.82, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 56.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6a98_0930", "family": "plate", "tier": 2, "seed": 1234004632, "symmetry": "none", "op_count": 3, "ir_hash": "0c125406ab7035eb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10800.0, "surface_area": 5880.0, "principal_moments": [1080000.0, 3790000.0, 4830000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"plate_w": {"type": "float", "default": 65.04, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 34.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004632 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 65.04, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 34.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(17.3, 13.8, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.055001856297831365)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a99_0931", "family": "flanged", "tier": 2, "seed": 1234004633, "symmetry": "none", "op_count": 2, "ir_hash": "a50418220f3d6d91", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 322000.0, "surface_area": 55600.0, "principal_moments": [411000000.0, 411000000.0, 660000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 80.61, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 52.8, "min": 15.8, "max": 132.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 42.3, "min": 2.0, "max": 56.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 149.0, "min": 104.8, "max": 241.8, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 10.4, "min": 3.1, "max": 21.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 44.7, "min": 29.8, "max": 67.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004633 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 80.61, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 52.8, \"min\": 15.8, \"max\": 132.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 42.3, \"min\": 2.0, \"max\": 56.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 149.0, \"min\": 104.8, \"max\": 241.8, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 10.4, \"min\": 3.1, \"max\": 21.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 44.7, \"min\": 29.8, \"max\": 67.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6a9a_0932", "family": "threaded", "tier": 1, "seed": 1234004634, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "4df3b2b7536d160d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7690.0, "surface_area": 4530.0, "principal_moments": [391000.0, 1250000.0, 1250000.0], "n_faces": 223, "n_edges": 815, "n_vertices": 594}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 40.7, "min": 16.3, "max": 81.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004634 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 40.7, \"min\": 16.3, \"max\": 81.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6a9b_0933", "family": "profiled", "tier": 1, "seed": 1234004635, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "357ae9376b371840", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15400.0, "surface_area": 9290.0, "principal_moments": [530000.0, 15099999.999999998, 15099999.999999998], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 15.17, "min": 7.6, "max": 30.3, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 127.4, "min": 38.2, "max": 382.2, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004635 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 15.17, \"min\": 7.6, \"max\": 30.3, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 127.4, \"min\": 38.2, \"max\": 382.2, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a9d_0935", "family": "revolved", "tier": 2, "seed": 1234004637, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3869334b63d0d470", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1790000.0, "surface_area": 163000.0, "principal_moments": [3970000000.0, 15600000000.0, 15600000000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 79.47, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 298.0, "min": 89.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 46.2, "min": 2.0, "max": 55.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 150.0, "min": 95.4, "max": 238.4, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 64.1, "min": 19.2, "max": 149.0, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.1, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004637 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 79.47, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 298.0, \"min\": 89.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 46.2, \"min\": 2.0, \"max\": 55.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 150.0, \"min\": 95.4, \"max\": 238.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 64.1, \"min\": 19.2, \"max\": 149.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.1, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6a9f_0937", "family": "gear", "tier": 2, "seed": 1234004639, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ce80ec7b36d3b0ab", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4740.0, "surface_area": 2570.0, "principal_moments": [240000.0, 240000.0, 411000.0], "n_faces": 139, "n_edges": 411, "n_vertices": 274}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 17, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 9.4, "min": 3.8, "max": 23.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": 0.1, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.36, "min": 0.0, "max": 0.75, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 3.3, "min": 2.0, "max": 13.0, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004639 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 17, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 9.4, \"min\": 3.8, \"max\": 23.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.1, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.36, \"min\": 0.0, \"max\": 0.75, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 3.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6aa0_0938", "family": "revolved", "tier": 2, "seed": 1234004640, "symmetry": "none", "op_count": 2, "ir_hash": "26d11818966cbdc2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 132000.0, "surface_area": 25000.0, "principal_moments": [52699999.99999999, 122000000.0, 122000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 50, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 93.1, "min": 27.9, "max": 279.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 26.3, "min": 2.0, "max": 35.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.5, "min": 0.1, "max": 1.5, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004640 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 93.1, \"min\": 27.9, \"max\": 279.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 26.3, \"min\": 2.0, \"max\": 35.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.5, \"min\": 0.1, \"max\": 1.5, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6aa4_0942", "family": "plate", "tier": 1, "seed": 1234004644, "symmetry": "radial", "op_count": 2, "ir_hash": "3f4390d35971db45", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 46100.0, "surface_area": 12600.0, "principal_moments": [8890000.0, 38800000.0, 46899999.99999999], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 100, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 46.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 30.0, "min": 20.0, "max": 45.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004644 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 100, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 46.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 30.0, \"min\": 20.0, \"max\": 45.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6aa5_0943", "family": "flanged", "tier": 1, "seed": 1234004645, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "0b9beb0425939667", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 63800.0, "surface_area": 22500.0, "principal_moments": [32399999.999999996, 32399999.999999996, 49099999.99999999], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 44.49, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 35.7, "min": 10.7, "max": 89.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 24.4, "min": 2.0, "max": 31.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 97.3, "min": 57.8, "max": 133.5, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.5, "min": 1.3, "max": 14.3, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 29.2, "min": 19.5, "max": 43.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004645 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 44.49, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 35.7, \"min\": 10.7, \"max\": 89.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 24.4, \"min\": 2.0, \"max\": 31.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 97.3, \"min\": 57.8, \"max\": 133.5, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.3, \"max\": 14.3, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 29.2, \"min\": 19.5, \"max\": 43.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6aa7_0945", "family": "revolved", "tier": 2, "seed": 1234004647, "symmetry": "radial", "op_count": 2, "ir_hash": "341e9e4a05d5c0a4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 72600.0, "surface_area": 18400.0, "principal_moments": [21200000.0, 61499999.99999999, 61499999.99999999], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 30.2, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 86.5, "min": 25.9, "max": 259.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 15.5, "min": 2.0, "max": 21.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 58.5, "min": 36.2, "max": 90.6, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 13.8, "min": 4.1, "max": 43.2, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.2, "min": 0.1, "max": 3.6, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004647 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30.2, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 86.5, \"min\": 25.9, \"max\": 259.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 15.5, \"min\": 2.0, \"max\": 21.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 58.5, \"min\": 36.2, \"max\": 90.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 13.8, \"min\": 4.1, \"max\": 43.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.2, \"min\": 0.1, \"max\": 3.6, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cskHole(p[\"hole_d\"], p[\"hole_d\"] * 2, p[\"cs_angle\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.1059982634221816)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6aaa_0948", "family": "block", "tier": 2, "seed": 1234004650, "symmetry": "none", "op_count": 3, "ir_hash": "ec84c341bedc2be1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25100.0, "surface_area": 7330.0, "principal_moments": [2850000.0, 4780000.0, 6240000.0], "n_faces": 42, "n_edges": 120, "n_vertices": 80}, "params": {"block_w": {"type": "float", "default": 45, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 18.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 32.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 5.4, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004650 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 18.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 32.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 5.4, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.05308582438092925)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6aab_0949", "family": "revolved", "tier": 0, "seed": 1234004651, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "d743649fdb8b9f2e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 185000.0, "surface_area": 38800.0, "principal_moments": [56299999.99999999, 365000000.0, 365000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 45, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 174.9, "min": 52.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004651 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 174.9, \"min\": 52.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6aac_0950", "family": "ribbed", "tier": 1, "seed": 1234004652, "symmetry": "none", "op_count": 2, "ir_hash": "135d0de4b997ec98", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8750.0, "surface_area": 5070.0, "principal_moments": [847000.0, 1130000.0, 1340000.0], "n_faces": 21, "n_edges": 48, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 31.61, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 27.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 15.3, "min": 6.1, "max": 30.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.0, "min": 1.0, "max": 7.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004652 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 31.61, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 27.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 15.3, \"min\": 6.1, \"max\": 30.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 7.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6aad_0951", "family": "plate", "tier": 1, "seed": 1234004653, "symmetry": "radial", "op_count": 2, "ir_hash": "63b5e0af9b26edd1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6050.0, "surface_area": 3840.0, "principal_moments": [419000.0, 1310000.0, 1710000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 49.21, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 29.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 14.8, "min": 9.8, "max": 22.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004653 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 49.21, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 29.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 14.8, \"min\": 9.8, \"max\": 22.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6aae_0952", "family": "block", "tier": 2, "seed": 1234004654, "symmetry": "radial", "op_count": 3, "ir_hash": "e8ecd7ca4b8f0504", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 402000.0, "surface_area": 56100.0, "principal_moments": [441000000.0, 456000000.0, 676000000.0], "n_faces": 31, "n_edges": 102, "n_vertices": 68}, "params": {"block_w": {"type": "float", "default": 94.32, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 53.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 28.3, "min": 18.9, "max": 42.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "pocket_w": {"type": "float", "default": 57.4, "min": 28.7, "max": 75.5, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 30.7, "min": 15.3, "max": 42.8, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 54.9, "min": 22.0, "max": 85.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004654 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 94.32, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 53.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 28.3, \"min\": 18.9, \"max\": 42.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"pocket_w\": {\"type\": 'float', \"default\": 57.4, \"min\": 28.7, \"max\": 75.5, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 30.7, \"min\": 15.3, \"max\": 42.8, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 54.9, \"min\": 22.0, \"max\": 85.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6aaf_0953", "family": "compound", "tier": 1, "seed": 1234004655, "symmetry": "none", "op_count": 3, "ir_hash": "8bb9b09ee1586354", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 83900.0, "surface_area": 14900.0, "principal_moments": [25499999.999999996, 26099999.999999996, 35100000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 49.86, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 46.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 34.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 44.3, "min": 17.7, "max": 70.9, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 22.9, "min": 9.2, "max": 36.6, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.0, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004655 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 49.86, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 46.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 34.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 44.3, \"min\": 17.7, \"max\": 70.9, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 22.9, \"min\": 9.2, \"max\": 36.6, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.0, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6ab1_0955", "family": "bracket", "tier": 1, "seed": 1234004657, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "511f082dc2e60847", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23200.0, "surface_area": 11400.0, "principal_moments": [5330000.0, 33099999.999999996, 35900000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 69.89, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 72.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25.61, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 48.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004657 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 69.89, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 72.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25.61, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 48.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6ab2_0956", "family": "plate", "tier": 1, "seed": 1234004658, "symmetry": "none", "op_count": 2, "ir_hash": "1d75e391059472f3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41300.0, "surface_area": 10500.0, "principal_moments": [6430000.0, 24499999.999999996, 29899999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 83.87, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 41.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 9.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004658 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 83.87, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 41.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 9.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6ab3_0957", "family": "revolved", "tier": 1, "seed": 1234004659, "symmetry": "none", "op_count": 1, "ir_hash": "398534eb083890a7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 105000.0, "surface_area": 21200.0, "principal_moments": [39600000.0, 59999999.99999999, 59999999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 50.07, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 80.2, "min": 24.1, "max": 240.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004659 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50.07, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 80.2, \"min\": 24.1, \"max\": 240.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6ab4_0958", "family": "block", "tier": 1, "seed": 1234004660, "symmetry": "radial", "op_count": 2, "ir_hash": "791a87ee2f31d6a1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 249000.0, "surface_area": 27100.0, "principal_moments": [157000000.0, 169000000.0, 256000000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 80.18, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 40.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 76.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.1, "min": 16.0, "max": 36.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004660 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80.18, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 40.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 76.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.1, \"min\": 16.0, \"max\": 36.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6ab5_0959", "family": "compound", "tier": 3, "seed": 1234004661, "symmetry": "none", "op_count": 7, "ir_hash": "01396f67d61c2fba", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31600.0, "surface_area": 7740.0, "principal_moments": [4570000.0, 5760000.0, 7150000.0], "n_faces": 30, "n_edges": 70, "n_vertices": 44}, "params": {"block_w": {"type": "float", "default": 39.56, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 33.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 24.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 5.0, "min": 2.0, "max": 11.0, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 4.0, "min": 1.2, "max": 15.0, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 2.8, "min": 2.0, "max": 3.6, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 7.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004661 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 39.56, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 33.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 24.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 11.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.2, \"max\": 15.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 2.8, \"min\": 2.0, \"max\": 3.6, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 7.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.06732308652983927)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6ab7_0961", "family": "threaded", "tier": 1, "seed": 1234004663, "symmetry": "none", "op_count": 1, "ir_hash": "3c753188c62f37e9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 366.0, "surface_area": 545.0, "principal_moments": [2960.0, 5840.0, 5840.0], "n_faces": 143, "n_edges": 387, "n_vertices": 246}, "params": {"major_d": {"type": "float", "default": 4.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.7, "min": 0.35, "max": 1.4, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 12.0, "min": 5.0, "max": 24.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004663 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.35, \"max\": 1.4, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 12.0, \"min\": 5.0, \"max\": 24.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6ab8_0962", "family": "revolved", "tier": 1, "seed": 1234004664, "symmetry": "none", "op_count": 2, "ir_hash": "a963cdba9eb50ae0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 703000.0, "surface_area": 63000.0, "principal_moments": [507000000.0, 2300000000.0, 2300000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 72.68, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 186.8, "min": 56.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 22.2, "min": 2.0, "max": 50.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.1, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004664 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 72.68, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 186.8, \"min\": 56.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 22.2, \"min\": 2.0, \"max\": 50.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.1, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6abb_0965", "family": "compound", "tier": 2, "seed": 1234004667, "symmetry": "none", "op_count": 3, "ir_hash": "e6b03934940fe815", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6810.0, "surface_area": 3110.0, "principal_moments": [453000.0, 643000.0, 643000.0], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 13.46, "min": 8.1, "max": 21.5, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 12.1, "min": 4.8, "max": 30.2, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 10.6, "min": 5.3, "max": 18.7, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 20.9, "min": 6.3, "max": 52.2, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 5.3, "min": 2.0, "max": 7.6, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004667 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 13.46, \"min\": 8.1, \"max\": 21.5, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 12.1, \"min\": 4.8, \"max\": 30.2, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 10.6, \"min\": 5.3, \"max\": 18.7, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 20.9, \"min\": 6.3, \"max\": 52.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 7.6, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_r\"], p[\"base_r\"]) * 0.05965997285509247)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6abc_0966", "family": "ribbed", "tier": 2, "seed": 1234004668, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "ca57fe201954200a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25000.0, "surface_area": 14900.0, "principal_moments": [7650000.0, 19400000.0, 25899999.999999996], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 85.39, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 54.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 15.3, "min": 6.1, "max": 30.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.1, "min": 1.0, "max": 7.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004668 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 85.39, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 54.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 15.3, \"min\": 6.1, \"max\": 30.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.1, \"min\": 1.0, \"max\": 7.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6abd_0967", "family": "plate", "tier": 1, "seed": 1234004669, "symmetry": "radial", "op_count": 2, "ir_hash": "cc7ee843ec087a98", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61300.0, "surface_area": 16100.0, "principal_moments": [14199999.999999998, 74000000.0, 87200000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"plate_w": {"type": "float", "default": 120.0, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 51.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 36.0, "min": 24.0, "max": 54.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004669 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 120.0, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 51.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 36.0, \"min\": 24.0, \"max\": 54.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6abe_0968", "family": "bracket", "tier": 3, "seed": 1234004670, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "33146bb25cdafa46", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 121000.0, "surface_area": 35400.0, "principal_moments": [135000000.0, 179000000.0, 242000000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 60.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 6.8, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004670 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 60.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.8, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6abf_0969", "family": "bracket", "tier": 1, "seed": 1234004671, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "3819ad385a5e739d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38000.0, "surface_area": 12800.0, "principal_moments": [12999999.999999998, 44100000.0, 51399999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 77.74, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004671 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 77.74, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6ac1_0971", "family": "revolved", "tier": 2, "seed": 1234004673, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "7f9d0953267ec35e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3860.0, "surface_area": 2120.0, "principal_moments": [267000.0, 267000.0, 467000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 26.93, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 10.2, "min": 3.1, "max": 30.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 15.6, "min": 2.0, "max": 18.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004673 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 26.93, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 10.2, \"min\": 3.1, \"max\": 30.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 15.6, \"min\": 2.0, \"max\": 18.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6ac2_0972", "family": "block", "tier": 2, "seed": 1234004674, "symmetry": "radial", "op_count": 3, "ir_hash": "c0660ef0206337de", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32000.0, "surface_area": 7940.0, "principal_moments": [4840000.0, 6510000.0, 7260000.0], "n_faces": 20, "n_edges": 54, "n_vertices": 36}, "params": {"block_w": {"type": "float", "default": 40, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 27.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 32.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 12.0, "min": 8.0, "max": 18.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004674 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 27.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 32.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 12.0, \"min\": 8.0, \"max\": 18.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.07237619740052864)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6ac3_0973", "family": "plate", "tier": 2, "seed": 1234004675, "symmetry": "none", "op_count": 3, "ir_hash": "f4aef21386dcb86b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 76300.0, "surface_area": 17300.0, "principal_moments": [36800000.0, 47299999.99999999, 82200000.0], "n_faces": 17, "n_edges": 45, "n_vertices": 30}, "params": {"plate_w": {"type": "float", "default": 85.81, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 75.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004675 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 85.81, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 75.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 21.5\n _ssy = 18.2\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09539374720635595)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6ac4_0974", "family": "gear", "tier": 3, "seed": 1234004676, "symmetry": "none", "op_count": 1, "ir_hash": "e42177410c7c7c57", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1720.0, "surface_area": 1480.0, "principal_moments": [62900.0, 62900.0, 121000.0], "n_faces": 371, "n_edges": 945, "n_vertices": 576}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 23, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 4.2, "min": 1.7, "max": 10.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 10.1, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": -0.04, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.16, "min": 0.0, "max": 0.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 12.3, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004676 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 23, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 4.2, \"min\": 1.7, \"max\": 10.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 10.1, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.04, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.16, \"min\": 0.0, \"max\": 0.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 12.3, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=True, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6ac6_0976", "family": "bracket", "tier": 2, "seed": 1234004678, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "9ae3f881c9afd232", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19500.0, "surface_area": 11800.0, "principal_moments": [14599999.999999998, 20000000.0, 33299999.999999996], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 74.88, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 83.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.5, "min": 2.0, "max": 10.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004678 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 74.88, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 83.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.5, \"min\": 2.0, \"max\": 10.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6ac7_0977", "family": "ribbed", "tier": 1, "seed": 1234004679, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "26ae76963c960e93", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 44800.0, "surface_area": 19600.0, "principal_moments": [12399999.999999998, 20300000.0, 27899999.999999996], "n_faces": 46, "n_edges": 112, "n_vertices": 68}, "params": {"base_w": {"type": "float", "default": 70, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 41.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 19.3, "min": 7.7, "max": 38.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.6, "min": 1.0, "max": 14.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004679 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 41.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 19.3, \"min\": 7.7, \"max\": 38.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 1.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6ac8_0978", "family": "bracket", "tier": 1, "seed": 1234004680, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "1ef4255de3cb3996", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28400.0, "surface_area": 16100.0, "principal_moments": [15599999.999999998, 20500000.0, 28099999.999999996], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 57.91, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 62.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40.94, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004680 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 57.91, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 62.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40.94, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6aca_0980", "family": "gear", "tier": 0, "seed": 1234004682, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "607c6de09f6a448c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9270.0, "surface_area": 3950.0, "principal_moments": [776000.0, 776000.0, 1360000.0], "n_faces": 68, "n_edges": 198, "n_vertices": 132}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 11, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 11.3, "min": 4.5, "max": 28.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004682 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 11, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 11.3, \"min\": 4.5, \"max\": 28.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6acb_0981", "family": "plate", "tier": 0, "seed": 1234004683, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "24bb7012a3e9e54b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1020.0, "surface_area": 1210.0, "principal_moments": [25900.0, 75300.0, 100000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 29.62, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 17.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004683 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 29.62, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 17.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6acc_0982", "family": "bracket", "tier": 3, "seed": 1234004684, "symmetry": "none", "op_count": 1, "ir_hash": "5347848bfaf492ed", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33100.0, "surface_area": 18600.0, "principal_moments": [26099999.999999996, 34800000.0, 54399999.99999999], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 73.31, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 81.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.9, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004684 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 73.31, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 81.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6acd_0983", "family": "plate", "tier": 3, "seed": 1234004685, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "c6e7fe973bd4e381", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 46200.0, "surface_area": 18100.0, "principal_moments": [18700000.0, 49299999.99999999, 67800000.0], "n_faces": 26, "n_edges": 60, "n_vertices": 36}, "params": {"plate_w": {"type": "float", "default": 115, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 70.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "chamfer_d": {"type": "float", "default": 1.4, "min": 0.5, "max": 3.0, "step": 0.5, "group": "Body", "label": "Chamfer distance (mm)"}, "chamfered": {"type": "bool", "default": true, "group": "Body", "label": "Chamfer edges"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004685 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 115, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 70.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"chamfer_d\": {\"type\": 'float', \"default\": 1.4, \"min\": 0.5, \"max\": 3.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Chamfer distance (mm)'},\n \"chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Chamfer edges'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.06660308287540306)\n if p[\"chamfered\"]:\n result = result.edges('>Z').chamfer(p[\"chamfer_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6ace_0984", "family": "flanged", "tier": 1, "seed": 1234004686, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "2150602c30661637", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23400.0, "surface_area": 9620.0, "principal_moments": [5050000.0, 5050000.0, 7450000.0], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 34.34, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 24.5, "min": 7.3, "max": 61.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.9, "min": 2.0, "max": 24.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 59.3, "min": 44.6, "max": 103.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.3, "min": 1.3, "max": 9.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 17.8, "min": 11.9, "max": 26.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004686 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 34.34, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 24.5, \"min\": 7.3, \"max\": 61.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.9, \"min\": 2.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 59.3, \"min\": 44.6, \"max\": 103.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.3, \"min\": 1.3, \"max\": 9.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 17.8, \"min\": 11.9, \"max\": 26.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6acf_0985", "family": "flanged", "tier": 1, "seed": 1234004687, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "74cc5b05f62eccd9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 71900.0, "surface_area": 23200.0, "principal_moments": [37600000.0, 37600000.0, 65399999.99999999], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 45, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 27.9, "min": 8.4, "max": 69.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.5, "min": 2.0, "max": 31.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 104.6, "min": 58.5, "max": 135.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.8, "min": 1.4, "max": 11.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 31.4, "min": 20.9, "max": 47.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004687 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 27.9, \"min\": 8.4, \"max\": 69.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.5, \"min\": 2.0, \"max\": 31.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 104.6, \"min\": 58.5, \"max\": 135.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.8, \"min\": 1.4, \"max\": 11.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 31.4, \"min\": 20.9, \"max\": 47.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6ad2_0988", "family": "plate", "tier": 1, "seed": 1234004690, "symmetry": "none", "op_count": 2, "ir_hash": "bd2bffcdb7935db0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5260.0, "surface_area": 3060.0, "principal_moments": [167000.0, 1420000.0, 1560000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 57.04, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 19.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004690 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 57.04, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 19.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6ad3_0989", "family": "plate", "tier": 0, "seed": 1234004691, "symmetry": "radial", "op_count": 1, "ir_hash": "90ab9c83aef23d46", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42100.0, "surface_area": 11300.0, "principal_moments": [5850000.0, 39900000.0, 45100000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 106.25, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 39.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004691 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 106.25, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 39.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6ad4_0990", "family": "block", "tier": 1, "seed": 1234004692, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "8a48a8f0e40c8ea2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 414000.0, "surface_area": 36800.0, "principal_moments": [307000000.0, 439000000.0, 489000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 95, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 61.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 71.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004692 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 95, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 61.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 71.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6ad5_0991", "family": "bracket", "tier": 1, "seed": 1234004693, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "84270dfee91bbd59", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42100.0, "surface_area": 13500.0, "principal_moments": [15399999.999999998, 18700000.0, 21000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 45.41, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 46.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 43.03, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004693 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45.41, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 46.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 43.03, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6ad6_0992", "family": "bracket", "tier": 2, "seed": 1234004694, "symmetry": "none", "op_count": 1, "ir_hash": "04915e9673ed1842", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12700.0, "surface_area": 6570.0, "principal_moments": [2320000.0, 3560000.0, 4460000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 38.79, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 35.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25.72, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 6.7, "min": 2.5, "max": 12.9, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004694 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 38.79, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 35.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25.72, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.7, \"min\": 2.5, \"max\": 12.9, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6ad7_0993", "family": "revolved", "tier": 0, "seed": 1234004695, "symmetry": "radial", "op_count": 1, "ir_hash": "2e847720704cb345", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14700.0, "surface_area": 6430.0, "principal_moments": [1070000.0, 3470000.0, 3470000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 22.0, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 58.0, "min": 17.4, "max": 174.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004695 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 22.0, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 58.0, \"min\": 17.4, \"max\": 174.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6ad8_0994", "family": "bracket", "tier": 2, "seed": 1234004696, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "dfd8bde2678a64a3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22800.0, "surface_area": 11300.0, "principal_moments": [4950000.0, 30399999.999999996, 32999999.999999996], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 69.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 47.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 4.1, "min": 2.5, "max": 12.5, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004696 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 69.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 47.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.1, \"min\": 2.5, \"max\": 12.5, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6ad9_0995", "family": "plate", "tier": 2, "seed": 1234004697, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "108214bf4999fcee", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37400.0, "surface_area": 12200.0, "principal_moments": [5470000.0, 40500000.0, 45599999.99999999], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 114.6, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 41.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 9.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004697 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 114.6, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 41.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 9.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.10873049820791014)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6ada_0996", "family": "revolved", "tier": 0, "seed": 1234004698, "symmetry": "none", "op_count": 1, "ir_hash": "c4c53f679dbb0fb1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11200.0, "surface_area": 5390.0, "principal_moments": [674000.0, 2250000.0, 2250000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 20, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 53.6, "min": 16.1, "max": 160.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004698 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 20, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 53.6, \"min\": 16.1, \"max\": 160.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6adb_0997", "family": "ribbed", "tier": 1, "seed": 1234004699, "symmetry": "none", "op_count": 2, "ir_hash": "9ff4a153a2c1d0f5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19500.0, "surface_area": 9520.0, "principal_moments": [3490000.0, 7890000.0, 10600000.0], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 62.96, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 42.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 13.5, "min": 5.4, "max": 27.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.6, "min": 1.0, "max": 6.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004699 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 62.96, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 42.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 13.5, \"min\": 5.4, \"max\": 27.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.6, \"min\": 1.0, \"max\": 6.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6adc_0998", "family": "block", "tier": 2, "seed": 1234004700, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "a1b8a1d572caf235", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 56800.0, "surface_area": 12600.0, "principal_moments": [13699999.999999998, 13899999.999999998, 16299999.999999998], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 43.45, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 35.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 35.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 8.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 24.1, "min": 12.1, "max": 48.2, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 10.9, "min": 4.4, "max": 27.2, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 16.9, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004700 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 43.45, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 35.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 35.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 8.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 24.1, \"min\": 12.1, \"max\": 48.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 10.9, \"min\": 4.4, \"max\": 27.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 16.9, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6add_0999", "family": "plate", "tier": 2, "seed": 1234004701, "symmetry": "radial", "op_count": 3, "ir_hash": "88519e451c140a70", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 40600.0, "surface_area": 13100.0, "principal_moments": [11999999.999999998, 26699999.999999996, 38300000.0], "n_faces": 18, "n_edges": 46, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 88.03, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 59.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 26.4, "min": 17.6, "max": 39.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004701 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 88.03, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 59.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 26.4, \"min\": 17.6, \"max\": 39.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.04005476464823746)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6ade_1000", "family": "flanged", "tier": 3, "seed": 1234004702, "symmetry": "none", "op_count": 2, "ir_hash": "a355ea1b0a7f956d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 51300.0, "surface_area": 15800.0, "principal_moments": [20600000.0, 20600000.0, 20800000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 32.98, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 45.3, "min": 13.6, "max": 113.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 13.5, "min": 2.0, "max": 23.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 73.3, "min": 42.9, "max": 98.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.9, "min": 1.8, "max": 18.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 22.0, "min": 14.7, "max": 33.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004702 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 32.98, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 45.3, \"min\": 13.6, \"max\": 113.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 13.5, \"min\": 2.0, \"max\": 23.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 73.3, \"min\": 42.9, \"max\": 98.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.9, \"min\": 1.8, \"max\": 18.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 22.0, \"min\": 14.7, \"max\": 33.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6adf_1001", "family": "revolved", "tier": 0, "seed": 1234004703, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "60f2a4d204b0d7db", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 396000.0, "surface_area": 61700.0, "principal_moments": [219000000.0, 1090000000.0, 1090000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 60.8, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 204.5, "min": 61.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004703 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60.8, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 204.5, \"min\": 61.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6ae0_1002", "family": "bracket", "tier": 1, "seed": 1234004704, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "115a69ab5502bfd2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27900.0, "surface_area": 20000.0, "principal_moments": [10500000.0, 37400000.0, 41300000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 75, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 49.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55.68, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 48.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004704 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 49.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55.68, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 48.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6ae1_1003", "family": "compound", "tier": 2, "seed": 1234004705, "symmetry": "none", "op_count": 3, "ir_hash": "2f820c53b73ab5fa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 106000.0, "surface_area": 16300.0, "principal_moments": [32599999.999999996, 45300000.0, 56699999.99999999], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 62.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 34.7, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 4.7, "min": 2.4, "max": 12.2, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 14.8, "min": 2.6, "max": 34.7, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 3.6, "min": 2.0, "max": 6.3, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 11.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004705 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 62.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 34.7, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 4.7, \"min\": 2.4, \"max\": 12.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 14.8, \"min\": 2.6, \"max\": 34.7, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 3.6, \"min\": 2.0, \"max\": 6.3, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 11.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6ae2_1004", "family": "enclosure", "tier": 2, "seed": 1234004706, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "0c99a29c1de54854", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45200.0, "surface_area": 28500.0, "principal_moments": [28499999.999999996, 39700000.0, 51699999.99999999], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 75, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 57.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 42.3, "min": 16.9, "max": 84.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004706 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 75, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 57.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 42.3, \"min\": 16.9, \"max\": 84.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.09482635105974843)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6ae3_1005", "family": "plate", "tier": 2, "seed": 1234004707, "symmetry": "radial", "op_count": 3, "ir_hash": "2c7d27a960924fe5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42200.0, "surface_area": 17300.0, "principal_moments": [23699999.999999996, 28699999.999999996, 52099999.99999999], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"plate_w": {"type": "float", "default": 90, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 81.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 27.0, "min": 18.0, "max": 40.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004707 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 81.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 27.0, \"min\": 18.0, \"max\": 40.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.10752094811968521)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6ae4_1006", "family": "block", "tier": 1, "seed": 1234004708, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "11eb75fe51c7894b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 405000.0, "surface_area": 38100.0, "principal_moments": [309000000.0, 411000000.0, 442000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 90, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 64.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 71.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004708 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 90, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 64.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 71.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6ae5_1007", "family": "gear", "tier": 2, "seed": 1234004709, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "3ebc935f156deb7a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 148000.0, "surface_area": 32400.0, "principal_moments": [137000000.0, 137000000.0, 269000000.0], "n_faces": 611, "n_edges": 1523, "n_vertices": 914}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 38, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 13.9, "min": 5.6, "max": 34.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 17.1, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": -0.11, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.33, "min": 0.0, "max": 1.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 19.9, "min": 2.0, "max": 63.9, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004709 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 38, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 13.9, \"min\": 5.6, \"max\": 34.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 17.1, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.11, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.33, \"min\": 0.0, \"max\": 1.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 19.9, \"min\": 2.0, \"max\": 63.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=True, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6ae6_1008", "family": "profiled", "tier": 1, "seed": 1234004710, "symmetry": "none", "op_count": 1, "ir_hash": "baf3f9269cdb2300", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 95300.0, "surface_area": 15800.0, "principal_moments": [9960000.0, 215000000.0, 219000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 33.47, "min": 16.7, "max": 66.9, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 20, "min": 10.0, "max": 40.0, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 163.3, "min": 49.0, "max": 489.9, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004710 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 33.47, \"min\": 16.7, \"max\": 66.9, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 20, \"min\": 10.0, \"max\": 40.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 163.3, \"min\": 49.0, \"max\": 489.9, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6ae7_1009", "family": "flanged", "tier": 3, "seed": 1234004711, "symmetry": "none", "op_count": 2, "ir_hash": "b06a4cfbd576b2b8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17800.0, "surface_area": 6840.0, "principal_moments": [2520000.0, 2520000.0, 3720000.0], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 31.04, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 20.0, "min": 6.0, "max": 50.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 10.0, "min": 2.0, "max": 21.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 49.9, "min": 40.4, "max": 93.1, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.9, "min": 1.2, "max": 8.0, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 15.0, "min": 10.0, "max": 22.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004711 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 31.04, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 20.0, \"min\": 6.0, \"max\": 50.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 21.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 49.9, \"min\": 40.4, \"max\": 93.1, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.9, \"min\": 1.2, \"max\": 8.0, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 15.0, \"min\": 10.0, \"max\": 22.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6ae8_1010", "family": "revolved", "tier": 0, "seed": 1234004712, "symmetry": "none", "op_count": 1, "ir_hash": "8a313d0a0b3957f6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 123000.0, "surface_area": 22900.0, "principal_moments": [55799999.99999999, 71800000.0, 71800000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 55, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 77.6, "min": 23.3, "max": 232.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004712 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 77.6, \"min\": 23.3, \"max\": 232.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6aea_1012", "family": "plate", "tier": 2, "seed": 1234004714, "symmetry": "none", "op_count": 3, "ir_hash": "0d907e52e49d8ad2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17900.0, "surface_area": 9020.0, "principal_moments": [2870000.0, 11000000.0, 13799999.999999998], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"plate_w": {"type": "float", "default": 85.72, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 43.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004714 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 85.72, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 43.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 16.1\n _ssy = 16.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07122959641414962)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6aeb_1013", "family": "bracket", "tier": 2, "seed": 1234004715, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "0d459a300043f87f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24700.0, "surface_area": 17300.0, "principal_moments": [10200000.0, 22600000.0, 23699999.999999996], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 66.37, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 74.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 54.76, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.2, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004715 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 66.37, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 74.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 54.76, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.2, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6aed_1015", "family": "compound", "tier": 1, "seed": 1234004717, "symmetry": "none", "op_count": 3, "ir_hash": "601c616ca89cc122", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 610000.0, "surface_area": 52200.0, "principal_moments": [718000000.0, 780000000.0, 781000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 21}, "params": {"block_w": {"type": "float", "default": 90.0, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 82.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 83.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 20.7, "min": 8.3, "max": 37.3, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 14.6, "min": 5.2, "max": 62.1, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 12.0, "min": 2.0, "max": 14.9, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004717 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 90.0, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 82.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 83.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 20.7, \"min\": 8.3, \"max\": 37.3, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 14.6, \"min\": 5.2, \"max\": 62.1, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 14.9, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6af1_1019", "family": "bracket", "tier": 2, "seed": 1234004721, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "a7f4ea3b6271cbab", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 55800.0, "surface_area": 17100.0, "principal_moments": [20500000.0, 53799999.99999999, 56699999.99999999], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 74.99, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 76.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 7.8, "min": 4.0, "max": 22.5, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004721 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 74.99, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 76.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 7.8, \"min\": 4.0, \"max\": 22.5, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6af2_1020", "family": "bracket", "tier": 1, "seed": 1234004722, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "a9d17c83ba777f39", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19600.0, "surface_area": 8110.0, "principal_moments": [4880000.0, 4900000.0, 7730000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 36.03, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 38.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 48.42, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004722 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 36.03, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 38.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 48.42, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6af5_1023", "family": "ribbed", "tier": 1, "seed": 1234004725, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "e7df7e2807144ff8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13900.0, "surface_area": 6280.0, "principal_moments": [1800000.0, 3620000.0, 5070000.0], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 36.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 8.5, "min": 3.4, "max": 17.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.2, "min": 1.0, "max": 10.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004725 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 36.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 8.5, \"min\": 3.4, \"max\": 17.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.2, \"min\": 1.0, \"max\": 10.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6af6_1024", "family": "revolved", "tier": 2, "seed": 1234004726, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "01b820020fa0eaa5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 238000.0, "surface_area": 44600.0, "principal_moments": [95999999.99999999, 468000000.0, 468000000.0], "n_faces": 9, "n_edges": 14, "n_vertices": 9}, "params": {"outer_d": {"type": "float", "default": 52.24, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 171.0, "min": 51.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "groove_depth": {"type": "float", "default": 2.51, "min": 1.0, "max": 7.53, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 16.28, "min": 6.51, "max": 48.84, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 87.8, "min": 25.6, "max": 145.3, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004726 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 52.24, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 171.0, \"min\": 51.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 2.51, \"min\": 1.0, \"max\": 7.53, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 16.28, \"min\": 6.51, \"max\": 48.84, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 87.8, \"min\": 25.6, \"max\": 145.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6af8_1026", "family": "revolved", "tier": 0, "seed": 1234004728, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "028f188503983730", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 49800.0, "surface_area": 13900.0, "principal_moments": [9160000.0, 22400000.0, 22400000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 35, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 77.7, "min": 23.3, "max": 233.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004728 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 77.7, \"min\": 23.3, \"max\": 233.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6af9_1027", "family": "block", "tier": 1, "seed": 1234004729, "symmetry": "radial", "op_count": 2, "ir_hash": "9af130ee8453f852", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 252000.0, "surface_area": 29100.0, "principal_moments": [153000000.0, 200000000.0, 293000000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 90, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 37.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 76.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 27.0, "min": 18.0, "max": 40.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004729 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 90, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 37.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 76.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 27.0, \"min\": 18.0, \"max\": 40.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6afa_1028", "family": "ribbed", "tier": 2, "seed": 1234004730, "symmetry": "none", "op_count": 2, "ir_hash": "79d4af345fd15aa0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 51900.0, "surface_area": 25400.0, "principal_moments": [25299999.999999996, 38400000.0, 59399999.99999999], "n_faces": 26, "n_edges": 60, "n_vertices": 40}, "params": {"base_w": {"type": "float", "default": 90, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 74.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 17.5, "min": 7.0, "max": 35.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.0, "min": 1.0, "max": 12.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004730 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 74.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 17.5, \"min\": 7.0, \"max\": 35.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 1.0, \"max\": 12.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6afb_1029", "family": "gear", "tier": 0, "seed": 1234004731, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "3fd7f10c825ca083", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1520.0, "surface_area": 1180.0, "principal_moments": [36200.0, 36200.0, 63000.0], "n_faces": 110, "n_edges": 324, "n_vertices": 216}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 18, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.1, "min": 2.4, "max": 15.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004731 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 18, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.1, \"min\": 2.4, \"max\": 15.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6afe_1032", "family": "compound", "tier": 2, "seed": 1234004734, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "a4352f8258356d56", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 115000.0, "surface_area": 29500.0, "principal_moments": [87000000.0, 139000000.0, 143000000.0], "n_faces": 32, "n_edges": 87, "n_vertices": 58}, "params": {"base_w": {"type": "float", "default": 110, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 74.8, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 12.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 11.7, "min": 5.8, "max": 18.7, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 75.7, "min": 22.7, "max": 227.1, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 12.3, "min": 2.0, "max": 15.6, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004734 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 110, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 74.8, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 12.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 11.7, \"min\": 5.8, \"max\": 18.7, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 75.7, \"min\": 22.7, \"max\": 227.1, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 12.3, \"min\": 2.0, \"max\": 15.6, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_w\"], p[\"base_d\"]) * 0.10828157726694951)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6aff_1033", "family": "bracket", "tier": 2, "seed": 1234004735, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "e8d8fa604858f1ae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14400.0, "surface_area": 5390.0, "principal_moments": [1500000.0, 4530000.0, 5010000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 40.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20.9, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 8.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 9.9, "min": 4.0, "max": 10.4, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004735 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 40.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20.9, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 8.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 9.9, \"min\": 4.0, \"max\": 10.4, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6b01_1035", "family": "revolved", "tier": 2, "seed": 1234004737, "symmetry": "radial", "op_count": 2, "ir_hash": "781cc7963c496c24", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 527000.0, "surface_area": 68400.0, "principal_moments": [456000000.0, 1270000000.0, 1270000000.0], "n_faces": 11, "n_edges": 17, "n_vertices": 11}, "params": {"outer_d": {"type": "float", "default": 55, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 196.7, "min": 59.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 92.2, "min": 66.0, "max": 165.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 51.6, "min": 15.5, "max": 98.3, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "groove_depth": {"type": "float", "default": 1.77, "min": 0.71, "max": 5.31, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 21.81, "min": 8.72, "max": 65.43, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 109.5, "min": 29.5, "max": 167.2, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.3, "min": 0.1, "max": 0.9, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004737 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 196.7, \"min\": 59.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 92.2, \"min\": 66.0, \"max\": 165.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 51.6, \"min\": 15.5, \"max\": 98.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 1.77, \"min\": 0.71, \"max\": 5.31, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 21.81, \"min\": 8.72, \"max\": 65.43, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 109.5, \"min\": 29.5, \"max\": 167.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.3, \"min\": 0.1, \"max\": 0.9, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_r\"], p[\"base_r\"]) * 0.11711548230344176)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6b04_1038", "family": "gear", "tier": 1, "seed": 1234004740, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "cd438a5f6ce644a1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1080000.0, "surface_area": 110000.0, "principal_moments": [2980000000.0, 2980000000.0, 5750000000.0], "n_faces": 207, "n_edges": 615, "n_vertices": 410}, "params": {"module": {"type": "float", "default": 6.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 34, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 34.0, "min": 13.6, "max": 85.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 30.3, "min": 2.0, "max": 113.4, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004740 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 6.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 34, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 34.0, \"min\": 13.6, \"max\": 85.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 30.3, \"min\": 2.0, \"max\": 113.4, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6b06_1040", "family": "compound", "tier": 2, "seed": 1234004742, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "d91f9800da680f52", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 299000.0, "surface_area": 30200.0, "principal_moments": [214000000.0, 223000000.0, 252000000.0], "n_faces": 20, "n_edges": 51, "n_vertices": 34}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 58.7, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 72.5, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 9.4, "min": 4.7, "max": 24.5, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 23.1, "min": 5.2, "max": 69.5, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 8.3, "min": 2.0, "max": 12.5, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004742 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 58.7, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 72.5, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 9.4, \"min\": 4.7, \"max\": 24.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 23.1, \"min\": 5.2, \"max\": 69.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 8.3, \"min\": 2.0, \"max\": 12.5, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6b07_1041", "family": "revolved", "tier": 1, "seed": 1234004743, "symmetry": "none", "op_count": 2, "ir_hash": "957cd3e170066b14", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3240.0, "surface_area": 2150.0, "principal_moments": [158000.0, 158000.0, 249000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 14.06, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 15.0, "min": 4.5, "max": 45.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 27.8, "min": 16.9, "max": 42.2, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.8, "min": 1.1, "max": 7.5, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004743 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 14.06, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 15.0, \"min\": 4.5, \"max\": 45.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 27.8, \"min\": 16.9, \"max\": 42.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.8, \"min\": 1.1, \"max\": 7.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6b09_1043", "family": "threaded", "tier": 0, "seed": 1234004745, "symmetry": "none", "op_count": 1, "ir_hash": "61fb7649534f8e31", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4490.0, "surface_area": 2810.0, "principal_moments": [68200.0, 881000.0, 881000.0], "n_faces": 280, "n_edges": 718, "n_vertices": 440}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 47.8, "min": 19.1, "max": 95.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004745 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 47.8, \"min\": 19.1, \"max\": 95.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6b0a_1044", "family": "compound", "tier": 2, "seed": 1234004746, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "c259336133da6cff", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 173000.0, "surface_area": 28100.0, "principal_moments": [69800000.0, 125000000.0, 157000000.0], "n_faces": 17, "n_edges": 54, "n_vertices": 36}, "params": {"block_w": {"type": "float", "default": 60, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 77.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 36.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 58.5, "min": 23.4, "max": 93.6, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 28.3, "min": 11.3, "max": 45.3, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.2, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}, "block_hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004746 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 60, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 77.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 36.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 58.5, \"min\": 23.4, \"max\": 93.6, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 28.3, \"min\": 11.3, \"max\": 45.3, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.2, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n \"block_hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"block_hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6b0c_1046", "family": "plate", "tier": 2, "seed": 1234004748, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "b334a6a065fc8efd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 48100.0, "surface_area": 14700.0, "principal_moments": [8700000.0, 49999999.99999999, 57899999.99999999], "n_faces": 42, "n_edges": 120, "n_vertices": 80}, "params": {"plate_w": {"type": "float", "default": 115, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 47.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 12.6, "min": 2.0, "max": 13.8, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004748 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 115, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 47.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 12.6, \"min\": 2.0, \"max\": 13.8, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.05504981042715907)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6b0f_1049", "family": "enclosure", "tier": 1, "seed": 1234004751, "symmetry": "none", "op_count": 2, "ir_hash": "11be63bcbcb1cbaf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 59600.0, "surface_area": 50400.0, "principal_moments": [53699999.99999999, 88700000.0, 105000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 99.26, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 43.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 76.5, "min": 30.6, "max": 153.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.4, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004751 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 99.26, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 43.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 76.5, \"min\": 30.6, \"max\": 153.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6b10_1050", "family": "gear", "tier": 2, "seed": 1234004752, "symmetry": "none", "op_count": 1, "ir_hash": "cd479690ca113e0c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 277.0, "surface_area": 420.0, "principal_moments": [2750.0, 2750.0, 5060.0], "n_faces": 83, "n_edges": 203, "n_vertices": 122}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 10, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 3.1, "min": 1.2, "max": 7.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 25.4, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.09, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.15, "min": 0.0, "max": 0.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 3.0, "min": 2.0, "max": 4.5, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004752 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 10, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 3.1, \"min\": 1.2, \"max\": 7.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 25.4, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.09, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.15, \"min\": 0.0, \"max\": 0.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 4.5, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6b11_1051", "family": "revolved", "tier": 2, "seed": 1234004753, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "c6f158f23a19b016", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 273.0, "surface_area": 349.0, "principal_moments": [2290.0, 2290.0, 2970.0], "n_faces": 9, "n_edges": 14, "n_vertices": 9}, "params": {"outer_d": {"type": "float", "default": 8.71, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 7.5, "min": 2.2, "max": 22.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "groove_depth": {"type": "float", "default": 0.46, "min": 0.18, "max": 1.38, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 0.46, "min": 0.18, "max": 1.38, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 4.0, "min": 1.1, "max": 6.4, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004753 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 8.71, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 7.5, \"min\": 2.2, \"max\": 22.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 0.46, \"min\": 0.18, \"max\": 1.38, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 0.46, \"min\": 0.18, \"max\": 1.38, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.1, \"max\": 6.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 3.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6b13_1053", "family": "bracket", "tier": 2, "seed": 1234004755, "symmetry": "none", "op_count": 1, "ir_hash": "47d15f4c1bc59da6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23000.0, "surface_area": 12800.0, "principal_moments": [7710000.0, 12099999.999999998, 15599999.999999998], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 60, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 44.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.6, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004755 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 60, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 44.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.6, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6b14_1054", "family": "enclosure", "tier": 2, "seed": 1234004756, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "29c347a475fe4fbc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 141000.0, "surface_area": 102000.0, "principal_moments": [363000000.0, 367000000.0, 448000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 106.47, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 105.4, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 97.8, "min": 39.1, "max": 195.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004756 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 106.47, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 105.4, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 97.8, \"min\": 39.1, \"max\": 195.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6b15_1055", "family": "revolved", "tier": 1, "seed": 1234004757, "symmetry": "none", "op_count": 1, "ir_hash": "11272f7921d86106", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 661.0, "surface_area": 569.0, "principal_moments": [8010.0, 11200.0, 11200.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 9.24, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 11.4, "min": 3.4, "max": 34.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 3.4, "min": 2.0, "max": 6.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004757 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 9.24, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 11.4, \"min\": 3.4, \"max\": 34.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 3.4, \"min\": 2.0, \"max\": 6.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6b16_1056", "family": "bracket", "tier": 1, "seed": 1234004758, "symmetry": "none", "op_count": 1, "ir_hash": "740a5cf8887536c8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42000.0, "surface_area": 23100.0, "principal_moments": [26899999.999999996, 47099999.99999999, 48699999.99999999], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 57.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 60.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004758 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 57.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 60.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6b17_1057", "family": "revolved", "tier": 2, "seed": 1234004759, "symmetry": "radial", "op_count": 2, "ir_hash": "6febeea4e5bf0f86", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14900.0, "surface_area": 5870.0, "principal_moments": [1960000.0, 1960000.0, 2790000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 21.31, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 29.0, "min": 8.7, "max": 87.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 43.4, "min": 25.6, "max": 63.9, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.2, "min": 2.2, "max": 14.5, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.1, "min": 0.1, "max": 3.3, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004759 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 21.31, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 29.0, \"min\": 8.7, \"max\": 87.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 43.4, \"min\": 25.6, \"max\": 63.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.2, \"min\": 2.2, \"max\": 14.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.1, \"min\": 0.1, \"max\": 3.3, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6b19_1059", "family": "compound", "tier": 2, "seed": 1234004761, "symmetry": "none", "op_count": 3, "ir_hash": "4d3aace649268550", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 264000.0, "surface_area": 29500.0, "principal_moments": [174000000.0, 177000000.0, 227000000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 68.13, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 72.9, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 53.2, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 22.3, "min": 8.9, "max": 37.2, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 23.0, "min": 6.7, "max": 89.2, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 8.9, "min": 2.0, "max": 16.1, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004761 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 68.13, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 72.9, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 53.2, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 22.3, \"min\": 8.9, \"max\": 37.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 23.0, \"min\": 6.7, \"max\": 89.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 8.9, \"min\": 2.0, \"max\": 16.1, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6b1c_1062", "family": "bracket", "tier": 3, "seed": 1234004764, "symmetry": "none", "op_count": 1, "ir_hash": "0e51274a57c38816", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6920.0, "surface_area": 4450.0, "principal_moments": [838000.0, 996000.0, 1410000.0], "n_faces": 17, "n_edges": 55, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 29.19, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 27.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 32.86, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.6, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004764 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 29.19, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 27.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 32.86, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.6, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6b1e_1064", "family": "gear", "tier": 1, "seed": 1234004766, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "0dedaff21ad60ba9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6420.0, "surface_area": 3690.0, "principal_moments": [619000.0, 619000.0, 1200000.0], "n_faces": 231, "n_edges": 687, "n_vertices": 458}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 38, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.9, "min": 2.4, "max": 14.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 6.9, "min": 2.0, "max": 21.3, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004766 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 38, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.9, \"min\": 2.4, \"max\": 14.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 6.9, \"min\": 2.0, \"max\": 21.3, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6b1f_1065", "family": "bracket", "tier": 1, "seed": 1234004767, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "5df0985a61b16214", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24200.0, "surface_area": 18000.0, "principal_moments": [23199999.999999996, 32199999.999999996, 51199999.99999999], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 82.08, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 31.75, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004767 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 82.08, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 31.75, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6b20_1066", "family": "profiled", "tier": 1, "seed": 1234004768, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "90206519343b4bf0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 142000.0, "surface_area": 19300.0, "principal_moments": [22500000.0, 260000000.0, 260000000.0], "n_faces": 7, "n_edges": 15, "n_vertices": 10}, "params": {"circ_r": {"type": "float", "default": 20.29, "min": 10.1, "max": 40.6, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 145.1, "min": 43.5, "max": 435.3, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004768 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 20.29, \"min\": 10.1, \"max\": 40.6, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 145.1, \"min\": 43.5, \"max\": 435.3, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6b21_1067", "family": "revolved", "tier": 1, "seed": 1234004769, "symmetry": "radial", "op_count": 1, "ir_hash": "922d3adc653c8e36", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 411000.0, "surface_area": 53100.0, "principal_moments": [220000000.0, 1210000000.0, 1210000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 60, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 179.2, "min": 53.8, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 26.1, "min": 2.0, "max": 42.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004769 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 179.2, \"min\": 53.8, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 26.1, \"min\": 2.0, \"max\": 42.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6b22_1068", "family": "threaded", "tier": 2, "seed": 1234004770, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "0cdc945f8aac5fa5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 392.0, "surface_area": 588.0, "principal_moments": [1020.0, 20000.0, 20000.0], "n_faces": 310, "n_edges": 796, "n_vertices": 488}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 24.5, "min": 9.8, "max": 49.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004770 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 24.5, \"min\": 9.8, \"max\": 49.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6b23_1069", "family": "plate", "tier": 0, "seed": 1234004771, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "795b5d2c7f131f58", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29000.0, "surface_area": 8020.0, "principal_moments": [4510000.0, 11799999.999999998, 15799999.999999998], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 69.08, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 42.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004771 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 69.08, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 42.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6b24_1070", "family": "gear", "tier": 3, "seed": 1234004772, "symmetry": "none", "op_count": 1, "ir_hash": "226a0a02881349e0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 907.0, "surface_area": 971.0, "principal_moments": [21400.0, 21400.0, 40800.0], "n_faces": 155, "n_edges": 459, "n_vertices": 306}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 19, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 3.6, "min": 1.4, "max": 9.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": -0.26, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.15, "min": 0.0, "max": 0.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 3.5, "min": 2.0, "max": 9.9, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004772 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 19, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 3.6, \"min\": 1.4, \"max\": 9.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.26, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.15, \"min\": 0.0, \"max\": 0.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 3.5, \"min\": 2.0, \"max\": 9.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6b25_1071", "family": "plate", "tier": 0, "seed": 1234004773, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "0d6222731f2552a9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16500.0, "surface_area": 9270.0, "principal_moments": [4130000.0, 7780000.0, 11899999.999999998], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 75.21, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 54.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004773 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 75.21, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 54.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6b27_1073", "family": "plate", "tier": 2, "seed": 1234004775, "symmetry": "none", "op_count": 3, "ir_hash": "66b14ca229807640", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5800.0, "surface_area": 3430.0, "principal_moments": [386000.0, 926000.0, 1290000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 28.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 6.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004775 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 28.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 6.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.10350366018994164)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6b28_1074", "family": "gear", "tier": 1, "seed": 1234004776, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "f453ad2c97af419a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6480.0, "surface_area": 4210.0, "principal_moments": [815000.0, 815000.0, 1610000.0], "n_faces": 213, "n_edges": 633, "n_vertices": 422}, "params": {"module": {"type": "float", "default": 1.25, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 35, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 4.5, "min": 1.8, "max": 11.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 8.1, "min": 2.0, "max": 24.4, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004776 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.25, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 35, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.8, \"max\": 11.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 8.1, \"min\": 2.0, \"max\": 24.4, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6b2a_1076", "family": "plate", "tier": 2, "seed": 1234004778, "symmetry": "radial", "op_count": 3, "ir_hash": "674ba8d0b4a86385", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 57000.0, "surface_area": 21900.0, "principal_moments": [37600000.0, 56299999.99999999, 93499999.99999999], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 108.74, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 88.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 32.6, "min": 21.7, "max": 48.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004778 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 108.74, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 88.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 32.6, \"min\": 21.7, \"max\": 48.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07112617184986642)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6b2b_1077", "family": "plate", "tier": 1, "seed": 1234004779, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "8a20c326675da98f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2780.0, "surface_area": 1720.0, "principal_moments": [69200.0, 210000.0, 262000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 30, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 16.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004779 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 16.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6b2d_1079", "family": "revolved", "tier": 2, "seed": 1234004781, "symmetry": "none", "op_count": 2, "ir_hash": "1de1356a26e9fbb1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 143000.0, "surface_area": 30000.0, "principal_moments": [40900000.0, 243000000.0, 243000000.0], "n_faces": 12, "n_edges": 20, "n_vertices": 12}, "params": {"outer_d": {"type": "float", "default": 43.06, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 135.0, "min": 40.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 21.5, "min": 2.0, "max": 30.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 3.41, "min": 1.36, "max": 10.23, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 10.63, "min": 4.25, "max": 31.89, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 53.5, "min": 20.2, "max": 114.8, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004781 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 43.06, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 135.0, \"min\": 40.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 21.5, \"min\": 2.0, \"max\": 30.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 3.41, \"min\": 1.36, \"max\": 10.23, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 10.63, \"min\": 4.25, \"max\": 31.89, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 53.5, \"min\": 20.2, \"max\": 114.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6b2f_1081", "family": "bracket", "tier": 3, "seed": 1234004783, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "37ac8ab87f18a7cf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11300.0, "surface_area": 8360.0, "principal_moments": [2490000.0, 4060000.0, 5200000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 35.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 44.46, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.6, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004783 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 35.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 44.46, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.6, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6b30_1082", "family": "compound", "tier": 2, "seed": 1234004784, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "b16a139ab2c48b47", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 127000.0, "surface_area": 17500.0, "principal_moments": [50399999.99999999, 56099999.99999999, 58599999.99999999], "n_faces": 20, "n_edges": 51, "n_vertices": 34}, "params": {"block_w": {"type": "float", "default": 46.39, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 55.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 50.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 7.2, "min": 3.6, "max": 17.5, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 16.5, "min": 4.0, "max": 53.2, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 6.5, "min": 2.0, "max": 9.6, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 10.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004784 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 46.39, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 55.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 50.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 7.2, \"min\": 3.6, \"max\": 17.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 16.5, \"min\": 4.0, \"max\": 53.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 6.5, \"min\": 2.0, \"max\": 9.6, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 10.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6b31_1083", "family": "compound", "tier": 2, "seed": 1234004785, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "a9075185ae5eadda", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 65600.0, "surface_area": 10800.0, "principal_moments": [19300000.0, 21400000.0, 21400000.0], "n_faces": 20, "n_edges": 51, "n_vertices": 34}, "params": {"base_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 28.43, "min": 17.1, "max": 45.5, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 21.5, "min": 8.6, "max": 53.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 25.9, "min": 12.9, "max": 42.0, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 31.2, "min": 9.4, "max": 78.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004785 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 28.43, \"min\": 17.1, \"max\": 45.5, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 21.5, \"min\": 8.6, \"max\": 53.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 25.9, \"min\": 12.9, \"max\": 42.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 31.2, \"min\": 9.4, \"max\": 78.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_r\"], p[\"base_r\"]) * 0.05280602762832996)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6b32_1084", "family": "bracket", "tier": 2, "seed": 1234004786, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "f001ea846af9436a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34500.0, "surface_area": 19000.0, "principal_moments": [19000000.0, 26299999.999999996, 27699999.999999996], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 53.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55.64, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.7, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004786 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 53.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55.64, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.7, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6b33_1085", "family": "revolved", "tier": 1, "seed": 1234004787, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "0c5209592524b94d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21100.0, "surface_area": 8120.0, "principal_moments": [2000000.0, 6160000.0, 6160000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 25.1, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 64.1, "min": 19.2, "max": 192.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004787 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25.1, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 64.1, \"min\": 19.2, \"max\": 192.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6b34_1086", "family": "block", "tier": 1, "seed": 1234004788, "symmetry": "radial", "op_count": 2, "ir_hash": "2080885d66b5084c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17300.0, "surface_area": 5340.0, "principal_moments": [1270000.0, 3080000.0, 3180000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"block_w": {"type": "float", "default": 41.25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 20.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 21.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 12.4, "min": 8.2, "max": 18.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004788 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 41.25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 20.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 21.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 12.4, \"min\": 8.2, \"max\": 18.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6b35_1087", "family": "revolved", "tier": 1, "seed": 1234004789, "symmetry": "radial", "op_count": 2, "ir_hash": "9a3736e0f0e7ef99", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1070000.0, "surface_area": 110000.0, "principal_moments": [2080000000.0, 3350000000.0, 3350000000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 79.26, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 195.8, "min": 58.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 147.5, "min": 95.1, "max": 237.8, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 34.7, "min": 10.4, "max": 97.9, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004789 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 79.26, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 195.8, \"min\": 58.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 147.5, \"min\": 95.1, \"max\": 237.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 34.7, \"min\": 10.4, \"max\": 97.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 3.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6b37_1089", "family": "ribbed", "tier": 1, "seed": 1234004791, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "62611889330d620e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22500.0, "surface_area": 11400.0, "principal_moments": [3490000.0, 7750000.0, 9550000.0], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 30.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 14.4, "min": 5.8, "max": 28.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.8, "min": 1.0, "max": 7.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004791 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 30.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 14.4, \"min\": 5.8, \"max\": 28.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.8, \"min\": 1.0, \"max\": 7.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6b38_1090", "family": "plate", "tier": 2, "seed": 1234004792, "symmetry": "none", "op_count": 3, "ir_hash": "a182d5c386b92ea5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10700.0, "surface_area": 6400.0, "principal_moments": [1050000.0, 5550000.0, 6570000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 79.1, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 34.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004792 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 79.1, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 34.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.04101694720821449)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6b39_1091", "family": "bracket", "tier": 1, "seed": 1234004793, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8e4548894c504199", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26300.0, "surface_area": 14800.0, "principal_moments": [9670000.0, 25199999.999999996, 26599999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 56.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004793 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 56.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cboreHole(p[\"hole_d\"], p[\"cb_d\"], p[\"cb_depth\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.10576756840328219)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6b3b_1093", "family": "compound", "tier": 2, "seed": 1234004795, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "9c053e66831c2636", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12800.0, "surface_area": 4270.0, "principal_moments": [611000.0, 2980000.0, 2980000.0], "n_faces": 13, "n_edges": 27, "n_vertices": 18}, "params": {"shaft_d": {"type": "float", "default": 20.66, "min": 10.3, "max": 37.2, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 32.7, "min": 13.1, "max": 65.4, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 10.1, "min": 5.0, "max": 18.6, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 24.5, "min": 7.3, "max": 61.2, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "head_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Head", "label": "Drive head sides"}, "head_r": {"type": "float", "default": 4.0, "min": 2.4, "max": 4.8, "step": 1.0, "group": "Head", "label": "Drive head circumradius (mm)"}, "head_len": {"type": "float", "default": 6.4, "min": 1.9, "max": 12.8, "step": 1.0, "group": "Head", "label": "Drive head length (mm)"}, "axial_bore": {"type": "float", "default": 2.8, "min": 2.0, "max": 5.0, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004795 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 20.66, \"min\": 10.3, \"max\": 37.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 32.7, \"min\": 13.1, \"max\": 65.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 10.1, \"min\": 5.0, \"max\": 18.6, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 24.5, \"min\": 7.3, \"max\": 61.2, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"head_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Head', \"label\": 'Drive head sides'},\n \"head_r\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.4, \"max\": 4.8, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head circumradius (mm)'},\n \"head_len\": {\"type\": 'float', \"default\": 6.4, \"min\": 1.9, \"max\": 12.8, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 2.8, \"min\": 2.0, \"max\": 5.0, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"head_sides\"], p[\"head_r\"] * 2).extrude(p[\"head_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6b3c_1094", "family": "compound", "tier": 1, "seed": 1234004796, "symmetry": "none", "op_count": 3, "ir_hash": "6ddf76982f08e58d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 141000.0, "surface_area": 21200.0, "principal_moments": [58799999.99999999, 67700000.0, 96299999.99999999], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 60.9, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 35.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 37.1, "min": 14.8, "max": 59.4, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 19.8, "min": 7.9, "max": 31.7, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.4, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004796 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 60.9, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 35.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 37.1, \"min\": 14.8, \"max\": 59.4, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 19.8, \"min\": 7.9, \"max\": 31.7, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.4, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d66f7_0001", "family": "block", "tier": 1, "seed": 1234003703, "symmetry": "none", "op_count": 2, "ir_hash": "c78798dd970628aa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 114000.0, "surface_area": 19900.0, "principal_moments": [38100000.0, 54499999.99999999, 74700000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 31.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 55.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.2, "min": 2.0, "max": 9.1, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003703 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 31.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 55.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 9.1, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d66f8_0002", "family": "flanged", "tier": 1, "seed": 1234003704, "symmetry": "radial", "op_count": 2, "ir_hash": "8b78b605f8954c8b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 439000.0, "surface_area": 70800.0, "principal_moments": [709000000.0, 709000000.0, 718000000.0], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 85, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 89.3, "min": 26.8, "max": 223.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 45.3, "min": 2.0, "max": 59.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 147.2, "min": 110.5, "max": 255.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.8, "min": 2.3, "max": 35.7, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 44.2, "min": 29.4, "max": 66.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003704 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 89.3, \"min\": 26.8, \"max\": 223.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 45.3, \"min\": 2.0, \"max\": 59.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 147.2, \"min\": 110.5, \"max\": 255.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.8, \"min\": 2.3, \"max\": 35.7, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 44.2, \"min\": 29.4, \"max\": 66.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d66f9_0003", "family": "revolved", "tier": 1, "seed": 1234003705, "symmetry": "none", "op_count": 1, "ir_hash": "56c47781b75024db", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 196000.0, "surface_area": 37200.0, "principal_moments": [180000000.0, 180000000.0, 290000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 54.13, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 51.1, "min": 15.3, "max": 153.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 31.3, "min": 2.0, "max": 37.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 119.1, "min": 65.0, "max": 162.4, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 13.3, "min": 4.0, "max": 25.6, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003705 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 54.13, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 51.1, \"min\": 15.3, \"max\": 153.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 31.3, \"min\": 2.0, \"max\": 37.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 119.1, \"min\": 65.0, \"max\": 162.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 13.3, \"min\": 4.0, \"max\": 25.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d66fa_0004", "family": "plate", "tier": 1, "seed": 1234003706, "symmetry": "radial", "op_count": 2, "ir_hash": "03d5fab1f1448a65", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1510.0, "surface_area": 1260.0, "principal_moments": [23300.0, 146000.0, 165000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"plate_w": {"type": "float", "default": 33.98, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 12.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 10.2, "min": 6.8, "max": 15.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003706 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 33.98, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 12.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 10.2, \"min\": 6.8, \"max\": 15.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d66fb_0005", "family": "revolved", "tier": 2, "seed": 1234003707, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "3a43112a46716ade", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5430.0, "surface_area": 2730.0, "principal_moments": [149000.0, 834000.0, 834000.0], "n_faces": 8, "n_edges": 12, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 14.05, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 40.6, "min": 12.2, "max": 121.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 4.9, "min": 2.0, "max": 9.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 0.62, "min": 0.25, "max": 1.86, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 3.7, "min": 1.48, "max": 11.1, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 19.8, "min": 6.1, "max": 34.5, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003707 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 14.05, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 40.6, \"min\": 12.2, \"max\": 121.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.0, \"max\": 9.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 0.62, \"min\": 0.25, \"max\": 1.86, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 3.7, \"min\": 1.48, \"max\": 11.1, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 19.8, \"min\": 6.1, \"max\": 34.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d66fc_0006", "family": "threaded", "tier": 0, "seed": 1234003708, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "7fbd5e72a1a8b5b8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3150.0, "surface_area": 2350.0, "principal_moments": [33100.0, 629000.0, 629000.0], "n_faces": 330, "n_edges": 848, "n_vertices": 520}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 48.5, "min": 19.4, "max": 97.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003708 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 48.5, \"min\": 19.4, \"max\": 97.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d66fd_0007", "family": "gear", "tier": 1, "seed": 1234003709, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "e5e9d11256025caa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 46600.0, "surface_area": 12000.0, "principal_moments": [11200000.0, 11200000.0, 19300000.0], "n_faces": 87, "n_edges": 255, "n_vertices": 170}, "params": {"module": {"type": "float", "default": 4.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 14, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 19.8, "min": 7.9, "max": 49.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 7.1, "min": 2.0, "max": 27.6, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003709 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 14, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 19.8, \"min\": 7.9, \"max\": 49.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 7.1, \"min\": 2.0, \"max\": 27.6, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d66fe_0008", "family": "flanged", "tier": 2, "seed": 1234003710, "symmetry": "none", "op_count": 3, "ir_hash": "705ff62c2fe47262", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18200.0, "surface_area": 8000.0, "principal_moments": [2670000.0, 3680000.0, 3680000.0], "n_faces": 80, "n_edges": 216, "n_vertices": 127}, "params": {"outer_d": {"type": "float", "default": 26.39, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 36.4, "min": 10.9, "max": 91.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 11.0, "min": 2.0, "max": 18.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 50.3, "min": 34.3, "max": 79.2, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 2.3, "min": 0.7, "max": 14.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 15.1, "min": 10.1, "max": 22.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003710 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 26.39, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 36.4, \"min\": 10.9, \"max\": 91.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 11.0, \"min\": 2.0, \"max\": 18.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 50.3, \"min\": 34.3, \"max\": 79.2, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 2.3, \"min\": 0.7, \"max\": 14.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 15.1, \"min\": 10.1, \"max\": 22.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6704_0014", "family": "profiled", "tier": 2, "seed": 1234003716, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "226961d6386fffc4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 271000.0, "surface_area": 54000.0, "principal_moments": [92399999.99999999, 1270000000.0, 1270000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 45.88, "min": 22.9, "max": 91.8, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 232.5, "min": 69.8, "max": 697.5, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 24.9, "min": 2.0, "max": 36.7, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003716 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45.88, \"min\": 22.9, \"max\": 91.8, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 232.5, \"min\": 69.8, \"max\": 697.5, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 24.9, \"min\": 2.0, \"max\": 36.7, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6705_0015", "family": "plate", "tier": 0, "seed": 1234003717, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "b4087b613c81388f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39000.0, "surface_area": 17400.0, "principal_moments": [22400000.0, 28899999.999999996, 51199999.99999999], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 94.19, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 82.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003717 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 94.19, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 82.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6706_0016", "family": "compound", "tier": 1, "seed": 1234003718, "symmetry": "none", "op_count": 2, "ir_hash": "7251db0fc0b9b6c4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24500.0, "surface_area": 6860.0, "principal_moments": [3590000.0, 4630000.0, 4630000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 19.77, "min": 11.9, "max": 31.6, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 19.5, "min": 7.8, "max": 48.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 20.6, "min": 10.3, "max": 27.4, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 22.4, "min": 6.7, "max": 56.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 9.1, "min": 2.0, "max": 14.8, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003718 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 19.77, \"min\": 11.9, \"max\": 31.6, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 19.5, \"min\": 7.8, \"max\": 48.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 20.6, \"min\": 10.3, \"max\": 27.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 22.4, \"min\": 6.7, \"max\": 56.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 9.1, \"min\": 2.0, \"max\": 14.8, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6708_0018", "family": "flanged", "tier": 2, "seed": 1234003720, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "53a9a28f6a9a4648", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9550.0, "surface_area": 5070.0, "principal_moments": [962000.0, 962000.0, 1270000.0], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 25, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 18.9, "min": 5.7, "max": 47.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 8.0, "min": 2.0, "max": 17.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 41.0, "min": 32.5, "max": 75.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.1, "min": 0.9, "max": 7.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 12.3, "min": 8.2, "max": 18.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003720 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 18.9, \"min\": 5.7, \"max\": 47.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 17.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 41.0, \"min\": 32.5, \"max\": 75.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.1, \"min\": 0.9, \"max\": 7.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 12.3, \"min\": 8.2, \"max\": 18.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d670a_0020", "family": "bracket", "tier": 1, "seed": 1234003722, "symmetry": "none", "op_count": 1, "ir_hash": "46ec1f6cf668606e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12700.0, "surface_area": 5930.0, "principal_moments": [2210000.0, 2590000.0, 3660000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 33.64, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 36.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 22.94, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 9.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003722 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 33.64, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 36.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 22.94, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 9.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d670b_0021", "family": "revolved", "tier": 1, "seed": 1234003723, "symmetry": "none", "op_count": 1, "ir_hash": "b62b45ae2b940b1e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 266000.0, "surface_area": 42000.0, "principal_moments": [98699999.99999999, 707000000.0, 707000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 49.67, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 172.1, "min": 51.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 22.3, "min": 2.0, "max": 34.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003723 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 49.67, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 172.1, \"min\": 51.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 22.3, \"min\": 2.0, \"max\": 34.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d670c_0022", "family": "bracket", "tier": 2, "seed": 1234003724, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "1f4cd8a9dac69311", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7090.0, "surface_area": 3620.0, "principal_moments": [309000.0, 2200000.0, 2240000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 15.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 31.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 6.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 5.8, "min": 3.0, "max": 7.5, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003724 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 15.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 31.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 6.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.8, \"min\": 3.0, \"max\": 7.5, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d670d_0023", "family": "revolved", "tier": 0, "seed": 1234003725, "symmetry": "radial", "op_count": 1, "ir_hash": "c4ca459b817f874b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 190000.0, "surface_area": 31800.0, "principal_moments": [103000000.0, 167000000.0, 167000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 60, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 101.0, "min": 30.3, "max": 303.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003725 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 101.0, \"min\": 30.3, \"max\": 303.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d670e_0024", "family": "revolved", "tier": 1, "seed": 1234003726, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "9959875f129fb8c4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 134000.0, "surface_area": 28100.0, "principal_moments": [42300000.0, 139000000.0, 139000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 45.84, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 121.9, "min": 36.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003726 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45.84, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 121.9, \"min\": 36.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d670f_0025", "family": "gear", "tier": 2, "seed": 1234003727, "symmetry": "none", "op_count": 1, "ir_hash": "9ab6c4907c35954e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17200.0, "surface_area": 7120.0, "principal_moments": [3300000.0, 3300000.0, 6410000.0], "n_faces": 153, "n_edges": 453, "n_vertices": 302}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 25, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 8.0, "min": 3.2, "max": 20.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 19.1, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.14, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.35, "min": 0.0, "max": 1.0, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 9.8, "min": 2.0, "max": 27.0, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003727 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 25, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.2, \"max\": 20.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 19.1, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.14, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.35, \"min\": 0.0, \"max\": 1.0, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 9.8, \"min\": 2.0, \"max\": 27.0, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6710_0026", "family": "revolved", "tier": 0, "seed": 1234003728, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "6ce47941b45a21c1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14300.0, "surface_area": 6370.0, "principal_moments": [1000000.0, 3440000.0, 3440000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 21.6, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 58.7, "min": 17.6, "max": 176.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003728 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 21.6, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 58.7, \"min\": 17.6, \"max\": 176.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6711_0027", "family": "plate", "tier": 1, "seed": 1234003729, "symmetry": "none", "op_count": 2, "ir_hash": "5a0e52192f7e441c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 93700.0, "surface_area": 27300.0, "principal_moments": [79200000.0, 107000000.0, 185000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 117.09, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 100.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003729 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 117.09, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 100.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6712_0028", "family": "block", "tier": 1, "seed": 1234003730, "symmetry": "none", "op_count": 2, "ir_hash": "f9055d8d0f49229d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10700.0, "surface_area": 4800.0, "principal_moments": [544000.0, 1500000.0, 1630000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 20, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 15.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 38.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003730 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 15.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 38.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6714_0030", "family": "profiled", "tier": 2, "seed": 1234003732, "symmetry": "none", "op_count": 1, "ir_hash": "432050d5920522d6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 245000.0, "surface_area": 73600.0, "principal_moments": [92099999.99999999, 1880000000.0, 1880000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 45, "min": 22.5, "max": 90.0, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 300.0, "min": 90.0, "max": 900.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 31.4, "min": 2.0, "max": 36.0, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003732 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45, \"min\": 22.5, \"max\": 90.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 300.0, \"min\": 90.0, \"max\": 900.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 31.4, \"min\": 2.0, \"max\": 36.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6715_0031", "family": "plate", "tier": 0, "seed": 1234003733, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "587e60418031d3ec", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6060.0, "surface_area": 3180.0, "principal_moments": [282000.0, 1400000.0, 1660000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 52.47, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 23.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003733 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 52.47, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 23.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6716_0032", "family": "bracket", "tier": 1, "seed": 1234003734, "symmetry": "none", "op_count": 1, "ir_hash": "8ade192ba8e36b45", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12000.0, "surface_area": 4230.0, "principal_moments": [1220000.0, 1540000.0, 2170000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"base_len": {"type": "float", "default": 25.28, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35.33, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003734 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 25.28, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35.33, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07996959209224744)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6718_0034", "family": "bracket", "tier": 1, "seed": 1234003736, "symmetry": "none", "op_count": 1, "ir_hash": "ee4787e6a91ce07d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7610.0, "surface_area": 4190.0, "principal_moments": [509000.0, 2170000.0, 2190000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 30.29, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 31.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 26.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003736 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30.29, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 31.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 26.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6719_0035", "family": "block", "tier": 2, "seed": 1234003737, "symmetry": "none", "op_count": 3, "ir_hash": "ebde2982696888a1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 95000.0, "surface_area": 17200.0, "principal_moments": [27899999.999999996, 49299999.99999999, 68600000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 23.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 75.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003737 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 23.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 75.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.045880815506690424)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d671a_0036", "family": "revolved", "tier": 2, "seed": 1234003738, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "afeae39ff3402e9d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 65400.0, "surface_area": 15100.0, "principal_moments": [12699999.999999998, 42200000.0, 42200000.0], "n_faces": 12, "n_edges": 20, "n_vertices": 12}, "params": {"outer_d": {"type": "float", "default": 36.21, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 80.6, "min": 24.2, "max": 241.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 15.9, "min": 2.0, "max": 25.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 2.21, "min": 0.88, "max": 6.63, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 6.06, "min": 2.42, "max": 18.18, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 50.8, "min": 12.1, "max": 68.5, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.7, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003738 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 36.21, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 80.6, \"min\": 24.2, \"max\": 241.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 15.9, \"min\": 2.0, \"max\": 25.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 2.21, \"min\": 0.88, \"max\": 6.63, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 6.06, \"min\": 2.42, \"max\": 18.18, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 50.8, \"min\": 12.1, \"max\": 68.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.7, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d671d_0039", "family": "enclosure", "tier": 2, "seed": 1234003741, "symmetry": "none", "op_count": 3, "ir_hash": "e8b56496fb561a6e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 75000.0, "surface_area": 61200.0, "principal_moments": [83000000.0, 162000000.0, 175000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 117.54, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 64.5, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 66.8, "min": 26.7, "max": 133.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.5, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003741 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 117.54, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 64.5, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 66.8, \"min\": 26.7, \"max\": 133.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.5, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d671e_0040", "family": "ribbed", "tier": 2, "seed": 1234003742, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "8ca39a915782ce9d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7050.0, "surface_area": 4830.0, "principal_moments": [727000.0, 1970000.0, 2590000.0], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 49.41, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 30.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 6.6, "min": 2.6, "max": 13.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.9, "min": 1.0, "max": 12.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003742 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 49.41, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 30.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 6.6, \"min\": 2.6, \"max\": 13.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.9, \"min\": 1.0, \"max\": 12.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d671f_0041", "family": "gear", "tier": 0, "seed": 1234003743, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "0c826eaae8a0a4b6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7090.0, "surface_area": 3740.0, "principal_moments": [665000.0, 665000.0, 1280000.0], "n_faces": 230, "n_edges": 684, "n_vertices": 456}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 38, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.3, "min": 2.5, "max": 15.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003743 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 38, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.3, \"min\": 2.5, \"max\": 15.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6721_0043", "family": "threaded", "tier": 0, "seed": 1234003745, "symmetry": "none", "op_count": 1, "ir_hash": "f139b16b5ff9f7b6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10300.0, "surface_area": 4800.0, "principal_moments": [285000.0, 3210000.0, 3210000.0], "n_faces": 537, "n_edges": 1481, "n_vertices": 946}, "params": {"major_d": {"type": "float", "default": 16.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.0, "min": 1.0, "max": 4.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 60.0, "min": 24.0, "max": 120.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003745 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 4.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 60.0, \"min\": 24.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6722_0044", "family": "threaded", "tier": 1, "seed": 1234003746, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "1468760d729c7add", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 502.0, "surface_area": 638.0, "principal_moments": [1870.0, 20900.0, 20900.0], "n_faces": 225, "n_edges": 577, "n_vertices": 354}, "params": {"major_d": {"type": "float", "default": 6.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.0, "min": 0.5, "max": 2.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 22.0, "min": 8.8, "max": 44.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003746 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.5, \"max\": 2.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 22.0, \"min\": 8.8, \"max\": 44.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6723_0045", "family": "threaded", "tier": 1, "seed": 1234003747, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "7f0003536ab04059", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23100.0, "surface_area": 7390.0, "principal_moments": [1440000.0, 7590000.0, 7590000.0], "n_faces": 357, "n_edges": 981, "n_vertices": 626}, "params": {"major_d": {"type": "float", "default": 24.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 3.0, "min": 1.5, "max": 6.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 60.0, "min": 24.0, "max": 120.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003747 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 24.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.5, \"max\": 6.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 60.0, \"min\": 24.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6724_0046", "family": "revolved", "tier": 2, "seed": 1234003748, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "d4242909bf8af1f7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 88200.0, "surface_area": 23300.0, "principal_moments": [49099999.99999999, 49099999.99999999, 72300000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 50.5, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 39.9, "min": 12.0, "max": 119.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 28.7, "min": 2.0, "max": 35.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 95.0, "min": 60.6, "max": 151.5, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.8, "min": 2.0, "max": 19.9, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.2, "min": 0.1, "max": 3.6, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003748 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50.5, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 39.9, \"min\": 12.0, \"max\": 119.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 28.7, \"min\": 2.0, \"max\": 35.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 95.0, \"min\": 60.6, \"max\": 151.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.8, \"min\": 2.0, \"max\": 19.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.2, \"min\": 0.1, \"max\": 3.6, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6726_0048", "family": "compound", "tier": 1, "seed": 1234003750, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "645b087f43d664df", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 88400.0, "surface_area": 21200.0, "principal_moments": [59299999.99999999, 62099999.99999999, 67700000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_w": {"type": "float", "default": 65, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 74.6, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 16.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 16.4, "min": 6.6, "max": 32.5, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 77.9, "min": 23.4, "max": 233.7, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 7.6, "min": 2.0, "max": 11.8, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003750 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 65, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 74.6, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 16.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 16.4, \"min\": 6.6, \"max\": 32.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 77.9, \"min\": 23.4, \"max\": 233.7, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 7.6, \"min\": 2.0, \"max\": 11.8, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6727_0049", "family": "block", "tier": 2, "seed": 1234003751, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "d132bb915e9c0932", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 62400.0, "surface_area": 14900.0, "principal_moments": [14399999.999999998, 26699999.999999996, 27299999.999999996], "n_faces": 16, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 58.16, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 35.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 36.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "pocket_w": {"type": "float", "default": 35.8, "min": 17.9, "max": 46.5, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 17.8, "min": 8.9, "max": 28.6, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 19.4, "min": 7.8, "max": 31.2, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003751 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 58.16, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 35.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 36.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"pocket_w\": {\"type\": 'float', \"default\": 35.8, \"min\": 17.9, \"max\": 46.5, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 17.8, \"min\": 8.9, \"max\": 28.6, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 19.4, \"min\": 7.8, \"max\": 31.2, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 21.8\n _ssy = 25.9\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6728_0050", "family": "gear", "tier": 1, "seed": 1234003752, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "7ba2ae0c91e41fa1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6590.0, "surface_area": 3410.0, "principal_moments": [490000.0, 490000.0, 904000.0], "n_faces": 159, "n_edges": 471, "n_vertices": 314}, "params": {"module": {"type": "float", "default": 1.25, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 26, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 8.3, "min": 3.3, "max": 20.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 5.7, "min": 2.0, "max": 17.6, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003752 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.25, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 26, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 8.3, \"min\": 3.3, \"max\": 20.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.0, \"max\": 17.6, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6729_0051", "family": "bracket", "tier": 1, "seed": 1234003753, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d7699abfbcd0171d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12800.0, "surface_area": 5160.0, "principal_moments": [1480000.0, 4160000.0, 4750000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 46.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003753 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 46.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d672b_0053", "family": "plate", "tier": 0, "seed": 1234003755, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "b32123601ef1634e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 49000.0, "surface_area": 11600.0, "principal_moments": [6860000.0, 44900000.0, 50499999.99999999], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 104.14, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 39.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003755 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 104.14, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 39.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d672c_0054", "family": "bracket", "tier": 1, "seed": 1234003756, "symmetry": "none", "op_count": 1, "ir_hash": "7aa479dd17100a68", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28600.0, "surface_area": 15900.0, "principal_moments": [7720000.0, 30599999.999999996, 33800000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 56.37, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 42.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 47.9, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 58.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003756 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 56.37, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 42.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 47.9, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 58.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d672e_0056", "family": "compound", "tier": 1, "seed": 1234003758, "symmetry": "none", "op_count": 3, "ir_hash": "f09390d5d36dfaac", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 293000.0, "surface_area": 31700.0, "principal_moments": [195000000.0, 223000000.0, 290000000.0], "n_faces": 14, "n_edges": 34, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 72.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 50.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 12.3, "min": 4.9, "max": 22.9, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 14.5, "min": 3.1, "max": 36.9, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 6.5, "min": 2.0, "max": 8.9, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003758 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 72.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 50.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 12.3, \"min\": 4.9, \"max\": 22.9, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 14.5, \"min\": 3.1, \"max\": 36.9, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 6.5, \"min\": 2.0, \"max\": 8.9, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6730_0058", "family": "compound", "tier": 1, "seed": 1234003760, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "1ae2724563994e6b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 93000.0, "surface_area": 13300.0, "principal_moments": [21200000.0, 45400000.0, 49699999.99999999], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 66.38, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 41.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 33.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 7.0, "min": 3.5, "max": 11.7, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 17.6, "min": 3.4, "max": 45.3, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003760 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 66.38, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 41.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 33.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 7.0, \"min\": 3.5, \"max\": 11.7, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 17.6, \"min\": 3.4, \"max\": 45.3, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"spig_sides\"], p[\"spig_r\"] * 2).extrude(p[\"spig_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6731_0059", "family": "plate", "tier": 0, "seed": 1234003761, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "cb92ec544f6f41bf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4190.0, "surface_area": 2640.0, "principal_moments": [195000.0, 713000.0, 897000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 23.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003761 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 23.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6732_0060", "family": "plate", "tier": 2, "seed": 1234003762, "symmetry": "none", "op_count": 3, "ir_hash": "ec4d399bfe6a79a5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21500.0, "surface_area": 6640.0, "principal_moments": [2370000.0, 5440000.0, 7290000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 35.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 7.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003762 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 35.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 7.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09608467861128618)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6733_0061", "family": "plate", "tier": 0, "seed": 1234003763, "symmetry": "none", "op_count": 1, "ir_hash": "d86afab8bbca280b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1870.0, "surface_area": 2130.0, "principal_moments": [86000.0, 250000.0, 335000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 40, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 23.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003763 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 23.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6734_0062", "family": "ribbed", "tier": 1, "seed": 1234003764, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "55f0e4370b50f686", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16900.0, "surface_area": 9580.0, "principal_moments": [2960000.0, 4780000.0, 6120000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 38.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 18.6, "min": 7.4, "max": 37.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.3, "min": 1.0, "max": 8.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003764 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 38.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 18.6, \"min\": 7.4, \"max\": 37.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.3, \"min\": 1.0, \"max\": 8.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6735_0063", "family": "bracket", "tier": 1, "seed": 1234003765, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "c662acb3a45b30cc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11000.0, "surface_area": 8170.0, "principal_moments": [2650000.0, 3880000.0, 4960000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 41.98, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 43.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003765 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 41.98, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 43.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6737_0065", "family": "enclosure", "tier": 1, "seed": 1234003767, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "151024f2423ca501", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 50300.0, "surface_area": 30500.0, "principal_moments": [28599999.999999996, 52399999.99999999, 60699999.99999999], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 83.93, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 51.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 44.4, "min": 17.8, "max": 88.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.4, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003767 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 83.93, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 51.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 44.4, \"min\": 17.8, \"max\": 88.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.4, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6738_0066", "family": "compound", "tier": 1, "seed": 1234003768, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "2b240bd906490b99", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 78600.0, "surface_area": 11800.0, "principal_moments": [12599999.999999998, 53499999.99999999, 53499999.99999999], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 38.31, "min": 19.2, "max": 69.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 56.5, "min": 22.6, "max": 113.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 19.9, "min": 9.9, "max": 34.5, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 43.3, "min": 13.0, "max": 108.2, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003768 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 38.31, \"min\": 19.2, \"max\": 69.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 56.5, \"min\": 22.6, \"max\": 113.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 19.9, \"min\": 9.9, \"max\": 34.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 43.3, \"min\": 13.0, \"max\": 108.2, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6739_0067", "family": "plate", "tier": 0, "seed": 1234003769, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "042a7dafdd156cb7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25400.0, "surface_area": 10000.0, "principal_moments": [7830000.0, 10500000.0, 18100000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 70, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 60.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003769 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 60.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d673a_0068", "family": "threaded", "tier": 2, "seed": 1234003770, "symmetry": "none", "op_count": 1, "ir_hash": "6bf2cba8abb3a845", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10300.0, "surface_area": 4750.0, "principal_moments": [347000.0, 2390000.0, 2390000.0], "n_faces": 135, "n_edges": 347, "n_vertices": 214}, "params": {"thread_size": {"type": "enum", "default": "18x4", "choices": ["8x1.5", "10x2", "12x3", "14x3", "16x4", "18x4", "20x4", "24x5", "28x5", "30x6", "36x6", "40x7"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 51.5, "min": 20.6, "max": 103.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003770 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '18x4', \"choices\": ['8x1.5', '10x2', '12x3', '14x3', '16x4', '18x4', '20x4', '24x5', '28x5', '30x6', '36x6', '40x7'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 51.5, \"min\": 20.6, \"max\": 103.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.MetricTrapezoidalThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d673b_0069", "family": "threaded", "tier": 1, "seed": 1234003771, "symmetry": "none", "op_count": 1, "ir_hash": "3cd49a1be4438f9b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6130.0, "surface_area": 2960.0, "principal_moments": [169000.0, 732000.0, 732000.0], "n_faces": 313, "n_edges": 857, "n_vertices": 546}, "params": {"major_d": {"type": "float", "default": 16.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.0, "min": 1.0, "max": 4.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 35.8, "min": 14.3, "max": 71.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003771 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 4.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 35.8, \"min\": 14.3, \"max\": 71.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d673c_0070", "family": "ribbed", "tier": 2, "seed": 1234003772, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "62a73f104977de9e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14200.0, "surface_area": 9460.0, "principal_moments": [2770000.0, 4360000.0, 6500000.0], "n_faces": 21, "n_edges": 48, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 46.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 12.9, "min": 5.2, "max": 25.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.8, "min": 1.0, "max": 9.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003772 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 46.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 12.9, \"min\": 5.2, \"max\": 25.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.8, \"min\": 1.0, \"max\": 9.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d673e_0072", "family": "revolved", "tier": 0, "seed": 1234003774, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "17ed79615d6b800f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 891.0, "surface_area": 791.0, "principal_moments": [16600.0, 16600.0, 22100.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 12.85, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 10.3, "min": 3.1, "max": 30.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003774 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 12.85, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 10.3, \"min\": 3.1, \"max\": 30.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d673f_0073", "family": "block", "tier": 2, "seed": 1234003775, "symmetry": "radial", "op_count": 3, "ir_hash": "4a2adbd64e9c4dd3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 80300.0, "surface_area": 19300.0, "principal_moments": [20400000.0, 38100000.0, 42400000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 41.58, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 34.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 67.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 12.5, "min": 8.3, "max": 18.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003775 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 41.58, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 34.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 67.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 12.5, \"min\": 8.3, \"max\": 18.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.09854502951021821)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6740_0074", "family": "compound", "tier": 2, "seed": 1234003776, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "bb963fbf39174260", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 123000.0, "surface_area": 46300.0, "principal_moments": [171000000.0, 368000000.0, 380000000.0], "n_faces": 28, "n_edges": 75, "n_vertices": 50}, "params": {"base_w": {"type": "float", "default": 110, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 118.2, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 6.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 12.6, "min": 6.3, "max": 27.5, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 158.0, "min": 47.4, "max": 474.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 12.1, "min": 2.0, "max": 15.7, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003776 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 110, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 118.2, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 12.6, \"min\": 6.3, \"max\": 27.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 158.0, \"min\": 47.4, \"max\": 474.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 12.1, \"min\": 2.0, \"max\": 15.7, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_w\"], p[\"base_d\"]) * 0.045606211557377346)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6741_0075", "family": "plate", "tier": 0, "seed": 1234003777, "symmetry": "radial", "op_count": 1, "ir_hash": "88ec8f8fc56d78ac", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8640.0, "surface_area": 3260.0, "principal_moments": [461000.0, 1500000.0, 1870000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 24.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003777 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 24.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6742_0076", "family": "revolved", "tier": 1, "seed": 1234003778, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8e2a64b300238bc6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 258000.0, "surface_area": 40400.0, "principal_moments": [153000000.0, 315000000.0, 315000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 62.83, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 124.8, "min": 37.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003778 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 62.83, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 124.8, \"min\": 37.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6743_0077", "family": "threaded", "tier": 2, "seed": 1234003779, "symmetry": "none", "op_count": 1, "ir_hash": "1c0ef7c82702267c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1090.0, "surface_area": 1390.0, "principal_moments": [4520.0, 178000.0, 178000.0], "n_faces": 285, "n_edges": 733, "n_vertices": 450}, "params": {"thread_size": {"type": "enum", "default": "1/4", "choices": ["1/4", "5/16", "3/8", "1/2", "5/8", "3/4", "7/8", "1", "1 1/4", "1 1/2"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 44.4, "min": 17.8, "max": 88.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003779 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '1/4', \"choices\": ['1/4', '5/16', '3/8', '1/2', '5/8', '3/4', '7/8', '1', '1 1/4', '1 1/2'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 44.4, \"min\": 17.8, \"max\": 88.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.AcmeThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6744_0078", "family": "revolved", "tier": 0, "seed": 1234003780, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "2d0a75ed4256704d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1360.0, "surface_area": 1310.0, "principal_moments": [20300.0, 64200.0, 64200.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 10, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 25.9, "min": 7.8, "max": 77.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003780 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 10, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 25.9, \"min\": 7.8, \"max\": 77.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6745_0079", "family": "compound", "tier": 2, "seed": 1234003781, "symmetry": "mirror_x", "op_count": 5, "ir_hash": "590240d0130dbda1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 209000.0, "surface_area": 25800.0, "principal_moments": [107000000.0, 136000000.0, 143000000.0], "n_faces": 36, "n_edges": 94, "n_vertices": 61}, "params": {"block_w": {"type": "float", "default": 69.13, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 56.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 53.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 8.1, "min": 4.0, "max": 12.1, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 7.3, "min": 3.5, "max": 42.1, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 5.6, "min": 2.0, "max": 10.1, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 12.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003781 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 69.13, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 56.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 53.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 8.1, \"min\": 4.0, \"max\": 12.1, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 7.3, \"min\": 3.5, \"max\": 42.1, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 5.6, \"min\": 2.0, \"max\": 10.1, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 12.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6746_0080", "family": "gear", "tier": 0, "seed": 1234003782, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "5661e223459bfc73", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11900.0, "surface_area": 5640.0, "principal_moments": [1810000.0, 1810000.0, 3530000.0], "n_faces": 236, "n_edges": 702, "n_vertices": 468}, "params": {"module": {"type": "float", "default": 1.25, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 39, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.4, "min": 2.6, "max": 16.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003782 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.25, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 39, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.6, \"max\": 16.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6747_0081", "family": "enclosure", "tier": 2, "seed": 1234003783, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "2ef67ab11ad68674", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 107000.0, "surface_area": 59300.0, "principal_moments": [134000000.0, 190000000.0, 221000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 100.63, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 73.7, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 68.3, "min": 27.3, "max": 136.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.7, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003783 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 100.63, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 73.7, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 68.3, \"min\": 27.3, \"max\": 136.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.7, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6748_0082", "family": "threaded", "tier": 2, "seed": 1234003784, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "179064508e60ed68", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3280.0, "surface_area": 2630.0, "principal_moments": [34600.0, 726000.0, 726000.0], "n_faces": 260, "n_edges": 666, "n_vertices": 408}, "params": {"thread_size": {"type": "enum", "default": "10x2", "choices": ["8x1.5", "10x2", "12x3", "14x3", "16x4", "18x4", "20x4", "24x5", "28x5", "30x6", "36x6", "40x7"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 51.3, "min": 20.5, "max": 102.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003784 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '10x2', \"choices\": ['8x1.5', '10x2', '12x3', '14x3', '16x4', '18x4', '20x4', '24x5', '28x5', '30x6', '36x6', '40x7'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 51.3, \"min\": 20.5, \"max\": 102.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.MetricTrapezoidalThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6749_0083", "family": "flanged", "tier": 1, "seed": 1234003785, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "0ee47e6d274580f9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12000.0, "surface_area": 6500.0, "principal_moments": [1900000.0, 1900000.0, 3450000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 25, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 13.9, "min": 4.2, "max": 34.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 10.8, "min": 2.0, "max": 17.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 54.1, "min": 32.5, "max": 75.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.8, "min": 1.1, "max": 5.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 16.2, "min": 10.8, "max": 24.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003785 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 13.9, \"min\": 4.2, \"max\": 34.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 10.8, \"min\": 2.0, \"max\": 17.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 54.1, \"min\": 32.5, \"max\": 75.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.8, \"min\": 1.1, \"max\": 5.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 16.2, \"min\": 10.8, \"max\": 24.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d674a_0084", "family": "bracket", "tier": 1, "seed": 1234003786, "symmetry": "none", "op_count": 1, "ir_hash": "a1c72c1d88b93fc8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26000.0, "surface_area": 11100.0, "principal_moments": [9440000.0, 11000000.0, 15899999.999999998], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 46.38, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 52.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 31.88, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003786 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 46.38, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 52.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 31.88, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d674b_0085", "family": "revolved", "tier": 1, "seed": 1234003787, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "459584a630a9c055", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3740.0, "surface_area": 2530.0, "principal_moments": [241000.0, 241000.0, 399000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 19.77, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 11.5, "min": 3.4, "max": 34.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 11.3, "min": 2.0, "max": 13.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 32.0, "min": 23.7, "max": 59.3, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 2.9, "min": 0.9, "max": 5.8, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003787 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 19.77, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 11.5, \"min\": 3.4, \"max\": 34.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 11.3, \"min\": 2.0, \"max\": 13.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 32.0, \"min\": 23.7, \"max\": 59.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 2.9, \"min\": 0.9, \"max\": 5.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d674d_0087", "family": "block", "tier": 1, "seed": 1234003789, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "624c649a44b34b27", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33500.0, "surface_area": 11200.0, "principal_moments": [5170000.0, 7530000.0, 10600000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 40, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 20.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 48.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.2, "min": 2.0, "max": 5.9, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003789 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 20.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 48.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 5.9, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d674e_0088", "family": "bracket", "tier": 1, "seed": 1234003790, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "75dc49af68ee294d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12800.0, "surface_area": 9390.0, "principal_moments": [3560000.0, 4990000.0, 6770000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 38.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003790 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 38.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z or Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6753_0093", "family": "flanged", "tier": 1, "seed": 1234003795, "symmetry": "none", "op_count": 2, "ir_hash": "812aa365939b0b4e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 256000.0, "surface_area": 45000.0, "principal_moments": [268000000.0, 268000000.0, 449000000.0], "n_faces": 17, "n_edges": 60, "n_vertices": 40}, "params": {"outer_d": {"type": "float", "default": 80.1, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 44.8, "min": 13.4, "max": 112.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 42.7, "min": 2.0, "max": 56.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 129.5, "min": 104.1, "max": 240.3, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 12.4, "min": 3.7, "max": 17.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 38.9, "min": 25.9, "max": 58.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003795 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 80.1, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 44.8, \"min\": 13.4, \"max\": 112.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 42.7, \"min\": 2.0, \"max\": 56.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 129.5, \"min\": 104.1, \"max\": 240.3, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 12.4, \"min\": 3.7, \"max\": 17.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 38.9, \"min\": 25.9, \"max\": 58.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6754_0094", "family": "plate", "tier": 0, "seed": 1234003796, "symmetry": "radial", "op_count": 1, "ir_hash": "1643f242b3fc371f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22800.0, "surface_area": 10600.0, "principal_moments": [4060000.0, 18900000.0, 22799999.999999996], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 99.5, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 45.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003796 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 99.5, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 45.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6755_0095", "family": "threaded", "tier": 2, "seed": 1234003797, "symmetry": "none", "op_count": 1, "ir_hash": "e6dd360789fa4bd0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29700.0, "surface_area": 8120.0, "principal_moments": [3220000.0, 6450000.0, 6450000.0], "n_faces": 95, "n_edges": 239, "n_vertices": 146}, "params": {"thread_size": {"type": "enum", "default": "1 1/4", "choices": ["1/4", "5/16", "3/8", "1/2", "5/8", "3/4", "7/8", "1", "1 1/4", "1 1/2"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 44.8, "min": 17.9, "max": 89.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003797 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '1 1/4', \"choices\": ['1/4', '5/16', '3/8', '1/2', '5/8', '3/4', '7/8', '1', '1 1/4', '1 1/2'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 44.8, \"min\": 17.9, \"max\": 89.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.AcmeThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6756_0096", "family": "revolved", "tier": 2, "seed": 1234003798, "symmetry": "none", "op_count": 2, "ir_hash": "3146a4f449968576", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10100.0, "surface_area": 3780.0, "principal_moments": [830000.0, 1160000.0, 1160000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 23.37, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 29.9, "min": 9.0, "max": 89.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 10.7, "min": 2.0, "max": 16.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003798 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 23.37, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 29.9, \"min\": 9.0, \"max\": 89.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 10.7, \"min\": 2.0, \"max\": 16.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d675b_0101", "family": "revolved", "tier": 0, "seed": 1234003803, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d04b7459d56055a2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 505000.0, "surface_area": 65400.0, "principal_moments": [426000000.0, 1090000000.0, 1090000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 171.3, "min": 51.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003803 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 171.3, \"min\": 51.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d675c_0102", "family": "revolved", "tier": 1, "seed": 1234003804, "symmetry": "none", "op_count": 2, "ir_hash": "b921ec373cf495b9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1110000.0, "surface_area": 120000.0, "principal_moments": [1640000000.0, 5090000000.0, 5090000000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 76.57, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 251.5, "min": 75.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 131.0, "min": 91.9, "max": 229.7, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 37.6, "min": 11.3, "max": 125.8, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 1.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003804 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 76.57, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 251.5, \"min\": 75.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 131.0, \"min\": 91.9, \"max\": 229.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 37.6, \"min\": 11.3, \"max\": 125.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 1.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6760_0106", "family": "revolved", "tier": 0, "seed": 1234003808, "symmetry": "none", "op_count": 1, "ir_hash": "f44a7c934f778102", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 883000.0, "surface_area": 106000.0, "principal_moments": [826000000.0, 4250000000.0, 4250000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 78.95, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 270.6, "min": 81.2, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003808 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 78.95, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 270.6, \"min\": 81.2, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6761_0107", "family": "compound", "tier": 1, "seed": 1234003809, "symmetry": "none", "op_count": 2, "ir_hash": "1e30e360e03ab79f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2400.0, "surface_area": 1620.0, "principal_moments": [102000.0, 102000.0, 105000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 10.54, "min": 6.3, "max": 16.9, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 6.3, "min": 2.5, "max": 15.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 8.6, "min": 4.3, "max": 15.6, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 12.6, "min": 3.8, "max": 31.5, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 4.6, "min": 2.0, "max": 6.2, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003809 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 10.54, \"min\": 6.3, \"max\": 16.9, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 6.3, \"min\": 2.5, \"max\": 15.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 8.6, \"min\": 4.3, \"max\": 15.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 12.6, \"min\": 3.8, \"max\": 31.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 4.6, \"min\": 2.0, \"max\": 6.2, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6762_0108", "family": "bracket", "tier": 1, "seed": 1234003810, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "69eb2cdc76681f7f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23700.0, "surface_area": 10000.0, "principal_moments": [5690000.0, 20600000.0, 22700000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 59.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 29.97, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003810 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 59.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 29.97, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6764_0110", "family": "compound", "tier": 1, "seed": 1234003812, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "abd02ee01eec26d9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 55700.0, "surface_area": 8890.0, "principal_moments": [10800000.0, 16800000.0, 16800000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 41.72, "min": 20.9, "max": 75.1, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 35.0, "min": 14.0, "max": 70.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 19.9, "min": 9.9, "max": 37.5, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 25.1, "min": 7.5, "max": 62.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003812 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 41.72, \"min\": 20.9, \"max\": 75.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 35.0, \"min\": 14.0, \"max\": 70.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 19.9, \"min\": 9.9, \"max\": 37.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 25.1, \"min\": 7.5, \"max\": 62.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6765_0111", "family": "revolved", "tier": 1, "seed": 1234003813, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "2aaab8ffac396ed0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13000.0, "surface_area": 7030.0, "principal_moments": [1980000.0, 1980000.0, 3600000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 35, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 15.2, "min": 4.6, "max": 45.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 57.3, "min": 42.0, "max": 105.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 2.1, "min": 0.6, "max": 7.6, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.1, "min": 0.1, "max": 3.3, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003813 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 15.2, \"min\": 4.6, \"max\": 45.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 57.3, \"min\": 42.0, \"max\": 105.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 2.1, \"min\": 0.6, \"max\": 7.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.1, \"min\": 0.1, \"max\": 3.3, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.07954430170386119)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6767_0113", "family": "block", "tier": 1, "seed": 1234003815, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "00182dd00b27ce39", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 85200.0, "surface_area": 14900.0, "principal_moments": [19700000.0, 37200000.0, 41000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 41.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 33.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003815 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 41.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 33.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6768_0114", "family": "enclosure", "tier": 1, "seed": 1234003816, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "3be025b0974fdbdb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29600.0, "surface_area": 24300.0, "principal_moments": [11300000.0, 27399999.999999996, 27399999.999999996], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 80, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 35.4, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 43.3, "min": 17.3, "max": 86.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.5, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003816 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 80, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 35.4, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 43.3, \"min\": 17.3, \"max\": 86.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.5, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6769_0115", "family": "enclosure", "tier": 1, "seed": 1234003817, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "1e6685017b62ffe5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 73300.0, "surface_area": 70600.0, "principal_moments": [123000000.0, 145000000.0, 196000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 105, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 91.2, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 68.0, "min": 27.2, "max": 136.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.1, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003817 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 105, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 91.2, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 68.0, \"min\": 27.2, \"max\": 136.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.1, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d676a_0116", "family": "compound", "tier": 1, "seed": 1234003818, "symmetry": "none", "op_count": 3, "ir_hash": "cbfdb9e4da7893b8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 519000.0, "surface_area": 47500.0, "principal_moments": [540000000.0, 551000000.0, 677000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 21}, "params": {"block_w": {"type": "float", "default": 87.94, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 86.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 68.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 16.6, "min": 6.6, "max": 31.0, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 22.6, "min": 4.2, "max": 49.8, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 9.5, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003818 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 87.94, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 86.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 68.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 16.6, \"min\": 6.6, \"max\": 31.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 22.6, \"min\": 4.2, \"max\": 49.8, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 9.5, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d676b_0117", "family": "bracket", "tier": 1, "seed": 1234003819, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d9568202a72078f4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12200.0, "surface_area": 9030.0, "principal_moments": [2210000.0, 4150000.0, 4840000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 27.77, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 57.37, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003819 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 27.77, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 57.37, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d676c_0118", "family": "bracket", "tier": 1, "seed": 1234003820, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "1977e40ac3487c08", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13400.0, "surface_area": 7960.0, "principal_moments": [1760000.0, 8000000.0, 8270000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 37.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 38.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003820 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 37.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 38.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d676d_0119", "family": "ribbed", "tier": 2, "seed": 1234003821, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "e51b94e233019ed8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12300.0, "surface_area": 8550.0, "principal_moments": [1880000.0, 2530000.0, 3630000.0], "n_faces": 29, "n_edges": 84, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 40.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.2, "min": 6.5, "max": 32.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003821 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 40.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.2, \"min\": 6.5, \"max\": 32.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d676e_0120", "family": "revolved", "tier": 2, "seed": 1234003822, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ecf98750135c6828", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 532000.0, "surface_area": 75000.0, "principal_moments": [611000000.0, 1260000000.0, 1260000000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 65, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 168.6, "min": 50.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 120.9, "min": 78.0, "max": 195.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 19.5, "min": 5.8, "max": 84.3, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003822 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 168.6, \"min\": 50.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 120.9, \"min\": 78.0, \"max\": 195.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 19.5, \"min\": 5.8, \"max\": 84.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6770_0122", "family": "bracket", "tier": 1, "seed": 1234003824, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "6d5d0d1207528145", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35600.0, "surface_area": 11700.0, "principal_moments": [9190000.0, 18600000.0, 19000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 54.43, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 36.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003824 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 54.43, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 36.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6771_0123", "family": "plate", "tier": 1, "seed": 1234003825, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "cc37d24b8993a7c5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4440.0, "surface_area": 3560.0, "principal_moments": [355000.0, 873000.0, 1220000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 48.75, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 31.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003825 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 48.75, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 31.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6772_0124", "family": "compound", "tier": 2, "seed": 1234003826, "symmetry": "none", "op_count": 3, "ir_hash": "a63ad0c8edca3f31", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5720.0, "surface_area": 2100.0, "principal_moments": [191000.0, 630000.0, 630000.0], "n_faces": 20, "n_edges": 51, "n_vertices": 34}, "params": {"base_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 10.0, "min": 6.0, "max": 16.0, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 11.7, "min": 4.7, "max": 29.2, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 11.8, "min": 5.9, "max": 14.8, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 22.1, "min": 6.6, "max": 55.2, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003826 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 10.0, \"min\": 6.0, \"max\": 16.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 11.7, \"min\": 4.7, \"max\": 29.2, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 11.8, \"min\": 5.9, \"max\": 14.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 22.1, \"min\": 6.6, \"max\": 55.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_r\"], p[\"base_r\"]) * 0.10662041512286091)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6773_0125", "family": "compound", "tier": 1, "seed": 1234003827, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "7dc684a525514938", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 90100.0, "surface_area": 20100.0, "principal_moments": [21700000.0, 77000000.0, 77000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 43.01, "min": 21.5, "max": 77.4, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 56.5, "min": 22.6, "max": 113.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 29.9, "min": 14.9, "max": 38.7, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 46.9, "min": 14.1, "max": 117.2, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 17.5, "min": 2.0, "max": 21.5, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003827 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 43.01, \"min\": 21.5, \"max\": 77.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 56.5, \"min\": 22.6, \"max\": 113.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 29.9, \"min\": 14.9, \"max\": 38.7, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 46.9, \"min\": 14.1, \"max\": 117.2, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 17.5, \"min\": 2.0, \"max\": 21.5, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6774_0126", "family": "flanged", "tier": 1, "seed": 1234003828, "symmetry": "radial", "op_count": 2, "ir_hash": "456c9b15a68b78db", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 537000.0, "surface_area": 74500.0, "principal_moments": [802000000.0, 802000000.0, 1160000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 95, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 64.3, "min": 19.3, "max": 160.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 31.7, "min": 2.0, "max": 66.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 174.7, "min": 123.5, "max": 285.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.9, "min": 2.4, "max": 25.7, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 52.4, "min": 34.9, "max": 78.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003828 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 64.3, \"min\": 19.3, \"max\": 160.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 31.7, \"min\": 2.0, \"max\": 66.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 174.7, \"min\": 123.5, \"max\": 285.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.9, \"min\": 2.4, \"max\": 25.7, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 52.4, \"min\": 34.9, \"max\": 78.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6775_0127", "family": "threaded", "tier": 0, "seed": 1234003829, "symmetry": "none", "op_count": 1, "ir_hash": "441759ed6fe8ad39", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 222.0, "surface_area": 343.0, "principal_moments": [575.0, 3810.0, 3810.0], "n_faces": 180, "n_edges": 458, "n_vertices": 280}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 13.9, "min": 5.6, "max": 27.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003829 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 13.9, \"min\": 5.6, \"max\": 27.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6776_0128", "family": "plate", "tier": 0, "seed": 1234003830, "symmetry": "none", "op_count": 1, "ir_hash": "5a313265f36617d9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 76200.0, "surface_area": 22200.0, "principal_moments": [52599999.99999999, 70400000.0, 122000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 105, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 90.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003830 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 105, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 90.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6777_0129", "family": "block", "tier": 1, "seed": 1234003831, "symmetry": "radial", "op_count": 2, "ir_hash": "569338758ac9beae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15900.0, "surface_area": 4810.0, "principal_moments": [1450000.0, 2020000.0, 2660000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 17.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 28.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 10.5, "min": 7.0, "max": 15.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003831 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 17.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 28.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 10.5, \"min\": 7.0, \"max\": 15.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6778_0130", "family": "plate", "tier": 1, "seed": 1234003832, "symmetry": "none", "op_count": 2, "ir_hash": "493eb03045771fec", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10200.0, "surface_area": 5070.0, "principal_moments": [650000.0, 3590000.0, 4170000.0], "n_faces": 30, "n_edges": 84, "n_vertices": 56}, "params": {"plate_w": {"type": "float", "default": 65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 27.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 4.3, "step": 0.1, "group": "Holes", "label": "Square hole size (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003832 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 27.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 4.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(26.0, 22.1, p[\"hole_nx\"], p[\"hole_ny\"])\n .rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6779_0131", "family": "threaded", "tier": 1, "seed": 1234003833, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8bed18a23f18b3f6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 243.0, "surface_area": 373.0, "principal_moments": [630.0, 4930.0, 4930.0], "n_faces": 195, "n_edges": 499, "n_vertices": 306}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 15.2, "min": 6.1, "max": 30.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003833 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 15.2, \"min\": 6.1, \"max\": 30.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d677a_0132", "family": "bracket", "tier": 2, "seed": 1234003834, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "6b78039aa91ef160", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9970.0, "surface_area": 5930.0, "principal_moments": [1250000.0, 2360000.0, 3150000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 29.19, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 3.4, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003834 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 29.19, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.4, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d677b_0133", "family": "compound", "tier": 1, "seed": 1234003835, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "75b4e2d610577a38", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 65700.0, "surface_area": 22500.0, "principal_moments": [44800000.0, 48699999.99999999, 71000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"base_w": {"type": "float", "default": 95, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 89.8, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 6.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 20.8, "min": 8.3, "max": 44.9, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 46.5, "min": 13.9, "max": 139.5, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003835 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 95, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 89.8, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 20.8, \"min\": 8.3, \"max\": 44.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 46.5, \"min\": 13.9, \"max\": 139.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d677c_0134", "family": "compound", "tier": 2, "seed": 1234003836, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "4f3ef531363fc5e8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34100.0, "surface_area": 7600.0, "principal_moments": [5560000.0, 7300000.0, 7310000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"block_w": {"type": "float", "default": 30.46, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 32.5, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 32.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 11.2, "min": 4.5, "max": 22.7, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 26.1, "min": 3.4, "max": 44.8, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003836 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 30.46, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 32.5, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 32.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 11.2, \"min\": 4.5, \"max\": 22.7, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 26.1, \"min\": 3.4, \"max\": 44.8, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d677d_0135", "family": "revolved", "tier": 0, "seed": 1234003837, "symmetry": "none", "op_count": 1, "ir_hash": "6907bb2edcc8e20a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5610.0, "surface_area": 3710.0, "principal_moments": [171000.0, 1010000.0, 1010000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 14.24, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 52.8, "min": 15.8, "max": 158.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003837 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 14.24, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 52.8, \"min\": 15.8, \"max\": 158.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d677e_0136", "family": "enclosure", "tier": 1, "seed": 1234003838, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "ba0492c3780c4dd8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 159000.0, "surface_area": 75400.0, "principal_moments": [264000000.0, 313000000.0, 357000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 100, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 68.5, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 98.5, "min": 39.4, "max": 197.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003838 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 100, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 68.5, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 98.5, \"min\": 39.4, \"max\": 197.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d677f_0137", "family": "bracket", "tier": 1, "seed": 1234003839, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "14c30c7f5c107ef5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8840.0, "surface_area": 7000.0, "principal_moments": [2010000.0, 8550000.0, 9900000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 61.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20.96, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 8.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003839 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 61.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20.96, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 8.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6781_0139", "family": "bracket", "tier": 1, "seed": 1234003841, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "759e64465238e411", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9790.0, "surface_area": 7360.0, "principal_moments": [1860000.0, 3720000.0, 4510000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 52.25, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 33.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003841 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 52.25, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 33.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6785_0143", "family": "bracket", "tier": 1, "seed": 1234003845, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "903541e6e09b4e50", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41000.0, "surface_area": 19000.0, "principal_moments": [28399999.999999996, 37100000.0, 54199999.99999999], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 66.88, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 73.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40.63, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003845 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 66.88, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 73.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40.63, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6786_0144", "family": "flanged", "tier": 2, "seed": 1234003846, "symmetry": "none", "op_count": 2, "ir_hash": "a80beb5309a424fb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 77700.0, "surface_area": 23400.0, "principal_moments": [41400000.0, 41400000.0, 66099999.99999999], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 48.75, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 34.1, "min": 10.2, "max": 85.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 25.8, "min": 2.0, "max": 34.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 98.7, "min": 63.4, "max": 146.2, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.6, "min": 1.7, "max": 13.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 29.6, "min": 19.7, "max": 44.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003846 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 48.75, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 34.1, \"min\": 10.2, \"max\": 85.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 25.8, \"min\": 2.0, \"max\": 34.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 98.7, \"min\": 63.4, \"max\": 146.2, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.6, \"min\": 1.7, \"max\": 13.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 29.6, \"min\": 19.7, \"max\": 44.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6788_0146", "family": "ribbed", "tier": 1, "seed": 1234003848, "symmetry": "none", "op_count": 2, "ir_hash": "3bd8d2bcdd286460", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35000.0, "surface_area": 14300.0, "principal_moments": [6380000.0, 11200000.0, 15099999.999999998], "n_faces": 54, "n_edges": 132, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 33.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 12.3, "min": 4.9, "max": 24.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.3, "min": 1.0, "max": 13.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003848 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 33.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 12.3, \"min\": 4.9, \"max\": 24.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.3, \"min\": 1.0, \"max\": 13.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6789_0147", "family": "bracket", "tier": 2, "seed": 1234003849, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "72c7b19953ce72ff", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41600.0, "surface_area": 16000.0, "principal_moments": [14599999.999999998, 38800000.0, 40500000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 77.69, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 69.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 6.9, "min": 3.0, "max": 18.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003849 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 77.69, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 69.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.9, \"min\": 3.0, \"max\": 18.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d678a_0148", "family": "bracket", "tier": 2, "seed": 1234003850, "symmetry": "none", "op_count": 1, "ir_hash": "d7a0fd4a45e26ae5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22200.0, "surface_area": 10300.0, "principal_moments": [5620000.0, 9660000.0, 11300000.0], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 48.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45.39, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.6, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003850 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 48.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45.39, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d678b_0149", "family": "revolved", "tier": 1, "seed": 1234003851, "symmetry": "none", "op_count": 1, "ir_hash": "f5768c754bcf1325", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1130000.0, "surface_area": 109000.0, "principal_moments": [1620000000.0, 6250000000.0, 6250000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 76.08, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 219.2, "min": 65.8, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 28.5, "min": 2.0, "max": 53.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 144.8, "min": 91.3, "max": 228.2, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 23.0, "min": 6.9, "max": 109.6, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003851 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 76.08, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 219.2, \"min\": 65.8, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 28.5, \"min\": 2.0, \"max\": 53.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 144.8, \"min\": 91.3, \"max\": 228.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 23.0, \"min\": 6.9, \"max\": 109.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d678c_0150", "family": "revolved", "tier": 2, "seed": 1234003852, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "e45960001b36bd9e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 67500.0, "surface_area": 18800.0, "principal_moments": [30899999.999999996, 30899999.999999996, 51699999.99999999], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 44.14, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 30.6, "min": 9.2, "max": 91.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 23.3, "min": 2.0, "max": 30.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 88.5, "min": 53.0, "max": 132.4, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.3, "min": 2.2, "max": 15.3, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 1.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003852 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 44.14, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 30.6, \"min\": 9.2, \"max\": 91.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 23.3, \"min\": 2.0, \"max\": 30.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 88.5, \"min\": 53.0, \"max\": 132.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.3, \"min\": 2.2, \"max\": 15.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 1.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d678f_0153", "family": "threaded", "tier": 1, "seed": 1234003855, "symmetry": "none", "op_count": 1, "ir_hash": "84887b3c61faf82f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1970.0, "surface_area": 1830.0, "principal_moments": [13200.0, 382000.0, 382000.0], "n_faces": 390, "n_edges": 1004, "n_vertices": 616}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 47.9, "min": 19.2, "max": 95.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003855 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 47.9, \"min\": 19.2, \"max\": 95.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6790_0154", "family": "revolved", "tier": 1, "seed": 1234003856, "symmetry": "none", "op_count": 1, "ir_hash": "bd61e75898c2dd47", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2210.0, "surface_area": 1200.0, "principal_moments": [70000.0, 70000.0, 72900.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 15.37, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 13.5, "min": 4.0, "max": 40.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 10.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003856 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 15.37, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 13.5, \"min\": 4.0, \"max\": 40.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 10.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6791_0155", "family": "compound", "tier": 1, "seed": 1234003857, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "98680fbeae257f85", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 582000.0, "surface_area": 48700.0, "principal_moments": [571000000.0, 756000000.0, 853000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 70.66, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 95.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 84.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_a": {"type": "float", "default": 32.5, "min": 16.2, "max": 49.5, "step": 1.0, "group": "Spigot", "label": "Spigot width (mm)"}, "spig_b": {"type": "float", "default": 19.0, "min": 9.5, "max": 49.5, "step": 1.0, "group": "Spigot", "label": "Spigot depth (mm)"}, "spig_len": {"type": "float", "default": 38.8, "min": 5.7, "max": 76.0, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.7, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003857 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70.66, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 95.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 84.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_a\": {\"type\": 'float', \"default\": 32.5, \"min\": 16.2, \"max\": 49.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot width (mm)'},\n \"spig_b\": {\"type\": 'float', \"default\": 19.0, \"min\": 9.5, \"max\": 49.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot depth (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 38.8, \"min\": 5.7, \"max\": 76.0, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.7, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .rect(p[\"spig_a\"], p[\"spig_b\"]).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6792_0156", "family": "ribbed", "tier": 1, "seed": 1234003858, "symmetry": "none", "op_count": 2, "ir_hash": "b97549206dd7f188", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19300.0, "surface_area": 11500.0, "principal_moments": [3690000.0, 5060000.0, 8170000.0], "n_faces": 36, "n_edges": 84, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 55.74, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 47.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 9.4, "min": 3.8, "max": 18.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.5, "min": 1.0, "max": 8.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003858 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 55.74, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 47.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 9.4, \"min\": 3.8, \"max\": 18.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 1.0, \"max\": 8.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6793_0157", "family": "block", "tier": 1, "seed": 1234003859, "symmetry": "none", "op_count": 2, "ir_hash": "ee48dc67ba636629", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 478000.0, "surface_area": 44200.0, "principal_moments": [490000000.0, 490000000.0, 797000000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 100.0, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 48.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003859 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 100.0, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 48.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 37.5\n _ssy = 43.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6794_0158", "family": "bracket", "tier": 1, "seed": 1234003860, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "117830056e4b4562", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 71400.0, "surface_area": 31700.0, "principal_moments": [36500000.0, 194000000.0, 200000000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 68.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 59.93, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003860 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 68.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 59.93, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6795_0159", "family": "revolved", "tier": 1, "seed": 1234003861, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "5aa6b2ef5c47c49b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 56100.0, "surface_area": 13500.0, "principal_moments": [15599999.999999998, 19000000.0, 19000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 42.99, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 58.0, "min": 17.4, "max": 174.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003861 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 42.99, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 58.0, \"min\": 17.4, \"max\": 174.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6797_0161", "family": "bracket", "tier": 2, "seed": 1234003863, "symmetry": "none", "op_count": 1, "ir_hash": "f2106e6ed2901644", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13800.0, "surface_area": 6750.0, "principal_moments": [1710000.0, 4210000.0, 5200000.0], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 28.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 57.64, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.3, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003863 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 28.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 57.64, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6798_0162", "family": "compound", "tier": 1, "seed": 1234003864, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "7dac8e3ece6fc34e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42100.0, "surface_area": 8560.0, "principal_moments": [7560000.0, 8980000.0, 10100000.0], "n_faces": 28, "n_edges": 76, "n_vertices": 50}, "params": {"block_w": {"type": "float", "default": 40.13, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 34.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 30.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 3.6, "min": 1.8, "max": 6.8, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 8.8, "min": 1.7, "max": 20.0, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.8, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003864 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40.13, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 34.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 30.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 3.6, \"min\": 1.8, \"max\": 6.8, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 8.8, \"min\": 1.7, \"max\": 20.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.8, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6799_0163", "family": "block", "tier": 1, "seed": 1234003865, "symmetry": "none", "op_count": 2, "ir_hash": "ead5274d1351b92a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 444000.0, "surface_area": 43100.0, "principal_moments": [433000000.0, 448000000.0, 726000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 98.31, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 45.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 10.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003865 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 98.31, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 45.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 10.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d679a_0164", "family": "enclosure", "tier": 1, "seed": 1234003866, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "c0a76416e64da7e6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39000.0, "surface_area": 24300.0, "principal_moments": [16800000.0, 28099999.999999996, 32599999.999999996], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 70, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 32.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 52.8, "min": 21.1, "max": 105.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003866 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 70, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 32.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 52.8, \"min\": 21.1, \"max\": 105.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d679b_0165", "family": "threaded", "tier": 2, "seed": 1234003867, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "0b930b9a4c9626a7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1060.0, "surface_area": 1240.0, "principal_moments": [13500.0, 51000.0, 51000.0], "n_faces": 228, "n_edges": 622, "n_vertices": 396}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 22.4, "min": 9.0, "max": 44.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003867 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 22.4, \"min\": 9.0, \"max\": 44.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d679c_0166", "family": "gear", "tier": 1, "seed": 1234003868, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ac16445a3cce5cdc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8210.0, "surface_area": 4550.0, "principal_moments": [1040000.0, 1040000.0, 2030000.0], "n_faces": 177, "n_edges": 525, "n_vertices": 350}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 29, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.8, "min": 2.3, "max": 14.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 23.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003868 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 29, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.3, \"max\": 14.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 23.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d679d_0167", "family": "profiled", "tier": 2, "seed": 1234003869, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "70dd0002bb21bfb9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 352000.0, "surface_area": 68800.0, "principal_moments": [119000000.0, 1940000000.0, 1940000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 47.36, "min": 23.7, "max": 94.7, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 300.0, "min": 90.0, "max": 900.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003869 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 47.36, \"min\": 23.7, \"max\": 94.7, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 300.0, \"min\": 90.0, \"max\": 900.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d679e_0168", "family": "plate", "tier": 1, "seed": 1234003870, "symmetry": "radial", "op_count": 2, "ir_hash": "e625305f1ac392af", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 508.0, "surface_area": 708.0, "principal_moments": [5900.0, 27400.0, 33000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"plate_w": {"type": "float", "default": 25.5, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 11.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 7.6, "min": 5.1, "max": 11.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003870 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 25.5, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 11.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 7.6, \"min\": 5.1, \"max\": 11.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d679f_0169", "family": "revolved", "tier": 1, "seed": 1234003871, "symmetry": "none", "op_count": 2, "ir_hash": "17481b10c5778ceb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 388.0, "surface_area": 572.0, "principal_moments": [2180.0, 10000.0, 10000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 6.14, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 20.0, "min": 6.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003871 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 6.14, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 20.0, \"min\": 6.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d67a3_0173", "family": "plate", "tier": 1, "seed": 1234003875, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "17155789a3d542d7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5250.0, "surface_area": 3490.0, "principal_moments": [523000.0, 690000.0, 1200000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 40.15, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 34.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 7.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003875 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40.15, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 34.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 7.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d67a4_0174", "family": "ribbed", "tier": 2, "seed": 1234003876, "symmetry": "none", "op_count": 2, "ir_hash": "8e26b5a456a8a78b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8830.0, "surface_area": 3500.0, "principal_moments": [519000.0, 944000.0, 1140000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 31.32, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 20.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 5.5, "min": 2.2, "max": 11.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.6, "min": 1.0, "max": 14.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003876 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 31.32, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 20.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.2, \"max\": 11.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 1.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d67a5_0175", "family": "plate", "tier": 0, "seed": 1234003877, "symmetry": "radial", "op_count": 1, "ir_hash": "0ce1a4d67e76cf73", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25300.0, "surface_area": 10100.0, "principal_moments": [4080000.0, 19700000.0, 23699999.999999996], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 96.6, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 43.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003877 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 96.6, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 43.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d67a6_0176", "family": "ribbed", "tier": 2, "seed": 1234003878, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "bfff27ce36b2547b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 50400.0, "surface_area": 18700.0, "principal_moments": [14399999.999999998, 25899999.999999996, 33700000.0], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 72.13, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 44.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 19.4, "min": 7.8, "max": 38.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.5, "min": 1.0, "max": 13.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003878 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 72.13, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 44.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 19.4, \"min\": 7.8, \"max\": 38.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.5, \"min\": 1.0, \"max\": 13.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d67a7_0177", "family": "compound", "tier": 1, "seed": 1234003879, "symmetry": "none", "op_count": 2, "ir_hash": "1156ecddee0d477e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7630.0, "surface_area": 2830.0, "principal_moments": [393000.0, 602000.0, 712000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 20.0, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 25.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 15.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 3.0, "min": 1.5, "max": 5.2, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 11.3, "min": 1.6, "max": 20.8, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 2.4, "min": 2.0, "max": 3.7, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003879 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20.0, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 25.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 15.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.5, \"max\": 5.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 11.3, \"min\": 1.6, \"max\": 20.8, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 3.7, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d67aa_0180", "family": "plate", "tier": 0, "seed": 1234003882, "symmetry": "none", "op_count": 1, "ir_hash": "cdd4a8f62098493d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 68300.0, "surface_area": 17100.0, "principal_moments": [21100000.0, 73900000.0, 93899999.99999999], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 113.57, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 60.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003882 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 113.57, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 60.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d67ab_0181", "family": "threaded", "tier": 2, "seed": 1234003883, "symmetry": "none", "op_count": 1, "ir_hash": "ca7616402a6c81a6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16900.0, "surface_area": 5710.0, "principal_moments": [1140000.0, 2910000.0, 2910000.0], "n_faces": 90, "n_edges": 228, "n_vertices": 140}, "params": {"thread_size": {"type": "enum", "default": "1", "choices": ["1/4", "5/16", "3/8", "1/2", "5/8", "3/4", "7/8", "1", "1 1/4", "1 1/2"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 41.6, "min": 16.6, "max": 83.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003883 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '1', \"choices\": ['1/4', '5/16', '3/8', '1/2', '5/8', '3/4', '7/8', '1', '1 1/4', '1 1/2'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 41.6, \"min\": 16.6, \"max\": 83.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.AcmeThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d67ac_0182", "family": "revolved", "tier": 1, "seed": 1234003884, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "51236ec9df6d2699", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12400.0, "surface_area": 5020.0, "principal_moments": [1160000.0, 1630000.0, 1630000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 25, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 37.8, "min": 11.3, "max": 113.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003884 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 37.8, \"min\": 11.3, \"max\": 113.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d67ae_0184", "family": "ribbed", "tier": 2, "seed": 1234003886, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "7d09eb640993bda7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12300.0, "surface_area": 9150.0, "principal_moments": [1790000.0, 2800000.0, 4000000.0], "n_faces": 46, "n_edges": 128, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 38.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 13.0, "min": 5.2, "max": 26.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.7, "min": 1.0, "max": 6.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 8.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003886 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 38.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 13.0, \"min\": 5.2, \"max\": 26.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.7, \"min\": 1.0, \"max\": 6.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 8.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d67af_0185", "family": "gear", "tier": 1, "seed": 1234003887, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "0e22ff681df7fee2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 387.0, "surface_area": 543.0, "principal_moments": [3940.0, 3940.0, 5780.0], "n_faces": 63, "n_edges": 183, "n_vertices": 122}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 10, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.7, "min": 2.3, "max": 14.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 3.0, "min": 2.0, "max": 4.5, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003887 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 10, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.3, \"max\": 14.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 4.5, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d67b0_0186", "family": "revolved", "tier": 2, "seed": 1234003888, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "f34ae965404a2787", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 336000.0, "surface_area": 48100.0, "principal_moments": [351000000.0, 406000000.0, 406000000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 50.42, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 120.2, "min": 36.1, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 103.3, "min": 60.5, "max": 151.3, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 27.5, "min": 8.2, "max": 60.1, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003888 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50.42, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 120.2, \"min\": 36.1, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 103.3, \"min\": 60.5, \"max\": 151.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 27.5, \"min\": 8.2, \"max\": 60.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d67b2_0188", "family": "plate", "tier": 1, "seed": 1234003890, "symmetry": "none", "op_count": 2, "ir_hash": "fff25cfc493bec64", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 50500.0, "surface_area": 12400.0, "principal_moments": [7450000.0, 46899999.99999999, 53099999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 105, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 40.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 9.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003890 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 105, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 40.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 9.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d67b3_0189", "family": "profiled", "tier": 1, "seed": 1234003891, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "5331b622f83ee8ae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6880.0, "surface_area": 2890.0, "principal_moments": [192000.0, 1380000.0, 1380000.0], "n_faces": 5, "n_edges": 9, "n_vertices": 6}, "params": {"circ_r": {"type": "float", "default": 10.58, "min": 5.3, "max": 21.2, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 3, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 47.3, "min": 14.2, "max": 141.9, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003891 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 10.58, \"min\": 5.3, \"max\": 21.2, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 3, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 47.3, \"min\": 14.2, \"max\": 141.9, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d67b5_0191", "family": "gear", "tier": 1, "seed": 1234003893, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "04cd6fd2f5b7e238", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 191000.0, "surface_area": 43100.0, "principal_moments": [262000000.0, 262000000.0, 520000000.0], "n_faces": 219, "n_edges": 651, "n_vertices": 434}, "params": {"module": {"type": "float", "default": 4.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 36, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 12.4, "min": 5.0, "max": 31.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 30.8, "min": 2.0, "max": 80.4, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003893 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 36, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 12.4, \"min\": 5.0, \"max\": 31.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 30.8, \"min\": 2.0, \"max\": 80.4, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d67b6_0192", "family": "gear", "tier": 0, "seed": 1234003894, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "f0a3d4a77c685060", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 325000.0, "surface_area": 52200.0, "principal_moments": [470000000.0, 470000000.0, 921000000.0], "n_faces": 152, "n_edges": 450, "n_vertices": 300}, "params": {"module": {"type": "float", "default": 6.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 25, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 18.6, "min": 7.4, "max": 46.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003894 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 6.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 25, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 18.6, \"min\": 7.4, \"max\": 46.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d67b7_0193", "family": "block", "tier": 2, "seed": 1234003895, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "556df0baef71fb47", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 364000.0, "surface_area": 41400.0, "principal_moments": [320000000.0, 350000000.0, 580000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 95.21, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 38.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "boss_d": {"type": "float", "default": 12.0, "min": 6.0, "max": 24.0, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 8.7, "min": 3.5, "max": 21.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003895 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 95.21, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 38.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"boss_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 6.0, \"max\": 24.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 8.7, \"min\": 3.5, \"max\": 21.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 23.8\n _ssy = 28.0\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d67b8_0194", "family": "revolved", "tier": 1, "seed": 1234003896, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "d80b786737f7c10c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 199000.0, "surface_area": 29500.0, "principal_moments": [61699999.99999999, 322000000.0, 322000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 46.87, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 132.6, "min": 39.8, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.0, "min": 2.0, "max": 32.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.3, "min": 0.1, "max": 0.9, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003896 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 46.87, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 132.6, \"min\": 39.8, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.0, \"min\": 2.0, \"max\": 32.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.3, \"min\": 0.1, \"max\": 0.9, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d67c0_0202", "family": "plate", "tier": 1, "seed": 1234003904, "symmetry": "none", "op_count": 2, "ir_hash": "36590fe6f8a6d74d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3240.0, "surface_area": 1680.0, "principal_moments": [90400.0, 181000.0, 237000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 25, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 16.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003904 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 16.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(20.0, 13.4, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d67c1_0203", "family": "bracket", "tier": 1, "seed": 1234003905, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "2dfa7a319d592f79", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9710.0, "surface_area": 5750.0, "principal_moments": [1690000.0, 1930000.0, 2850000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 30.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003905 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 30.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d67c3_0205", "family": "bracket", "tier": 1, "seed": 1234003907, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "da7d8383a009250c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21900.0, "surface_area": 8900.0, "principal_moments": [5230000.0, 6650000.0, 9690000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 37.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003907 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 37.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d67c5_0207", "family": "block", "tier": 1, "seed": 1234003909, "symmetry": "none", "op_count": 2, "ir_hash": "34702dd61a502c74", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33200.0, "surface_area": 8910.0, "principal_moments": [4810000.0, 7680000.0, 10600000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 37.85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 18.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 49.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003909 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 37.85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 18.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 49.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d67c6_0208", "family": "bracket", "tier": 1, "seed": 1234003910, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "6db49711755d544e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35800.0, "surface_area": 12300.0, "principal_moments": [13399999.999999998, 46299999.99999999, 55599999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 26.12, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003910 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 26.12, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d67c8_0210", "family": "plate", "tier": 0, "seed": 1234003912, "symmetry": "radial", "op_count": 1, "ir_hash": "22afe1a9de0b6ab2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27200.0, "surface_area": 12400.0, "principal_moments": [8320000.0, 18400000.0, 26599999.999999996], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 90, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 60.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003912 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 60.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d67c9_0211", "family": "plate", "tier": 0, "seed": 1234003913, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "adfe6222d44678ef", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32000.0, "surface_area": 14400.0, "principal_moments": [13999999.999999998, 20900000.0, 34800000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 88.42, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 72.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003913 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 88.42, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 72.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d67ca_0212", "family": "bracket", "tier": 1, "seed": 1234003914, "symmetry": "none", "op_count": 1, "ir_hash": "028dc3ba07ae8ff3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21900.0, "surface_area": 16200.0, "principal_moments": [12199999.999999998, 24799999.999999996, 31899999.999999996], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 76.33, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 64.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 37.1, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003914 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 76.33, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 64.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 37.1, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d67cb_0213", "family": "bracket", "tier": 1, "seed": 1234003915, "symmetry": "none", "op_count": 1, "ir_hash": "a7b173ad7060d0c6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9190.0, "surface_area": 6900.0, "principal_moments": [1600000.0, 2620000.0, 3680000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 34.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003915 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 34.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d67d2_0220", "family": "flanged", "tier": 2, "seed": 1234003922, "symmetry": "none", "op_count": 2, "ir_hash": "04acbfae32f172ca", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20600.0, "surface_area": 8810.0, "principal_moments": [3840000.0, 3840000.0, 4220000.0], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 28.86, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 28.9, "min": 8.7, "max": 72.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 10.6, "min": 2.0, "max": 20.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 57.9, "min": 37.5, "max": 86.6, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 2.3, "min": 0.7, "max": 11.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 17.4, "min": 11.6, "max": 26.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003922 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 28.86, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 28.9, \"min\": 8.7, \"max\": 72.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 10.6, \"min\": 2.0, \"max\": 20.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 57.9, \"min\": 37.5, \"max\": 86.6, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 2.3, \"min\": 0.7, \"max\": 11.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 17.4, \"min\": 11.6, \"max\": 26.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d67d3_0221", "family": "enclosure", "tier": 1, "seed": 1234003923, "symmetry": "none", "op_count": 2, "ir_hash": "01c8ae1a18c4eb48", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6920.0, "surface_area": 4490.0, "principal_moments": [571000.0, 829000.0, 1030000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 30.06, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 15.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 24.7, "min": 9.9, "max": 49.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003923 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 30.06, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 15.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 24.7, \"min\": 9.9, \"max\": 49.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d67d5_0223", "family": "revolved", "tier": 1, "seed": 1234003925, "symmetry": "radial", "op_count": 1, "ir_hash": "ac728d6955ac79ca", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 98500.0, "surface_area": 23500.0, "principal_moments": [23599999.999999996, 92699999.99999999, 92699999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 40, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 117.6, "min": 35.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003925 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 117.6, \"min\": 35.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d67d6_0224", "family": "compound", "tier": 2, "seed": 1234003926, "symmetry": "none", "op_count": 2, "ir_hash": "b86e102194cac24e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13200.0, "surface_area": 4080.0, "principal_moments": [1440000.0, 1440000.0, 1840000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 20.32, "min": 12.2, "max": 32.5, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 9.5, "min": 3.8, "max": 23.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 15.5, "min": 7.8, "max": 28.2, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 15.9, "min": 4.8, "max": 39.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003926 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 20.32, \"min\": 12.2, \"max\": 32.5, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 9.5, \"min\": 3.8, \"max\": 23.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 15.5, \"min\": 7.8, \"max\": 28.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 15.9, \"min\": 4.8, \"max\": 39.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d67d7_0225", "family": "gear", "tier": 2, "seed": 1234003927, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "c1463eecdc1df9ae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29100.0, "surface_area": 10200.0, "principal_moments": [7930000.0, 7930000.0, 15399999.999999998], "n_faces": 225, "n_edges": 669, "n_vertices": 446}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 37, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 9.3, "min": 3.7, "max": 23.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 29.0, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.24, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.36, "min": 0.0, "max": 0.75, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 10.6, "min": 2.0, "max": 31.0, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003927 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 37, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 9.3, \"min\": 3.7, \"max\": 23.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 29.0, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.24, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.36, \"min\": 0.0, \"max\": 0.75, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 10.6, \"min\": 2.0, \"max\": 31.0, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d67d8_0226", "family": "threaded", "tier": 1, "seed": 1234003928, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "5ec0f159fdab1d1e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17300.0, "surface_area": 6880.0, "principal_moments": [2270000.0, 3010000.0, 3020000.0], "n_faces": 287, "n_edges": 817, "n_vertices": 532}, "params": {"major_d": {"type": "float", "default": 16.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.0, "min": 1.0, "max": 4.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 36.2, "min": 14.5, "max": 72.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003928 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 4.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 36.2, \"min\": 14.5, \"max\": 72.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d67d9_0227", "family": "revolved", "tier": 1, "seed": 1234003929, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "aac25bddc21e55e6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 322000.0, "surface_area": 46600.0, "principal_moments": [117000000.0, 1090000000.0, 1090000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 50, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 196.2, "min": 58.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 20.3, "min": 2.0, "max": 35.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003929 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 196.2, \"min\": 58.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 20.3, \"min\": 2.0, \"max\": 35.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d67db_0229", "family": "flanged", "tier": 1, "seed": 1234003931, "symmetry": "none", "op_count": 2, "ir_hash": "ddc7a23a390ee08c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 461000.0, "surface_area": 73000.0, "principal_moments": [710000000.0, 710000000.0, 1090000000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 91.62, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 60.1, "min": 18.0, "max": 150.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 40.4, "min": 2.0, "max": 64.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 174.9, "min": 119.1, "max": 274.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.2, "min": 2.5, "max": 24.0, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 52.5, "min": 35.0, "max": 78.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003931 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 91.62, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 60.1, \"min\": 18.0, \"max\": 150.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 40.4, \"min\": 2.0, \"max\": 64.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 174.9, \"min\": 119.1, \"max\": 274.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.2, \"min\": 2.5, \"max\": 24.0, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 52.5, \"min\": 35.0, \"max\": 78.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d67dc_0230", "family": "plate", "tier": 1, "seed": 1234003932, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "5dadc4e8cdba95bb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6830.0, "surface_area": 2920.0, "principal_moments": [235000.0, 944000.0, 1060000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 39.93, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 17.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003932 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 39.93, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 17.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d67de_0232", "family": "bracket", "tier": 2, "seed": 1234003934, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "a3cc359e15304082", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16300.0, "surface_area": 11600.0, "principal_moments": [4500000.0, 14999999.999999998, 17500000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 72.51, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 83.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 29.82, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.9, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003934 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 72.51, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 83.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 29.82, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.9, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d67df_0233", "family": "ribbed", "tier": 1, "seed": 1234003935, "symmetry": "none", "op_count": 2, "ir_hash": "5ff851cccec6a558", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15400.0, "surface_area": 12700.0, "principal_moments": [3400000.0, 7630000.0, 10500000.0], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 74.81, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 41.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 11.1, "min": 4.4, "max": 22.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.3, "min": 1.0, "max": 5.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003935 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 74.81, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 41.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 11.1, \"min\": 4.4, \"max\": 22.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.3, \"min\": 1.0, \"max\": 5.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d67e0_0234", "family": "compound", "tier": 2, "seed": 1234003936, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "c632815d2ee9c9b3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 59100.0, "surface_area": 9910.0, "principal_moments": [11899999.999999998, 22500000.0, 22500000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 25, "min": 15.0, "max": 40.0, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 24.3, "min": 9.7, "max": 60.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 26.0, "min": 13.0, "max": 34.6, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 37.0, "min": 11.1, "max": 92.5, "step": 1.0, "group": "Column", "label": "Column height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003936 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 24.3, \"min\": 9.7, \"max\": 60.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 26.0, \"min\": 13.0, \"max\": 34.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 37.0, \"min\": 11.1, \"max\": 92.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d67e2_0236", "family": "bracket", "tier": 1, "seed": 1234003938, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "6333510b5dd1cd68", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12100.0, "surface_area": 7100.0, "principal_moments": [2400000.0, 3720000.0, 4590000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 40, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 40.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003938 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 40, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 40.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d67e6_0240", "family": "block", "tier": 1, "seed": 1234003942, "symmetry": "none", "op_count": 2, "ir_hash": "509d1abb899dad8a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9950.0, "surface_area": 4500.0, "principal_moments": [595000.0, 1360000.0, 1770000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 10.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 39.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.4, "min": 2.0, "max": 2.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003942 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 10.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 39.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 2.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d67e7_0241", "family": "threaded", "tier": 2, "seed": 1234003943, "symmetry": "none", "op_count": 1, "ir_hash": "eec47843018ad453", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1290.0, "surface_area": 1650.0, "principal_moments": [5370.0, 298000.0, 298000.0], "n_faces": 340, "n_edges": 874, "n_vertices": 536}, "params": {"thread_size": {"type": "enum", "default": "1/4", "choices": ["1/4", "5/16", "3/8", "1/2", "5/8", "3/4", "7/8", "1", "1 1/4", "1 1/2"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 52.7, "min": 21.1, "max": 105.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003943 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '1/4', \"choices\": ['1/4', '5/16', '3/8', '1/2', '5/8', '3/4', '7/8', '1', '1 1/4', '1 1/2'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 52.7, \"min\": 21.1, \"max\": 105.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.AcmeThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d67e8_0242", "family": "compound", "tier": 1, "seed": 1234003944, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "b315855181a36a1c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18700.0, "surface_area": 6220.0, "principal_moments": [1040000.0, 7360000.0, 7360000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 21.74, "min": 10.9, "max": 39.1, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 45.4, "min": 18.2, "max": 90.8, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 10.5, "min": 5.2, "max": 19.6, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 37.0, "min": 11.1, "max": 92.5, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 4.6, "min": 2.0, "max": 7.6, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003944 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 21.74, \"min\": 10.9, \"max\": 39.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 45.4, \"min\": 18.2, \"max\": 90.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 5.2, \"max\": 19.6, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 37.0, \"min\": 11.1, \"max\": 92.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 4.6, \"min\": 2.0, \"max\": 7.6, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d67e9_0243", "family": "plate", "tier": 1, "seed": 1234003945, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "cfaddf028f151eea", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9080.0, "surface_area": 3770.0, "principal_moments": [440000.0, 1990000.0, 2330000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 50.96, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 22.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003945 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50.96, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 22.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d67ea_0244", "family": "revolved", "tier": 0, "seed": 1234003946, "symmetry": "none", "op_count": 1, "ir_hash": "9aaa0273a63e0990", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 341000.0, "surface_area": 58400.0, "principal_moments": [155000000.0, 1020000000.0, 1020000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 55, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 215.4, "min": 64.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003946 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 215.4, \"min\": 64.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d67ec_0246", "family": "plate", "tier": 1, "seed": 1234003948, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "9ad28a1ce6d6328a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21100.0, "surface_area": 6300.0, "principal_moments": [1400000.0, 8800000.0, 9690000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 70, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 25.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003948 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 25.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d67ed_0247", "family": "revolved", "tier": 2, "seed": 1234003949, "symmetry": "radial", "op_count": 2, "ir_hash": "4d3f352a015c5ce3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 53600.0, "surface_area": 13700.0, "principal_moments": [18900000.0, 18900000.0, 34000000.0], "n_faces": 9, "n_edges": 14, "n_vertices": 9}, "params": {"outer_d": {"type": "float", "default": 65.5, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 24.6, "min": 7.4, "max": 73.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "groove_depth": {"type": "float", "default": 3.44, "min": 1.38, "max": 10.32, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 2.37, "min": 0.95, "max": 7.11, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 7.4, "min": 3.7, "max": 20.9, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.6, "min": 0.1, "max": 1.8, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003949 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65.5, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 24.6, \"min\": 7.4, \"max\": 73.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 3.44, \"min\": 1.38, \"max\": 10.32, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 2.37, \"min\": 0.95, \"max\": 7.11, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 7.4, \"min\": 3.7, \"max\": 20.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.6, \"min\": 0.1, \"max\": 1.8, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d67f4_0254", "family": "enclosure", "tier": 1, "seed": 1234003956, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "b28f1c1cf6066d35", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 53900.0, "surface_area": 42300.0, "principal_moments": [42300000.0, 80300000.0, 93499999.99999999], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 100, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 59.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 50.8, "min": 20.3, "max": 101.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003956 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 100, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 59.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 50.8, \"min\": 20.3, \"max\": 101.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d67f5_0255", "family": "compound", "tier": 2, "seed": 1234003957, "symmetry": "none", "op_count": 3, "ir_hash": "3fb86b131fc7e3a5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 189000.0, "surface_area": 40900.0, "principal_moments": [269000000.0, 280000000.0, 307000000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"base_w": {"type": "float", "default": 95, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 105.2, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 16.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 12.3, "min": 6.2, "max": 23.8, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 118.8, "min": 35.6, "max": 356.4, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 12.8, "min": 2.0, "max": 15.3, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003957 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 95, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 105.2, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 16.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 12.3, \"min\": 6.2, \"max\": 23.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 118.8, \"min\": 35.6, \"max\": 356.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 12.8, \"min\": 2.0, \"max\": 15.3, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d67f8_0258", "family": "revolved", "tier": 0, "seed": 1234003960, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "d92937706bb28c06", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1140.0, "surface_area": 1110.0, "principal_moments": [17000.0, 40300.0, 40300.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 10, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 21.7, "min": 6.5, "max": 65.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003960 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 10, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 21.7, \"min\": 6.5, \"max\": 65.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d67f9_0259", "family": "threaded", "tier": 1, "seed": 1234003961, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "c43c7598519d1c38", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14800.0, "surface_area": 7210.0, "principal_moments": [1080000.0, 4150000.0, 4150000.0], "n_faces": 375, "n_edges": 1055, "n_vertices": 682}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 54.3, "min": 21.7, "max": 108.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003961 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 54.3, \"min\": 21.7, \"max\": 108.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d67fb_0261", "family": "bracket", "tier": 1, "seed": 1234003963, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "60a40b3f17904908", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19700.0, "surface_area": 14400.0, "principal_moments": [9200000.0, 10500000.0, 12599999.999999998], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 44.67, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 52.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 46.32, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003963 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 44.67, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 52.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 46.32, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d67fc_0262", "family": "revolved", "tier": 0, "seed": 1234003964, "symmetry": "radial", "op_count": 1, "ir_hash": "7b0bf138d9f4fcbf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 268000.0, "surface_area": 37900.0, "principal_moments": [217000000.0, 252000000.0, 252000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 73.44, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 95.0, "min": 28.5, "max": 285.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003964 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 73.44, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 95.0, \"min\": 28.5, \"max\": 285.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d67fe_0264", "family": "enclosure", "tier": 2, "seed": 1234003966, "symmetry": "none", "op_count": 3, "ir_hash": "8182ee261dfe0283", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 44700.0, "surface_area": 36500.0, "principal_moments": [33199999.999999996, 42800000.0, 52599999.99999999], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 75, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 41.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 69.6, "min": 27.8, "max": 139.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.5, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003966 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 75, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 41.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 69.6, \"min\": 27.8, \"max\": 139.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.5, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d67ff_0265", "family": "block", "tier": 1, "seed": 1234003967, "symmetry": "none", "op_count": 2, "ir_hash": "b0e6ad50120e5764", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 153000.0, "surface_area": 22000.0, "principal_moments": [50999999.99999999, 105000000.0, 106000000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 44.99, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 43.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 79.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003967 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 44.99, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 43.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 79.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 16.9\n _ssy = 14.0\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6800_0266", "family": "threaded", "tier": 0, "seed": 1234003968, "symmetry": "none", "op_count": 1, "ir_hash": "e34ea8f9bba90d62", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 418.0, "surface_area": 625.0, "principal_moments": [1090.0, 24100.0, 24100.0], "n_faces": 330, "n_edges": 848, "n_vertices": 520}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 26.1, "min": 10.4, "max": 52.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003968 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 26.1, \"min\": 10.4, \"max\": 52.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6801_0267", "family": "bracket", "tier": 2, "seed": 1234003969, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "45d19537031c8e1d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25300.0, "surface_area": 8480.0, "principal_moments": [4440000.0, 10500000.0, 11100000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 41.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 10.5, "min": 4.0, "max": 17.5, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003969 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 41.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 10.5, \"min\": 4.0, \"max\": 17.5, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6802_0268", "family": "revolved", "tier": 2, "seed": 1234003970, "symmetry": "radial", "op_count": 1, "ir_hash": "fea3c65d33d690fc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 709000.0, "surface_area": 78000.0, "principal_moments": [444000000.0, 3860000000.0, 3860000000.0], "n_faces": 8, "n_edges": 12, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 66.19, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 246.6, "min": 74.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 25.9, "min": 2.0, "max": 46.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 2.73, "min": 1.09, "max": 8.19, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 17.66, "min": 7.06, "max": 52.98, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 111.5, "min": 37.0, "max": 209.6, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003970 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 66.19, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 246.6, \"min\": 74.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 25.9, \"min\": 2.0, \"max\": 46.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 2.73, \"min\": 1.09, \"max\": 8.19, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 17.66, \"min\": 7.06, \"max\": 52.98, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 111.5, \"min\": 37.0, \"max\": 209.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6803_0269", "family": "block", "tier": 2, "seed": 1234003971, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "7d3eb7e4fd92b7dd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1450.0, "surface_area": 1540.0, "principal_moments": [36300.0, 44500.0, 64500.0], "n_faces": 23, "n_edges": 75, "n_vertices": 50}, "params": {"block_w": {"type": "float", "default": 16.23, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 7.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 15.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.4, "min": 2.0, "max": 0.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "pocket_w": {"type": "float", "default": 9.7, "min": 4.8, "max": 13.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 3.1, "min": 1.6, "max": 6.1, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 9.0, "min": 3.6, "max": 12.9, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003971 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 16.23, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 7.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 15.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.4, \"min\": 2.0, \"max\": 0.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"pocket_w\": {\"type\": 'float', \"default\": 9.7, \"min\": 4.8, \"max\": 13.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 3.1, \"min\": 1.6, \"max\": 6.1, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 9.0, \"min\": 3.6, \"max\": 12.9, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 4.1\n _ssy = 4.0\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6804_0270", "family": "enclosure", "tier": 2, "seed": 1234003972, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "c7740fc84e2ccb82", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18400.0, "surface_area": 12000.0, "principal_moments": [3480000.0, 7780000.0, 7850000.0], "n_faces": 19, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 55, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 27.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 30.9, "min": 12.4, "max": 61.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.5, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003972 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 55, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 27.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 30.9, \"min\": 12.4, \"max\": 61.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6805_0271", "family": "flanged", "tier": 1, "seed": 1234003973, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "d175bf16d2d0b88e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 170000.0, "surface_area": 35300.0, "principal_moments": [136000000.0, 151000000.0, 151000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 56.4, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 69.7, "min": 20.9, "max": 174.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 29.0, "min": 2.0, "max": 39.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 101.8, "min": 73.3, "max": 169.2, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.6, "min": 2.3, "max": 27.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 30.5, "min": 20.4, "max": 45.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003973 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 56.4, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 69.7, \"min\": 20.9, \"max\": 174.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 29.0, \"min\": 2.0, \"max\": 39.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 101.8, \"min\": 73.3, \"max\": 169.2, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.6, \"min\": 2.3, \"max\": 27.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 30.5, \"min\": 20.4, \"max\": 45.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6806_0272", "family": "flanged", "tier": 1, "seed": 1234003974, "symmetry": "none", "op_count": 2, "ir_hash": "783354b22837a326", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 222000.0, "surface_area": 39400.0, "principal_moments": [173000000.0, 173000000.0, 205000000.0], "n_faces": 29, "n_edges": 114, "n_vertices": 76}, "params": {"outer_d": {"type": "float", "default": 66.61, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 57.8, "min": 17.3, "max": 144.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 21.4, "min": 2.0, "max": 46.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 106.8, "min": 86.6, "max": 199.8, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.9, "min": 3.0, "max": 23.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 32.0, "min": 21.4, "max": 48.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003974 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 66.61, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 57.8, \"min\": 17.3, \"max\": 144.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 21.4, \"min\": 2.0, \"max\": 46.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 106.8, \"min\": 86.6, \"max\": 199.8, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.9, \"min\": 3.0, \"max\": 23.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 32.0, \"min\": 21.4, \"max\": 48.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6808_0274", "family": "revolved", "tier": 0, "seed": 1234003976, "symmetry": "none", "op_count": 1, "ir_hash": "fc2120330179e3a6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 249000.0, "surface_area": 40500.0, "principal_moments": [134000000.0, 325000000.0, 325000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 60, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 132.0, "min": 39.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003976 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 132.0, \"min\": 39.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6809_0275", "family": "flanged", "tier": 2, "seed": 1234003977, "symmetry": "radial", "op_count": 2, "ir_hash": "0133710e3f62e4bf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 50000.0, "surface_area": 14600.0, "principal_moments": [15699999.999999998, 15699999.999999998, 23999999.999999996], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 40.36, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 28.3, "min": 8.5, "max": 70.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 12.7, "min": 2.0, "max": 28.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 76.8, "min": 52.5, "max": 121.1, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.4, "min": 1.6, "max": 11.3, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 23.0, "min": 15.4, "max": 34.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003977 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40.36, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 28.3, \"min\": 8.5, \"max\": 70.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 12.7, \"min\": 2.0, \"max\": 28.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 76.8, \"min\": 52.5, \"max\": 121.1, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.4, \"min\": 1.6, \"max\": 11.3, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 23.0, \"min\": 15.4, \"max\": 34.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d680a_0276", "family": "compound", "tier": 1, "seed": 1234003978, "symmetry": "none", "op_count": 2, "ir_hash": "dec3c05898f229bf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 131000.0, "surface_area": 16700.0, "principal_moments": [45400000.0, 66099999.99999999, 68900000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 45, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 58.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 48.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_a": {"type": "float", "default": 16.6, "min": 8.3, "max": 31.5, "step": 1.0, "group": "Spigot", "label": "Spigot width (mm)"}, "spig_b": {"type": "float", "default": 11.5, "min": 5.8, "max": 31.5, "step": 1.0, "group": "Spigot", "label": "Spigot depth (mm)"}, "spig_len": {"type": "float", "default": 27.8, "min": 3.4, "max": 46.0, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003978 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 58.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 48.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_a\": {\"type\": 'float', \"default\": 16.6, \"min\": 8.3, \"max\": 31.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot width (mm)'},\n \"spig_b\": {\"type\": 'float', \"default\": 11.5, \"min\": 5.8, \"max\": 31.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot depth (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 27.8, \"min\": 3.4, \"max\": 46.0, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6811_0283", "family": "threaded", "tier": 1, "seed": 1234003985, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "49a942a77e1b2a56", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 394.0, "surface_area": 590.0, "principal_moments": [1030.0, 20200.0, 20200.0], "n_faces": 315, "n_edges": 811, "n_vertices": 498}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 24.6, "min": 9.8, "max": 49.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003985 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 24.6, \"min\": 9.8, \"max\": 49.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6812_0284", "family": "block", "tier": 2, "seed": 1234003986, "symmetry": "none", "op_count": 3, "ir_hash": "0913c72eb13406b8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2730.0, "surface_area": 2350.0, "principal_moments": [83400.0, 125000.0, 131000.0], "n_faces": 27, "n_edges": 84, "n_vertices": 56}, "params": {"block_w": {"type": "float", "default": 20, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 14.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 13.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 4.2, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "pocket_w": {"type": "float", "default": 12.2, "min": 6.1, "max": 16.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 7.2, "min": 3.6, "max": 11.5, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 4.7, "min": 1.9, "max": 11.6, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003986 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 14.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 13.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 4.2, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 12.2, \"min\": 6.1, \"max\": 16.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 7.2, \"min\": 3.6, \"max\": 11.5, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 4.7, \"min\": 1.9, \"max\": 11.6, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6813_0285", "family": "threaded", "tier": 1, "seed": 1234003987, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "87da2696f062053c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5040.0, "surface_area": 3140.0, "principal_moments": [76700.0, 1240000.0, 1240000.0], "n_faces": 314, "n_edges": 808, "n_vertices": 496}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 53.7, "min": 21.5, "max": 107.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003987 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 53.7, \"min\": 21.5, \"max\": 107.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6815_0287", "family": "revolved", "tier": 2, "seed": 1234003989, "symmetry": "radial", "op_count": 1, "ir_hash": "e04b43b1c3f09297", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 525000.0, "surface_area": 72400.0, "principal_moments": [375000000.0, 1560000000.0, 1560000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 69.06, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 210.1, "min": 63.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003989 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 69.06, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 210.1, \"min\": 63.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6816_0288", "family": "revolved", "tier": 2, "seed": 1234003990, "symmetry": "none", "op_count": 1, "ir_hash": "9cc90ce57175165f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11200.0, "surface_area": 4920.0, "principal_moments": [1200000.0, 1200000.0, 1900000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 28.57, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 19.6, "min": 5.9, "max": 58.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 40.3, "min": 34.3, "max": 85.7, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.5, "min": 1.3, "max": 9.8, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003990 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 28.57, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 19.6, \"min\": 5.9, \"max\": 58.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 40.3, \"min\": 34.3, \"max\": 85.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.3, \"max\": 9.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6817_0289", "family": "revolved", "tier": 1, "seed": 1234003991, "symmetry": "none", "op_count": 1, "ir_hash": "bb8faab7ee940eeb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 91500.0, "surface_area": 18000.0, "principal_moments": [47999999.99999999, 47999999.99999999, 87800000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 80.0, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 27.3, "min": 8.2, "max": 81.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003991 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 80.0, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 27.3, \"min\": 8.2, \"max\": 81.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6818_0290", "family": "bracket", "tier": 1, "seed": 1234003992, "symmetry": "none", "op_count": 1, "ir_hash": "56ec85aa37ee3589", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 98800.0, "surface_area": 30000.0, "principal_moments": [103000000.0, 138000000.0, 199000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003992 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d681a_0292", "family": "bracket", "tier": 1, "seed": 1234003994, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "41bf29c43b2104fa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18900.0, "surface_area": 10900.0, "principal_moments": [5490000.0, 16699999.999999998, 18300000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 75, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 64.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003994 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 64.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d681e_0296", "family": "enclosure", "tier": 1, "seed": 1234003998, "symmetry": "none", "op_count": 2, "ir_hash": "30cb459889f3dd99", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 186000.0, "surface_area": 70900.0, "principal_moments": [282000000.0, 386000000.0, 458000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 110, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 83.3, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 74.6, "min": 29.8, "max": 149.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.4, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003998 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 110, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 83.3, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 74.6, \"min\": 29.8, \"max\": 149.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.4, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d681f_0297", "family": "block", "tier": 2, "seed": 1234003999, "symmetry": "none", "op_count": 3, "ir_hash": "c04e6966e1b80b6a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 51400.0, "surface_area": 15900.0, "principal_moments": [11399999.999999998, 17300000.0, 22400000.0], "n_faces": 27, "n_edges": 72, "n_vertices": 48}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 26.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 46.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.2, "min": 2.0, "max": 7.8, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "pocket_w": {"type": "float", "default": 31.8, "min": 15.9, "max": 44.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 18.1, "min": 9.1, "max": 21.2, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 18.5, "min": 7.4, "max": 39.1, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234003999 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 26.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 46.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 7.8, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 31.8, \"min\": 15.9, \"max\": 44.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 18.1, \"min\": 9.1, \"max\": 21.2, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 18.5, \"min\": 7.4, \"max\": 39.1, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6820_0298", "family": "plate", "tier": 2, "seed": 1234004000, "symmetry": "radial", "op_count": 3, "ir_hash": "4e32f62703e15815", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1230.0, "surface_area": 1020.0, "principal_moments": [15600.0, 66200.0, 74400.0], "n_faces": 20, "n_edges": 54, "n_vertices": 36}, "params": {"plate_w": {"type": "float", "default": 25, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 10.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 7.5, "min": 5.0, "max": 11.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004000 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 7.5, \"min\": 5.0, \"max\": 11.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.058481725935347395)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6821_0299", "family": "revolved", "tier": 1, "seed": 1234004001, "symmetry": "radial", "op_count": 1, "ir_hash": "7efd59c61ef79517", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27700.0, "surface_area": 9110.0, "principal_moments": [3740000.0, 7560000.0, 7560000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 30, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 58.8, "min": 17.6, "max": 176.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004001 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 58.8, \"min\": 17.6, \"max\": 176.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6823_0301", "family": "revolved", "tier": 1, "seed": 1234004003, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "8f02a13570024886", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11900.0, "surface_area": 5530.0, "principal_moments": [1130000.0, 1870000.0, 1870000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 19.32, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 42.4, "min": 12.7, "max": 127.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 33.5, "min": 23.2, "max": 58.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.1, "min": 1.8, "max": 21.2, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.6, "min": 0.1, "max": 1.8, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004003 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 19.32, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 42.4, \"min\": 12.7, \"max\": 127.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 33.5, \"min\": 23.2, \"max\": 58.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.1, \"min\": 1.8, \"max\": 21.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.6, \"min\": 0.1, \"max\": 1.8, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_r\"], p[\"base_r\"]) * 0.0655192897854174)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6825_0303", "family": "flanged", "tier": 1, "seed": 1234004005, "symmetry": "none", "op_count": 2, "ir_hash": "f12380367bb6f009", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1110000.0, "surface_area": 121000.0, "principal_moments": [3160000000.0, 3160000000.0, 3610000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 95, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 111.6, "min": 33.5, "max": 279.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 30.6, "min": 2.0, "max": 66.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 213.4, "min": 123.5, "max": 285.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 14.0, "min": 4.2, "max": 44.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 64.0, "min": 42.7, "max": 96.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004005 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 111.6, \"min\": 33.5, \"max\": 279.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 30.6, \"min\": 2.0, \"max\": 66.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 213.4, \"min\": 123.5, \"max\": 285.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 14.0, \"min\": 4.2, \"max\": 44.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 64.0, \"min\": 42.7, \"max\": 96.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6826_0304", "family": "revolved", "tier": 2, "seed": 1234004006, "symmetry": "radial", "op_count": 1, "ir_hash": "ffffeff0417fadfb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1260.0, "surface_area": 1390.0, "principal_moments": [13700.0, 89800.0, 89800.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 8.5, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 33.3, "min": 10.0, "max": 99.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004006 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 8.5, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 33.3, \"min\": 10.0, \"max\": 99.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6828_0306", "family": "enclosure", "tier": 1, "seed": 1234004008, "symmetry": "none", "op_count": 2, "ir_hash": "a4d5c1f41d0493af", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 191000.0, "surface_area": 73700.0, "principal_moments": [284000000.0, 355000000.0, 459000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 108.06, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 56.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 102.2, "min": 40.9, "max": 204.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004008 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 108.06, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 56.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 102.2, \"min\": 40.9, \"max\": 204.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6829_0307", "family": "revolved", "tier": 2, "seed": 1234004009, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "528150693661fb9c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27700.0, "surface_area": 9050.0, "principal_moments": [2700000.0, 12899999.999999998, 12899999.999999998], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 25.28, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 70.8, "min": 21.2, "max": 212.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 11.9, "min": 2.0, "max": 17.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004009 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25.28, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 70.8, \"min\": 21.2, \"max\": 212.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 11.9, \"min\": 2.0, \"max\": 17.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d682a_0308", "family": "block", "tier": 1, "seed": 1234004010, "symmetry": "none", "op_count": 2, "ir_hash": "21f427f8391cbc9f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7710.0, "surface_area": 4290.0, "principal_moments": [421000.0, 717000.0, 971000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 23.86, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 11.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 31.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.1, "min": 2.0, "max": 3.5, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004010 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 23.86, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 11.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 31.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.1, \"min\": 2.0, \"max\": 3.5, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d682d_0311", "family": "bracket", "tier": 2, "seed": 1234004013, "symmetry": "none", "op_count": 1, "ir_hash": "69a51d80835e70a6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 46600.0, "surface_area": 14700.0, "principal_moments": [17200000.0, 27799999.999999996, 29399999.999999996], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 45.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 44.76, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 10.8, "min": 4.0, "max": 22.4, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004013 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 45.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 44.76, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 10.8, \"min\": 4.0, \"max\": 22.4, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d682e_0312", "family": "compound", "tier": 1, "seed": 1234004014, "symmetry": "none", "op_count": 3, "ir_hash": "3259d88b04a9e5b8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 268000.0, "surface_area": 32800.0, "principal_moments": [146000000.0, 244000000.0, 255000000.0], "n_faces": 14, "n_edges": 34, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 86.78, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 52.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 59.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 17.8, "min": 7.1, "max": 23.7, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 21.6, "min": 4.5, "max": 53.4, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 9.4, "min": 2.0, "max": 12.8, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004014 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 86.78, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 52.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 59.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 17.8, \"min\": 7.1, \"max\": 23.7, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 21.6, \"min\": 4.5, \"max\": 53.4, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 9.4, \"min\": 2.0, \"max\": 12.8, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6830_0314", "family": "profiled", "tier": 0, "seed": 1234004016, "symmetry": "none", "op_count": 1, "ir_hash": "a23fcdc5f85b00f4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28800.0, "surface_area": 6810.0, "principal_moments": [1300000.0, 25699999.999999996, 25699999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"circ_r": {"type": "float", "default": 10, "min": 5.0, "max": 20.0, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 102.0, "min": 30.6, "max": 306.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004016 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 10, \"min\": 5.0, \"max\": 20.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 102.0, \"min\": 30.6, \"max\": 306.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6831_0315", "family": "threaded", "tier": 1, "seed": 1234004017, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "16661a3b494c59a6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7020.0, "surface_area": 3690.0, "principal_moments": [515000.0, 648000.0, 648000.0], "n_faces": 176, "n_edges": 492, "n_vertices": 318}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 25.9, "min": 10.4, "max": 51.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004017 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 25.9, \"min\": 10.4, \"max\": 51.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6832_0316", "family": "bracket", "tier": 1, "seed": 1234004018, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "d33bbf3b2fe1cc3b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27400.0, "surface_area": 15800.0, "principal_moments": [7120000.0, 55299999.99999999, 57499999.99999999], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 81.06, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 61.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 32.65, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 75.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004018 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 81.06, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 61.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 32.65, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 75.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6833_0317", "family": "compound", "tier": 1, "seed": 1234004019, "symmetry": "none", "op_count": 2, "ir_hash": "a6783a089dc0ea9f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 286000.0, "surface_area": 27800.0, "principal_moments": [198000000.0, 217000000.0, 220000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 58.5, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 72.2, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_w": {"type": "float", "default": 13.6, "min": 6.8, "max": 36.4, "step": 0.5, "group": "Spigot", "label": "Spigot width (mm)"}, "spig_slot_l": {"type": "float", "default": 29.6, "min": 16.3, "max": 45.5, "step": 1.0, "group": "Spigot", "label": "Spigot slot length (mm)"}, "spig_len": {"type": "float", "default": 31.0, "min": 4.1, "max": 54.4, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004019 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 58.5, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 72.2, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_w\": {\"type\": 'float', \"default\": 13.6, \"min\": 6.8, \"max\": 36.4, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Spigot width (mm)'},\n \"spig_slot_l\": {\"type\": 'float', \"default\": 29.6, \"min\": 16.3, \"max\": 45.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot slot length (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 31.0, \"min\": 4.1, \"max\": 54.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6838_0322", "family": "flanged", "tier": 1, "seed": 1234004024, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "ace64036fff2123b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 531000.0, "surface_area": 82100.0, "principal_moments": [1020000000.0, 1070000000.0, 1070000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 80, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 102.0, "min": 30.6, "max": 255.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 40.6, "min": 2.0, "max": 56.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 164.8, "min": 104.0, "max": 240.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.3, "min": 2.8, "max": 40.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 49.4, "min": 33.0, "max": 74.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004024 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 102.0, \"min\": 30.6, \"max\": 255.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 40.6, \"min\": 2.0, \"max\": 56.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 164.8, \"min\": 104.0, \"max\": 240.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.3, \"min\": 2.8, \"max\": 40.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 49.4, \"min\": 33.0, \"max\": 74.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6839_0323", "family": "plate", "tier": 1, "seed": 1234004025, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "9fea346305ad6e4c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16400.0, "surface_area": 8290.0, "principal_moments": [1750000.0, 12299999.999999998, 13999999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 95.68, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 35.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004025 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 95.68, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 35.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d683a_0324", "family": "gear", "tier": 1, "seed": 1234004026, "symmetry": "none", "op_count": 1, "ir_hash": "58c07fe0bc82d1b6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42100.0, "surface_area": 12200.0, "principal_moments": [12299999.999999998, 12299999.999999998, 23299999.999999996], "n_faces": 159, "n_edges": 471, "n_vertices": 314}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 26, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 13.4, "min": 5.4, "max": 33.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 13.2, "min": 2.0, "max": 35.2, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004026 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 26, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 13.4, \"min\": 5.4, \"max\": 33.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 13.2, \"min\": 2.0, \"max\": 35.2, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d683b_0325", "family": "plate", "tier": 1, "seed": 1234004027, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "2ba911bc50c1fcc3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11000.0, "surface_area": 3970.0, "principal_moments": [458000.0, 2390000.0, 2580000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 19.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004027 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 19.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d683c_0326", "family": "bracket", "tier": 1, "seed": 1234004028, "symmetry": "none", "op_count": 1, "ir_hash": "ec0553f29c559cd7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20300.0, "surface_area": 15100.0, "principal_moments": [5900000.0, 45699999.99999999, 48499999.99999999], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 70.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 76.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004028 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 70.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 76.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d683d_0327", "family": "revolved", "tier": 2, "seed": 1234004029, "symmetry": "radial", "op_count": 2, "ir_hash": "242bdf987bd6cdf7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 100000.0, "surface_area": 21000.0, "principal_moments": [32199999.999999996, 63699999.99999999, 63699999.99999999], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 46.3, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 89.5, "min": 26.8, "max": 268.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.3, "min": 0.1, "max": 3.9, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004029 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 46.3, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 89.5, \"min\": 26.8, \"max\": 268.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.3, \"min\": 0.1, \"max\": 3.9, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d683f_0329", "family": "revolved", "tier": 1, "seed": 1234004031, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "a89b30ecf5ec05b6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 70300.0, "surface_area": 14300.0, "principal_moments": [24099999.999999996, 24099999.999999996, 31899999.999999996], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 55, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 44.4, "min": 13.3, "max": 133.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.6, "min": 0.1, "max": 1.8, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004031 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 44.4, \"min\": 13.3, \"max\": 133.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.6, \"min\": 0.1, \"max\": 1.8, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6841_0331", "family": "block", "tier": 2, "seed": 1234004033, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "9fb016142dfbb6fc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 379000.0, "surface_area": 44000.0, "principal_moments": [308000000.0, 380000000.0, 572000000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 89.85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 43.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 17.4, "min": 8.7, "max": 34.8, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 11.7, "min": 4.7, "max": 29.2, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 12.2, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004033 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 89.85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 43.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 17.4, \"min\": 8.7, \"max\": 34.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 11.7, \"min\": 4.7, \"max\": 29.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 12.2, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6843_0333", "family": "revolved", "tier": 2, "seed": 1234004035, "symmetry": "radial", "op_count": 1, "ir_hash": "84f0f0549c799663", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 462000.0, "surface_area": 53100.0, "principal_moments": [431000000.0, 1020000000.0, 1020000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 54.44, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 138.3, "min": 41.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 18.4, "min": 2.0, "max": 38.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 105.8, "min": 65.3, "max": 163.3, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 27.4, "min": 8.2, "max": 69.2, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004035 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 54.44, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 138.3, \"min\": 41.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 18.4, \"min\": 2.0, \"max\": 38.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 105.8, \"min\": 65.3, \"max\": 163.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 27.4, \"min\": 8.2, \"max\": 69.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6844_0334", "family": "plate", "tier": 0, "seed": 1234004036, "symmetry": "none", "op_count": 1, "ir_hash": "88211bd9e0ab0b78", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4560.0, "surface_area": 2230.0, "principal_moments": [151000.0, 622000.0, 745000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 40, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 19.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004036 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 19.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6845_0335", "family": "profiled", "tier": 1, "seed": 1234004037, "symmetry": "none", "op_count": 1, "ir_hash": "118c6e84f5aef7e0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 142000.0, "surface_area": 47400.0, "principal_moments": [30999999.999999996, 791000000.0, 791000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 35, "min": 17.5, "max": 70.0, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 255.6, "min": 76.7, "max": 766.8, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 22.7, "min": 2.0, "max": 28.0, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004037 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 17.5, \"max\": 70.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 255.6, \"min\": 76.7, \"max\": 766.8, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 22.7, \"min\": 2.0, \"max\": 28.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6846_0336", "family": "revolved", "tier": 1, "seed": 1234004038, "symmetry": "radial", "op_count": 1, "ir_hash": "f25a5bc9493ce45e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5100.0, "surface_area": 2140.0, "principal_moments": [260000.0, 303000.0, 303000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 19.1, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 20.2, "min": 6.1, "max": 60.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 6.6, "min": 2.0, "max": 13.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004038 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 19.1, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 20.2, \"min\": 6.1, \"max\": 60.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 6.6, \"min\": 2.0, \"max\": 13.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6847_0337", "family": "bracket", "tier": 1, "seed": 1234004039, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "c1805333a7973ce5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18800.0, "surface_area": 8950.0, "principal_moments": [4270000.0, 8800000.0, 9550000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 46.83, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 52.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004039 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 46.83, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 52.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6849_0339", "family": "bracket", "tier": 1, "seed": 1234004041, "symmetry": "none", "op_count": 1, "ir_hash": "5b688d195b9c6d83", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25200.0, "surface_area": 9730.0, "principal_moments": [4830000.0, 35600000.0, 39100000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 63.35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 71.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 17.44, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 63.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 7.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004041 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 63.35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 71.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 17.44, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 63.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 7.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d684a_0340", "family": "block", "tier": 1, "seed": 1234004042, "symmetry": "radial", "op_count": 2, "ir_hash": "17b451fbf516449e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25500.0, "surface_area": 6610.0, "principal_moments": [3110000.0, 4470000.0, 5490000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 40, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 21.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 31.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 12.0, "min": 8.0, "max": 18.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004042 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 21.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 31.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 12.0, \"min\": 8.0, \"max\": 18.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d684b_0341", "family": "block", "tier": 1, "seed": 1234004043, "symmetry": "none", "op_count": 2, "ir_hash": "568d7c7876d8cb15", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8540.0, "surface_area": 3770.0, "principal_moments": [521000.0, 861000.0, 1220000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 25.18, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 10.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 33.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.1, "min": 2.0, "max": 2.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004043 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25.18, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 10.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 33.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.1, \"min\": 2.0, \"max\": 2.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d684c_0342", "family": "plate", "tier": 1, "seed": 1234004044, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "648cae27a7af3d49", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27300.0, "surface_area": 7980.0, "principal_moments": [5010000.0, 8370000.0, 12899999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 46.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 10.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004044 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 46.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 10.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d684d_0343", "family": "threaded", "tier": 1, "seed": 1234004045, "symmetry": "none", "op_count": 1, "ir_hash": "6eabc53336dd39fe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4340.0, "surface_area": 3160.0, "principal_moments": [141000.0, 532000.0, 532000.0], "n_faces": 231, "n_edges": 629, "n_vertices": 400}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 35.8, "min": 14.3, "max": 71.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004045 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 35.8, \"min\": 14.3, \"max\": 71.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d684e_0344", "family": "bracket", "tier": 2, "seed": 1234004046, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ab75ef44fe70e5df", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28400.0, "surface_area": 9580.0, "principal_moments": [4660000.0, 14299999.999999998, 15499999.999999998], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 41.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 32.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 7.7, "min": 4.0, "max": 17.5, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004046 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 41.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 32.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 7.7, \"min\": 4.0, \"max\": 17.5, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d684f_0345", "family": "bracket", "tier": 1, "seed": 1234004047, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "339c904cc7808469", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11400.0, "surface_area": 8530.0, "principal_moments": [2010000.0, 4980000.0, 6050000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 40.49, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 31.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 30.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004047 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 40.49, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 31.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 30.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6850_0346", "family": "bracket", "tier": 1, "seed": 1234004048, "symmetry": "none", "op_count": 1, "ir_hash": "5f4904675105fc57", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 59500.0, "surface_area": 23100.0, "principal_moments": [41000000.0, 67400000.0, 83400000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 75, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 68.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50.05, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004048 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 68.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50.05, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6851_0347", "family": "revolved", "tier": 1, "seed": 1234004049, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "ef9a7bac9a1e860f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 94200.0, "surface_area": 17900.0, "principal_moments": [41200000.0, 41200000.0, 42400000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 54.84, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 60.0, "min": 18.0, "max": 180.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.4, "min": 0.1, "max": 4.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004049 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 54.84, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 60.0, \"min\": 18.0, \"max\": 180.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.4, \"min\": 0.1, \"max\": 4.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6854_0350", "family": "plate", "tier": 0, "seed": 1234004052, "symmetry": "radial", "op_count": 1, "ir_hash": "8f35c05fc44ae446", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19900.0, "surface_area": 9270.0, "principal_moments": [3690000.0, 11899999.999999998, 15499999.999999998], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 84.77, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 46.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004052 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 84.77, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 46.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6855_0351", "family": "bracket", "tier": 1, "seed": 1234004053, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "a451a48af109d11f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33800.0, "surface_area": 13400.0, "principal_moments": [9280000.0, 20500000.0, 25399999.999999996], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 50.12, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 41.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 33.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004053 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50.12, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 41.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 33.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6856_0352", "family": "threaded", "tier": 0, "seed": 1234004054, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "4ff4b5418013a582", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16100.0, "surface_area": 6080.0, "principal_moments": [693000.0, 5130000.0, 5130000.0], "n_faces": 429, "n_edges": 1181, "n_vertices": 754}, "params": {"major_d": {"type": "float", "default": 20.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.5, "min": 1.25, "max": 5.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 60.0, "min": 24.0, "max": 120.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004054 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 20.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.25, \"max\": 5.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 60.0, \"min\": 24.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6857_0353", "family": "bracket", "tier": 2, "seed": 1234004055, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "9f4049e2921c6ae3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19300.0, "surface_area": 11400.0, "principal_moments": [11300000.0, 21700000.0, 31899999.999999996], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 74.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.4, "min": 2.0, "max": 10.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004055 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 74.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.4, \"min\": 2.0, \"max\": 10.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6858_0354", "family": "block", "tier": 1, "seed": 1234004056, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "393910423936bc7e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 869000.0, "surface_area": 65700.0, "principal_moments": [1280000000.0, 1310000000.0, 1410000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 97.99, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 90.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004056 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 97.99, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 90.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d685a_0356", "family": "revolved", "tier": 1, "seed": 1234004058, "symmetry": "radial", "op_count": 1, "ir_hash": "db79e6565261cc4e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 198000.0, "surface_area": 25300.0, "principal_moments": [130000000.0, 130000000.0, 161000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 74.54, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 54.6, "min": 16.4, "max": 163.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 30.7, "min": 2.0, "max": 52.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004058 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 74.54, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 54.6, \"min\": 16.4, \"max\": 163.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 30.7, \"min\": 2.0, \"max\": 52.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d685b_0357", "family": "bracket", "tier": 1, "seed": 1234004059, "symmetry": "none", "op_count": 1, "ir_hash": "5206b0c8cf05d8bf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12600.0, "surface_area": 5540.0, "principal_moments": [1340000.0, 2770000.0, 3530000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 29.63, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 31.43, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004059 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 29.63, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 31.43, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d685c_0358", "family": "compound", "tier": 1, "seed": 1234004060, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "d3a25707f261f910", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6340.0, "surface_area": 2300.0, "principal_moments": [228000.0, 593000.0, 602000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 15.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 15.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_w": {"type": "float", "default": 4.9, "min": 2.5, "max": 8.4, "step": 0.5, "group": "Spigot", "label": "Spigot width (mm)"}, "spig_slot_l": {"type": "float", "default": 10.5, "min": 5.9, "max": 10.5, "step": 1.0, "group": "Spigot", "label": "Spigot slot length (mm)"}, "spig_len": {"type": "float", "default": 12.1, "min": 1.5, "max": 19.6, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004060 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 15.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 15.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_w\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.5, \"max\": 8.4, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Spigot width (mm)'},\n \"spig_slot_l\": {\"type\": 'float', \"default\": 10.5, \"min\": 5.9, \"max\": 10.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot slot length (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 12.1, \"min\": 1.5, \"max\": 19.6, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d685e_0360", "family": "compound", "tier": 1, "seed": 1234004062, "symmetry": "none", "op_count": 3, "ir_hash": "8bdb3a0cfb0da778", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 123000.0, "surface_area": 20600.0, "principal_moments": [62599999.99999999, 80500000.0, 93799999.99999999], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"base_w": {"type": "float", "default": 80, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 65.8, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 20.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 22.6, "min": 9.0, "max": 32.9, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 46.8, "min": 14.0, "max": 140.4, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004062 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 80, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 65.8, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 20.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 22.6, \"min\": 9.0, \"max\": 32.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 46.8, \"min\": 14.0, \"max\": 140.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d685f_0361", "family": "profiled", "tier": 1, "seed": 1234004063, "symmetry": "none", "op_count": 1, "ir_hash": "ba0b672955c7d67d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 246000.0, "surface_area": 30500.0, "principal_moments": [50599999.99999999, 847000000.0, 847000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"circ_r": {"type": "float", "default": 24.82, "min": 12.4, "max": 49.6, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 4, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 200.0, "min": 60.0, "max": 600.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004063 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 24.82, \"min\": 12.4, \"max\": 49.6, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 200.0, \"min\": 60.0, \"max\": 600.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6860_0362", "family": "block", "tier": 1, "seed": 1234004064, "symmetry": "radial", "op_count": 2, "ir_hash": "1d5aadd33e4587dc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 453000.0, "surface_area": 58900.0, "principal_moments": [458000000.0, 481000000.0, 732000000.0], "n_faces": 24, "n_edges": 66, "n_vertices": 44}, "params": {"block_w": {"type": "float", "default": 95, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 53.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 28.5, "min": 19.0, "max": 42.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004064 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 95, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 53.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 28.5, \"min\": 19.0, \"max\": 42.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6862_0364", "family": "revolved", "tier": 1, "seed": 1234004066, "symmetry": "radial", "op_count": 2, "ir_hash": "5e34bd1abad99a8f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1900.0, "surface_area": 1660.0, "principal_moments": [32800.0, 127000.0, 127000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 10.75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 31.4, "min": 9.4, "max": 94.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 1.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004066 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 10.75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 31.4, \"min\": 9.4, \"max\": 94.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 1.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6864_0366", "family": "bracket", "tier": 2, "seed": 1234004068, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d30af10e4598a6ff", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21100.0, "surface_area": 12000.0, "principal_moments": [5610000.0, 16599999.999999998, 16900000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 73.87, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 55.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.5, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004068 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 73.87, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 55.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6865_0367", "family": "threaded", "tier": 1, "seed": 1234004069, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ec4dc72422522786", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1420.0, "surface_area": 1620.0, "principal_moments": [18000.0, 114000.0, 114000.0], "n_faces": 303, "n_edges": 827, "n_vertices": 526}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 29.9, "min": 12.0, "max": 59.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004069 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 29.9, \"min\": 12.0, \"max\": 59.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6866_0368", "family": "revolved", "tier": 2, "seed": 1234004070, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "308c28c412700227", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18300.0, "surface_area": 4990.0, "principal_moments": [2260000.0, 2260000.0, 3360000.0], "n_faces": 12, "n_edges": 20, "n_vertices": 12}, "params": {"outer_d": {"type": "float", "default": 36.77, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 19.6, "min": 5.9, "max": 58.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 11.8, "min": 2.0, "max": 25.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 1.2, "min": 0.48, "max": 3.6, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 2.2, "min": 0.88, "max": 6.6, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 8.6, "min": 2.9, "max": 16.7, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.7, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004070 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 36.77, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 19.6, \"min\": 5.9, \"max\": 58.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 11.8, \"min\": 2.0, \"max\": 25.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 1.2, \"min\": 0.48, \"max\": 3.6, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 2.2, \"min\": 0.88, \"max\": 6.6, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 8.6, \"min\": 2.9, \"max\": 16.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.7, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.0441175458336096)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6868_0370", "family": "enclosure", "tier": 2, "seed": 1234004072, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "2021c4f1b7537f35", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 119000.0, "surface_area": 43300.0, "principal_moments": [120000000.0, 136000000.0, 152000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 75, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 66.2, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 66.6, "min": 26.6, "max": 133.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004072 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 75, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 66.2, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 66.6, \"min\": 26.6, \"max\": 133.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6869_0371", "family": "block", "tier": 1, "seed": 1234004073, "symmetry": "none", "op_count": 2, "ir_hash": "d9ecab49ebe6b0d0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 352000.0, "surface_area": 36600.0, "principal_moments": [217000000.0, 373000000.0, 431000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 68.61, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 52.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 11.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004073 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 68.61, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 52.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 11.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d686a_0372", "family": "enclosure", "tier": 2, "seed": 1234004074, "symmetry": "none", "op_count": 3, "ir_hash": "75e5bcb926000519", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 113000.0, "surface_area": 49200.0, "principal_moments": [111000000.0, 181000000.0, 221000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 103.26, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 69.7, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 55.4, "min": 22.2, "max": 110.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004074 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 103.26, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 69.7, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 55.4, \"min\": 22.2, \"max\": 110.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d686b_0373", "family": "ribbed", "tier": 1, "seed": 1234004075, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "c2e584380e688871", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11300.0, "surface_area": 7730.0, "principal_moments": [1470000.0, 2770000.0, 2970000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 24.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 19.8, "min": 7.9, "max": 39.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.2, "min": 1.0, "max": 5.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004075 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 24.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 19.8, \"min\": 7.9, \"max\": 39.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.2, \"min\": 1.0, \"max\": 5.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d686c_0374", "family": "block", "tier": 1, "seed": 1234004076, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "4ba6c04ef1b94e80", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 50200.0, "surface_area": 10100.0, "principal_moments": [9880000.0, 12399999.999999998, 13299999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 43.89, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 36.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 32.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 8.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004076 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 43.89, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 36.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 32.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 8.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d686d_0375", "family": "compound", "tier": 1, "seed": 1234004077, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "5cfacae565de8165", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37200.0, "surface_area": 7630.0, "principal_moments": [7180000.0, 8450000.0, 8450000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 25.52, "min": 15.3, "max": 40.8, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 12.0, "min": 4.8, "max": 30.0, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 28.1, "min": 14.1, "max": 35.4, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 27.3, "min": 8.2, "max": 68.2, "step": 1.0, "group": "Column", "label": "Column height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004077 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 25.52, \"min\": 15.3, \"max\": 40.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.8, \"max\": 30.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 28.1, \"min\": 14.1, \"max\": 35.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 27.3, \"min\": 8.2, \"max\": 68.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d686e_0376", "family": "enclosure", "tier": 1, "seed": 1234004078, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "627e964d718c0a1f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41400.0, "surface_area": 16000.0, "principal_moments": [13099999.999999998, 18100000.0, 20500000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 53.12, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 32.3, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 44.6, "min": 17.8, "max": 89.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.5, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004078 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 53.12, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 32.3, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 44.6, \"min\": 17.8, \"max\": 89.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d686f_0377", "family": "enclosure", "tier": 1, "seed": 1234004079, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "1fee47a690253e3e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9680.0, "surface_area": 7810.0, "principal_moments": [1320000.0, 2680000.0, 3060000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 44.89, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 25.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 22.3, "min": 8.9, "max": 44.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004079 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 44.89, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 25.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 22.3, \"min\": 8.9, \"max\": 44.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6871_0379", "family": "block", "tier": 1, "seed": 1234004081, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "d9a3cf60a259a894", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 187000.0, "surface_area": 27700.0, "principal_moments": [73400000.0, 170000000.0, 214000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 61.84, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 31.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 7.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004081 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 61.84, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 31.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 7.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6872_0380", "family": "threaded", "tier": 1, "seed": 1234004082, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "01cf318af72adb42", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14500.0, "surface_area": 5540.0, "principal_moments": [627000.0, 3850000.0, 3850000.0], "n_faces": 384, "n_edges": 1054, "n_vertices": 672}, "params": {"major_d": {"type": "float", "default": 20.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.5, "min": 1.25, "max": 5.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 54.3, "min": 21.7, "max": 108.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004082 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 20.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.25, \"max\": 5.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 54.3, \"min\": 21.7, \"max\": 108.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6873_0381", "family": "block", "tier": 1, "seed": 1234004083, "symmetry": "none", "op_count": 2, "ir_hash": "211a3217885cff28", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38400.0, "surface_area": 8880.0, "principal_moments": [6350000.0, 8150000.0, 8200000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 40, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 32.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 31.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 9.4, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004083 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 32.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 31.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 9.4, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6874_0382", "family": "ribbed", "tier": 1, "seed": 1234004084, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3fe335b9710dc33f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39100.0, "surface_area": 20100.0, "principal_moments": [17200000.0, 34600000.0, 50599999.99999999], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 96.54, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 70.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 15.0, "min": 6.0, "max": 30.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.2, "min": 1.0, "max": 5.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004084 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 96.54, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 70.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 15.0, \"min\": 6.0, \"max\": 30.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.2, \"min\": 1.0, \"max\": 5.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6875_0383", "family": "bracket", "tier": 1, "seed": 1234004085, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ca0f348a19cca3d5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8400.0, "surface_area": 6340.0, "principal_moments": [1210000.0, 2210000.0, 2990000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 37.6, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004085 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 37.6, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6876_0384", "family": "compound", "tier": 1, "seed": 1234004086, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "0b93d6161c920c20", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6340.0, "surface_area": 3020.0, "principal_moments": [472000.0, 506000.0, 524000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"base_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 15.5, "min": 9.3, "max": 24.8, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 8.1, "min": 3.2, "max": 20.2, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 14.4, "min": 7.2, "max": 20.1, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 15.7, "min": 4.7, "max": 39.2, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 6.7, "min": 2.0, "max": 10.4, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004086 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 15.5, \"min\": 9.3, \"max\": 24.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 8.1, \"min\": 3.2, \"max\": 20.2, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 14.4, \"min\": 7.2, \"max\": 20.1, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 15.7, \"min\": 4.7, \"max\": 39.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 6.7, \"min\": 2.0, \"max\": 10.4, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6877_0385", "family": "plate", "tier": 0, "seed": 1234004087, "symmetry": "radial", "op_count": 1, "ir_hash": "9e6ccd658ab34dce", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3230.0, "surface_area": 2560.0, "principal_moments": [156000.0, 547000.0, 698000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 23.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004087 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 23.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6878_0386", "family": "block", "tier": 2, "seed": 1234004088, "symmetry": "none", "op_count": 3, "ir_hash": "89e7a3719085b822", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 822000.0, "surface_area": 55800.0, "principal_moments": [1140000000.0, 1150000000.0, 1360000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 100.0, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 83.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004088 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 100.0, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 83.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.09167293432939358)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6879_0387", "family": "block", "tier": 2, "seed": 1234004089, "symmetry": "none", "op_count": 3, "ir_hash": "0c512f831510cc22", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 164000.0, "surface_area": 23700.0, "principal_moments": [71300000.0, 100000000.0, 143000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 80, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 33.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 64.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 7.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004089 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 33.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 64.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 7.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.06582766208030255)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d687a_0388", "family": "bracket", "tier": 1, "seed": 1234004090, "symmetry": "none", "op_count": 1, "ir_hash": "3fffc86895873fa1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13200.0, "surface_area": 5900.0, "principal_moments": [1680000.0, 4200000.0, 4550000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 48.63, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 32.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004090 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 48.63, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 32.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d687e_0392", "family": "revolved", "tier": 2, "seed": 1234004094, "symmetry": "none", "op_count": 1, "ir_hash": "ba99d8c97d3ef3b9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 365000.0, "surface_area": 52900.0, "principal_moments": [246000000.0, 643000000.0, 643000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 67.09, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 154.9, "min": 46.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004094 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 67.09, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 154.9, \"min\": 46.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d687f_0393", "family": "block", "tier": 1, "seed": 1234004095, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "d1dcc160acd605e3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 100000.0, "surface_area": 16700.0, "principal_moments": [28699999.999999996, 44900000.0, 54999999.99999999], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 47.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 33.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004095 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 47.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 33.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 16.2\n _ssy = 16.9\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6880_0394", "family": "plate", "tier": 1, "seed": 1234004096, "symmetry": "none", "op_count": 2, "ir_hash": "b5a2cca763782673", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 82600.0, "surface_area": 19100.0, "principal_moments": [48399999.99999999, 49999999.99999999, 96299999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 83.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004096 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 83.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6881_0395", "family": "plate", "tier": 0, "seed": 1234004097, "symmetry": "radial", "op_count": 1, "ir_hash": "b96302565645d221", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13400.0, "surface_area": 3890.0, "principal_moments": [923000.0, 2210000.0, 2810000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 42.84, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 26.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004097 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 42.84, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 26.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6882_0396", "family": "profiled", "tier": 0, "seed": 1234004098, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "eda3e57f85ca5290", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 78000.0, "surface_area": 17100.0, "principal_moments": [4490000.0, 399000000.0, 401000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 25, "min": 12.5, "max": 50.0, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 14.41, "min": 7.2, "max": 28.8, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 247.2, "min": 74.2, "max": 741.6, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004098 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 25, \"min\": 12.5, \"max\": 50.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 14.41, \"min\": 7.2, \"max\": 28.8, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 247.2, \"min\": 74.2, \"max\": 741.6, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6884_0398", "family": "revolved", "tier": 0, "seed": 1234004100, "symmetry": "none", "op_count": 1, "ir_hash": "281b84b2d7b54847", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 196000.0, "surface_area": 29500.0, "principal_moments": [136000000.0, 136000000.0, 152000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 72.08, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 71.9, "min": 21.6, "max": 215.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004100 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 72.08, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 71.9, \"min\": 21.6, \"max\": 215.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6885_0399", "family": "compound", "tier": 1, "seed": 1234004101, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "648b6be9c8422ed0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42300.0, "surface_area": 7970.0, "principal_moments": [9090000.0, 9740000.0, 9740000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 25, "min": 15.0, "max": 40.0, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 20.0, "min": 8.0, "max": 50.0, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 22.8, "min": 11.4, "max": 34.6, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 24.0, "min": 7.2, "max": 60.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004101 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 20.0, \"min\": 8.0, \"max\": 50.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 22.8, \"min\": 11.4, \"max\": 34.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 24.0, \"min\": 7.2, \"max\": 60.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6886_0400", "family": "compound", "tier": 1, "seed": 1234004102, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "5f67940761388970", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 87700.0, "surface_area": 13900.0, "principal_moments": [24599999.999999996, 32299999.999999996, 34600000.0], "n_faces": 13, "n_edges": 26, "n_vertices": 17}, "params": {"block_w": {"type": "float", "default": 54.12, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 37.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 43.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 12.3, "min": 4.9, "max": 16.7, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 11.9, "min": 3.1, "max": 36.9, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 5.9, "min": 2.0, "max": 8.9, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004102 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 54.12, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 37.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 43.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 12.3, \"min\": 4.9, \"max\": 16.7, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 11.9, \"min\": 3.1, \"max\": 36.9, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 5.9, \"min\": 2.0, \"max\": 8.9, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6888_0402", "family": "revolved", "tier": 1, "seed": 1234004104, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "e04ce42e7c6ee2b9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28200.0, "surface_area": 7530.0, "principal_moments": [2310000.0, 11699999.999999998, 11699999.999999998], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 24.41, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 67.3, "min": 20.2, "max": 201.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 7.8, "min": 2.0, "max": 17.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004104 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 24.41, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 67.3, \"min\": 20.2, \"max\": 201.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 7.8, \"min\": 2.0, \"max\": 17.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 3.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d688a_0404", "family": "revolved", "tier": 1, "seed": 1234004106, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "543eafa441483d9a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1090000.0, "surface_area": 93400.0, "principal_moments": [947000000.0, 6360000000.0, 6360000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 78.73, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 254.7, "min": 76.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 27.4, "min": 2.0, "max": 55.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.3, "min": 0.1, "max": 0.9, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004106 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 78.73, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 254.7, \"min\": 76.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 27.4, \"min\": 2.0, \"max\": 55.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.3, \"min\": 0.1, \"max\": 0.9, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d688d_0407", "family": "threaded", "tier": 0, "seed": 1234004109, "symmetry": "none", "op_count": 1, "ir_hash": "34ad1ed7760f6d30", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 697.0, "surface_area": 873.0, "principal_moments": [2590.0, 54900.0, 54900.0], "n_faces": 310, "n_edges": 796, "n_vertices": 488}, "params": {"major_d": {"type": "float", "default": 6.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.0, "min": 0.5, "max": 2.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 30.5, "min": 12.2, "max": 61.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004109 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.5, \"max\": 2.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 30.5, \"min\": 12.2, \"max\": 61.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d688e_0408", "family": "flanged", "tier": 2, "seed": 1234004110, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "a63d58c5480ef944", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 649000.0, "surface_area": 87200.0, "principal_moments": [1360000000.0, 1360000000.0, 1500000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 91.65, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 97.8, "min": 29.3, "max": 244.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 49.8, "min": 2.0, "max": 64.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 166.8, "min": 119.1, "max": 275.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 12.8, "min": 3.8, "max": 39.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 50.0, "min": 33.4, "max": 75.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004110 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 91.65, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 97.8, \"min\": 29.3, \"max\": 244.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 49.8, \"min\": 2.0, \"max\": 64.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 166.8, \"min\": 119.1, \"max\": 275.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 12.8, \"min\": 3.8, \"max\": 39.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 50.0, \"min\": 33.4, \"max\": 75.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d688f_0409", "family": "ribbed", "tier": 2, "seed": 1234004111, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "3c66c0a6e8934c3e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20800.0, "surface_area": 9480.0, "principal_moments": [2870000.0, 4500000.0, 5190000.0], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 42.91, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 23.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 19.6, "min": 7.8, "max": 39.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.9, "min": 1.0, "max": 14.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004111 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 42.91, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 23.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 19.6, \"min\": 7.8, \"max\": 39.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.9, \"min\": 1.0, \"max\": 14.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6890_0410", "family": "revolved", "tier": 1, "seed": 1234004112, "symmetry": "none", "op_count": 1, "ir_hash": "91b7ec1d1e25290e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13500.0, "surface_area": 6150.0, "principal_moments": [899000.0, 3160000.0, 3160000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 21.07, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 58.1, "min": 17.4, "max": 174.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004112 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 21.07, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 58.1, \"min\": 17.4, \"max\": 174.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6892_0412", "family": "enclosure", "tier": 1, "seed": 1234004114, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "c88a5c4e87e572ca", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7300.0, "surface_area": 7200.0, "principal_moments": [885000.0, 1640000.0, 1860000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 40, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 17.9, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 27.8, "min": 11.1, "max": 55.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.1, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004114 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 40, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 17.9, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 27.8, \"min\": 11.1, \"max\": 55.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.1, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6893_0413", "family": "plate", "tier": 0, "seed": 1234004115, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "26297cf516f9ffa2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3210.0, "surface_area": 1540.0, "principal_moments": [53100.0, 337000.0, 356000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 34.59, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 11.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004115 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 34.59, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 11.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6894_0414", "family": "block", "tier": 1, "seed": 1234004116, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "4f495b0d86e31e6b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41600.0, "surface_area": 10400.0, "principal_moments": [7730000.0, 8780000.0, 12399999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 45, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 24.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 40.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 5.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004116 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 24.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 40.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 5.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6895_0415", "family": "block", "tier": 1, "seed": 1234004117, "symmetry": "none", "op_count": 2, "ir_hash": "d200f432bca27171", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33800.0, "surface_area": 8670.0, "principal_moments": [4630000.0, 7580000.0, 9710000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 21.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 47.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004117 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 21.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 47.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6896_0416", "family": "ribbed", "tier": 1, "seed": 1234004118, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "dbab651662ebc280", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 70000.0, "surface_area": 19900.0, "principal_moments": [28999999.999999996, 54399999.99999999, 81700000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 69.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 7.2, "min": 2.9, "max": 14.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.7, "min": 1.0, "max": 6.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004118 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 69.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 7.2, \"min\": 2.9, \"max\": 14.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.7, \"min\": 1.0, \"max\": 6.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6898_0418", "family": "revolved", "tier": 2, "seed": 1234004120, "symmetry": "radial", "op_count": 1, "ir_hash": "f78195f6e132ea20", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 184000.0, "surface_area": 34700.0, "principal_moments": [85600000.0, 204000000.0, 204000000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 50, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 117.8, "min": 35.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 70.2, "min": 60.0, "max": 150.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 15.7, "min": 4.7, "max": 58.9, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004120 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 117.8, \"min\": 35.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 70.2, \"min\": 60.0, \"max\": 150.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 15.7, \"min\": 4.7, \"max\": 58.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d689a_0420", "family": "profiled", "tier": 1, "seed": 1234004122, "symmetry": "none", "op_count": 1, "ir_hash": "499f04370b3ecc6a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 69700.0, "surface_area": 12600.0, "principal_moments": [6040000.0, 102000000.0, 102000000.0], "n_faces": 7, "n_edges": 15, "n_vertices": 10}, "params": {"circ_r": {"type": "float", "default": 15, "min": 7.5, "max": 30.0, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 130.3, "min": 39.1, "max": 390.9, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004122 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 15, \"min\": 7.5, \"max\": 30.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 130.3, \"min\": 39.1, \"max\": 390.9, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d689b_0421", "family": "revolved", "tier": 1, "seed": 1234004123, "symmetry": "radial", "op_count": 2, "ir_hash": "4511e3384065dfae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 216.0, "surface_area": 268.0, "principal_moments": [1600.0, 1600.0, 2160.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 8.14, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 5.9, "min": 1.8, "max": 17.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 5.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004123 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 8.14, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 5.9, \"min\": 1.8, \"max\": 17.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 5.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d689d_0423", "family": "revolved", "tier": 2, "seed": 1234004125, "symmetry": "none", "op_count": 1, "ir_hash": "a10158f4c0152167", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1150000.0, "surface_area": 115000.0, "principal_moments": [1470000000.0, 8850000000.0, 8850000000.0], "n_faces": 10, "n_edges": 15, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 70, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 264.0, "min": 79.2, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 27.3, "min": 2.0, "max": 49.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 133.0, "min": 84.0, "max": 210.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 31.7, "min": 9.5, "max": 132.0, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "groove_depth": {"type": "float", "default": 5.44, "min": 2.18, "max": 16.32, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 29.67, "min": 11.87, "max": 89.01, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 137.5, "min": 39.6, "max": 224.4, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004125 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 70, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 264.0, \"min\": 79.2, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 27.3, \"min\": 2.0, \"max\": 49.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 133.0, \"min\": 84.0, \"max\": 210.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 31.7, \"min\": 9.5, \"max\": 132.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 5.44, \"min\": 2.18, \"max\": 16.32, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 29.67, \"min\": 11.87, \"max\": 89.01, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 137.5, \"min\": 39.6, \"max\": 224.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d689e_0424", "family": "bracket", "tier": 1, "seed": 1234004126, "symmetry": "none", "op_count": 1, "ir_hash": "199f7029146ee80c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20400.0, "surface_area": 8420.0, "principal_moments": [4130000.0, 5680000.0, 8770000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 36.84, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45.86, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004126 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 36.84, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45.86, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d689f_0425", "family": "block", "tier": 2, "seed": 1234004127, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "b5cb9c77ad2604d5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 246000.0, "surface_area": 38900.0, "principal_moments": [168000000.0, 218000000.0, 335000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 81.33, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 34.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 7.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 42.7, "min": 21.4, "max": 65.1, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 18.0, "min": 9.0, "max": 27.4, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 30.9, "min": 12.4, "max": 85.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004127 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 81.33, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 34.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 7.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 42.7, \"min\": 21.4, \"max\": 65.1, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 18.0, \"min\": 9.0, \"max\": 27.4, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 30.9, \"min\": 12.4, \"max\": 85.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d68a0_0426", "family": "bracket", "tier": 2, "seed": 1234004128, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "987a73d0c2371857", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33000.0, "surface_area": 23500.0, "principal_moments": [14499999.999999998, 50699999.99999999, 54399999.99999999], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 63.31, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 70.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 58.36, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 55.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 2.9, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004128 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 63.31, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 70.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 58.36, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 55.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.9, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d68a1_0427", "family": "compound", "tier": 2, "seed": 1234004129, "symmetry": "none", "op_count": 4, "ir_hash": "2641a43b307a8235", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 58200.0, "surface_area": 18700.0, "principal_moments": [25099999.999999996, 79400000.0, 79500000.0], "n_faces": 27, "n_edges": 72, "n_vertices": 48}, "params": {"base_w": {"type": "float", "default": 73.4, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 73.8, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 5.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 11.2, "min": 5.6, "max": 18.4, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 100.5, "min": 30.1, "max": 301.5, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004129 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 73.4, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 73.8, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 11.2, \"min\": 5.6, \"max\": 18.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 100.5, \"min\": 30.1, \"max\": 301.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_w\"], p[\"base_d\"]) * 0.0776050944734572)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d68a2_0428", "family": "enclosure", "tier": 2, "seed": 1234004130, "symmetry": "none", "op_count": 3, "ir_hash": "5409874300c41a7e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23800.0, "surface_area": 22200.0, "principal_moments": [14299999.999999998, 14499999.999999998, 24299999.999999996], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 63.23, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 62.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 30.5, "min": 12.2, "max": 61.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004130 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 63.23, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 62.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 30.5, \"min\": 12.2, \"max\": 61.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d68a3_0429", "family": "block", "tier": 1, "seed": 1234004131, "symmetry": "radial", "op_count": 2, "ir_hash": "44f9f12dabdbe1ce", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 457000.0, "surface_area": 42400.0, "principal_moments": [463000000.0, 463000000.0, 760000000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 100.0, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 46.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 30.0, "min": 20.0, "max": 45.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004131 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 100.0, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 46.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 30.0, \"min\": 20.0, \"max\": 45.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d68a4_0430", "family": "revolved", "tier": 1, "seed": 1234004132, "symmetry": "none", "op_count": 1, "ir_hash": "c1f0bf1a58d30213", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 113000.0, "surface_area": 19500.0, "principal_moments": [59599999.99999999, 59599999.99999999, 64099999.99999999], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 60, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 54.0, "min": 16.2, "max": 162.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 30.5, "min": 2.0, "max": 42.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004132 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 54.0, \"min\": 16.2, \"max\": 162.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 30.5, \"min\": 2.0, \"max\": 42.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d68a5_0431", "family": "revolved", "tier": 1, "seed": 1234004133, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "34a3cdb3fee150c7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34900.0, "surface_area": 11400.0, "principal_moments": [4540000.0, 14499999.999999998, 14499999.999999998], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 29.46, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 76.8, "min": 23.0, "max": 230.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004133 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 29.46, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 76.8, \"min\": 23.0, \"max\": 230.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d68a6_0432", "family": "compound", "tier": 2, "seed": 1234004134, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "8ab46585893958a4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5040.0, "surface_area": 2320.0, "principal_moments": [144000.0, 499000.0, 499000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 15.22, "min": 7.6, "max": 27.4, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 26.5, "min": 10.6, "max": 53.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 8.4, "min": 4.2, "max": 13.7, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 10.9, "min": 3.3, "max": 27.2, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 3.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004134 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 15.22, \"min\": 7.6, \"max\": 27.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 26.5, \"min\": 10.6, \"max\": 53.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 4.2, \"max\": 13.7, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 10.9, \"min\": 3.3, \"max\": 27.2, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 3.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d68a8_0434", "family": "block", "tier": 1, "seed": 1234004136, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "66652c49adb94e4b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 308000.0, "surface_area": 32500.0, "principal_moments": [220000000.0, 233000000.0, 340000000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 82.81, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 47.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 79.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004136 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 82.81, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 47.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 79.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 31.1\n _ssy = 29.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d68a9_0435", "family": "block", "tier": 1, "seed": 1234004137, "symmetry": "none", "op_count": 2, "ir_hash": "76b2b4848f0fe6bc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 53000.0, "surface_area": 11800.0, "principal_moments": [8340000.0, 19600000.0, 22899999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 36.66, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 24.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 62.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004137 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 36.66, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 24.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 62.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d68aa_0436", "family": "ribbed", "tier": 2, "seed": 1234004138, "symmetry": "none", "op_count": 2, "ir_hash": "1adce2dd1217bbf1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25300.0, "surface_area": 15800.0, "principal_moments": [5220000.0, 10800000.0, 14099999.999999998], "n_faces": 46, "n_edges": 112, "n_vertices": 68}, "params": {"base_w": {"type": "float", "default": 68.88, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 37.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 15.6, "min": 6.2, "max": 31.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.3, "min": 1.0, "max": 5.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004138 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 68.88, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 37.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 15.6, \"min\": 6.2, \"max\": 31.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.3, \"min\": 1.0, \"max\": 5.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d68ab_0437", "family": "plate", "tier": 1, "seed": 1234004139, "symmetry": "none", "op_count": 2, "ir_hash": "ede31c9662fdbba9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 58000.0, "surface_area": 13900.0, "principal_moments": [12899999.999999998, 46199999.99999999, 57699999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 97.3, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 50.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 11.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004139 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 97.3, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 50.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 11.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d68ac_0438", "family": "revolved", "tier": 1, "seed": 1234004140, "symmetry": "radial", "op_count": 1, "ir_hash": "e1ba9b69ba88c8be", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 790000.0, "surface_area": 88400.0, "principal_moments": [1200000000.0, 2670000000.0, 2670000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 67.62, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 179.0, "min": 53.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 39.2, "min": 2.0, "max": 47.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 121.0, "min": 81.1, "max": 202.9, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 45.9, "min": 13.8, "max": 89.5, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004140 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 67.62, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 179.0, \"min\": 53.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 39.2, \"min\": 2.0, \"max\": 47.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 121.0, \"min\": 81.1, \"max\": 202.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 45.9, \"min\": 13.8, \"max\": 89.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d68ad_0439", "family": "bracket", "tier": 1, "seed": 1234004141, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "c4820f97675ccae9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29700.0, "surface_area": 13700.0, "principal_moments": [10800000.0, 15099999.999999998, 18100000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 36.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 52.67, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004141 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 36.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 52.67, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d68ae_0440", "family": "plate", "tier": 2, "seed": 1234004142, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "df741cbbd968ff77", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33400.0, "surface_area": 13700.0, "principal_moments": [8350000.0, 30099999.999999996, 38200000.0], "n_faces": 26, "n_edges": 72, "n_vertices": 48}, "params": {"plate_w": {"type": "float", "default": 105, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 55.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 12.4, "step": 0.5, "group": "Holes", "label": "Slot width (mm)"}, "hole_slot_len": {"type": "float", "default": 11.0, "min": 7.9, "max": 16.5, "step": 0.5, "group": "Holes", "label": "Slot length (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004142 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 105, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 55.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 12.4, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot width (mm)'},\n \"hole_slot_len\": {\"type\": 'float', \"default\": 11.0, \"min\": 7.9, \"max\": 16.5, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot length (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07257355839040132)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d68af_0441", "family": "block", "tier": 1, "seed": 1234004143, "symmetry": "none", "op_count": 2, "ir_hash": "4df887d03cafd715", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 284000.0, "surface_area": 34000.0, "principal_moments": [200000000.0, 253000000.0, 396000000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 34.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 97.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004143 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 34.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 97.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 31.9\n _ssy = 26.5\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d68b1_0443", "family": "bracket", "tier": 1, "seed": 1234004145, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "158f763e5cd86dc5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25200.0, "surface_area": 12200.0, "principal_moments": [9470000.0, 32099999.999999996, 37800000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 84.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004145 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 84.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d68b3_0445", "family": "revolved", "tier": 2, "seed": 1234004147, "symmetry": "none", "op_count": 1, "ir_hash": "983870c99b0ecdd9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1780.0, "surface_area": 1320.0, "principal_moments": [25800.0, 121000.0, 121000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 10, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 27.0, "min": 8.1, "max": 81.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 4.0, "min": 2.0, "max": 7.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004147 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 10, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 27.0, \"min\": 8.1, \"max\": 81.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 7.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d68b5_0447", "family": "plate", "tier": 0, "seed": 1234004149, "symmetry": "none", "op_count": 1, "ir_hash": "58b32579c7f1ab37", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26600.0, "surface_area": 7450.0, "principal_moments": [3960000.0, 9610000.0, 13099999.999999998], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 41.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004149 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 41.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d68b6_0448", "family": "revolved", "tier": 0, "seed": 1234004150, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "6cb7c9195af1c01b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7240.0, "surface_area": 3170.0, "principal_moments": [593000.0, 593000.0, 988000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 30.16, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 15.2, "min": 4.6, "max": 45.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004150 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30.16, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 15.2, \"min\": 4.6, \"max\": 45.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d68b7_0449", "family": "threaded", "tier": 1, "seed": 1234004151, "symmetry": "none", "op_count": 1, "ir_hash": "2ab0ae44b2f1ca43", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 735.0, "surface_area": 881.0, "principal_moments": [9320.0, 19300.0, 19300.0], "n_faces": 159, "n_edges": 431, "n_vertices": 274}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 15.5, "min": 6.2, "max": 31.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004151 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 15.5, \"min\": 6.2, \"max\": 31.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d68b8_0450", "family": "enclosure", "tier": 1, "seed": 1234004152, "symmetry": "none", "op_count": 2, "ir_hash": "7b9890937430011f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16700.0, "surface_area": 6610.0, "principal_moments": [1520000.0, 4230000.0, 4320000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 47.12, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 20.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 23.4, "min": 9.4, "max": 46.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.7, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004152 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 47.12, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 20.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 23.4, \"min\": 9.4, \"max\": 46.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d68ba_0452", "family": "compound", "tier": 2, "seed": 1234004154, "symmetry": "none", "op_count": 5, "ir_hash": "cad3befbd5828ea3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 78700.0, "surface_area": 14700.0, "principal_moments": [23699999.999999996, 24199999.999999996, 26899999.999999996], "n_faces": 35, "n_edges": 92, "n_vertices": 60}, "params": {"block_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 45.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 39.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 4.0, "min": 2.0, "max": 9.0, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 8.0, "min": 1.6, "max": 19.4, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 3.7, "min": 2.0, "max": 4.7, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 10.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004154 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 45.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 39.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 9.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 8.0, \"min\": 1.6, \"max\": 19.4, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 3.7, \"min\": 2.0, \"max\": 4.7, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 10.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d68bb_0453", "family": "bracket", "tier": 1, "seed": 1234004155, "symmetry": "none", "op_count": 1, "ir_hash": "bac264f44ba762b6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16600.0, "surface_area": 9710.0, "principal_moments": [4300000.0, 15099999.999999998, 16900000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 80.04, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 62.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004155 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80.04, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 62.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d68bd_0455", "family": "compound", "tier": 2, "seed": 1234004157, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "1372d33b488d3175", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 112000.0, "surface_area": 25600.0, "principal_moments": [77200000.0, 106000000.0, 107000000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_w": {"type": "float", "default": 70, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 70.7, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 20.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 18.1, "min": 7.2, "max": 35.0, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 94.3, "min": 28.3, "max": 282.9, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 8.7, "min": 2.0, "max": 13.0, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004157 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 70, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 70.7, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 20.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 18.1, \"min\": 7.2, \"max\": 35.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 94.3, \"min\": 28.3, \"max\": 282.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 8.7, \"min\": 2.0, \"max\": 13.0, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d68bf_0457", "family": "ribbed", "tier": 2, "seed": 1234004159, "symmetry": "none", "op_count": 2, "ir_hash": "e1436b60d8d66c76", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16200.0, "surface_area": 10400.0, "principal_moments": [2530000.0, 5470000.0, 7070000.0], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 30.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 13.5, "min": 5.4, "max": 27.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.7, "min": 1.0, "max": 6.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004159 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 30.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 13.5, \"min\": 5.4, \"max\": 27.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.7, \"min\": 1.0, \"max\": 6.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d68c0_0458", "family": "flanged", "tier": 1, "seed": 1234004160, "symmetry": "none", "op_count": 2, "ir_hash": "8a76338e81844610", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 81800.0, "surface_area": 20500.0, "principal_moments": [34300000.0, 41300000.0, 41300000.0], "n_faces": 29, "n_edges": 114, "n_vertices": 76}, "params": {"outer_d": {"type": "float", "default": 41.64, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 54.3, "min": 16.3, "max": 135.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 14.9, "min": 2.0, "max": 29.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 80.0, "min": 54.1, "max": 124.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.3, "min": 1.6, "max": 21.7, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.0, "min": 16.0, "max": 36.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004160 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 41.64, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 54.3, \"min\": 16.3, \"max\": 135.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 14.9, \"min\": 2.0, \"max\": 29.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 80.0, \"min\": 54.1, \"max\": 124.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.3, \"min\": 1.6, \"max\": 21.7, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.0, \"min\": 16.0, \"max\": 36.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d68c1_0459", "family": "ribbed", "tier": 2, "seed": 1234004161, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "0e428bc5525b7295", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13500.0, "surface_area": 9050.0, "principal_moments": [1850000.0, 2780000.0, 3630000.0], "n_faces": 46, "n_edges": 128, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 45.11, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 34.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 15.6, "min": 6.2, "max": 31.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.0, "min": 1.0, "max": 7.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 7.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004161 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 45.11, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 34.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 15.6, \"min\": 6.2, \"max\": 31.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 7.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 7.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d68c2_0460", "family": "threaded", "tier": 0, "seed": 1234004162, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ed72eff15544a405", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1460.0, "surface_area": 1370.0, "principal_moments": [9740.0, 156000.0, 156000.0], "n_faces": 290, "n_edges": 744, "n_vertices": 456}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 35.4, "min": 14.2, "max": 70.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004162 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 35.4, \"min\": 14.2, \"max\": 70.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d68c3_0461", "family": "flanged", "tier": 2, "seed": 1234004163, "symmetry": "radial", "op_count": 3, "ir_hash": "84ad6691e4686fc5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29000.0, "surface_area": 12000.0, "principal_moments": [8160000.0, 8160000.0, 13499999.999999998], "n_faces": 26, "n_edges": 57, "n_vertices": 34}, "params": {"outer_d": {"type": "float", "default": 35, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 23.7, "min": 7.1, "max": 59.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 18.9, "min": 2.0, "max": 24.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 70.8, "min": 45.5, "max": 105.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.6, "min": 1.4, "max": 9.5, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 21.2, "min": 14.2, "max": 31.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004163 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 23.7, \"min\": 7.1, \"max\": 59.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 18.9, \"min\": 2.0, \"max\": 24.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 70.8, \"min\": 45.5, \"max\": 105.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.6, \"min\": 1.4, \"max\": 9.5, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 21.2, \"min\": 14.2, \"max\": 31.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07276175576352496)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d68c6_0464", "family": "flanged", "tier": 1, "seed": 1234004166, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "8134bf7d66dce68c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61800.0, "surface_area": 20200.0, "principal_moments": [27799999.999999996, 27799999.999999996, 34200000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 39.32, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 41.4, "min": 12.4, "max": 103.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.3, "min": 2.0, "max": 27.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 90.0, "min": 51.1, "max": 118.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.1, "min": 1.2, "max": 16.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 27.0, "min": 18.0, "max": 40.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004166 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 39.32, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 41.4, \"min\": 12.4, \"max\": 103.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.3, \"min\": 2.0, \"max\": 27.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 90.0, \"min\": 51.1, \"max\": 118.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.1, \"min\": 1.2, \"max\": 16.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 27.0, \"min\": 18.0, \"max\": 40.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d68c7_0465", "family": "plate", "tier": 0, "seed": 1234004167, "symmetry": "radial", "op_count": 1, "ir_hash": "a2dc6435e2a627be", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4720.0, "surface_area": 3660.0, "principal_moments": [273000.0, 1420000.0, 1680000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 26.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004167 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 26.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d68c8_0466", "family": "revolved", "tier": 2, "seed": 1234004168, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "35d3988c80aa68dc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 295000.0, "surface_area": 32800.0, "principal_moments": [213000000.0, 282000000.0, 282000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 71.52, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 84.4, "min": 25.3, "max": 253.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 25.7, "min": 2.0, "max": 50.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004168 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 71.52, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 84.4, \"min\": 25.3, \"max\": 253.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 25.7, \"min\": 2.0, \"max\": 50.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d68c9_0467", "family": "profiled", "tier": 0, "seed": 1234004169, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "c209e3948150e33f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 123000.0, "surface_area": 32700.0, "principal_moments": [22700000.0, 283000000.0, 283000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 35, "min": 17.5, "max": 70.0, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 192.4, "min": 57.7, "max": 577.2, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004169 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 17.5, \"max\": 70.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 192.4, \"min\": 57.7, \"max\": 577.2, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d68ca_0468", "family": "plate", "tier": 1, "seed": 1234004170, "symmetry": "none", "op_count": 2, "ir_hash": "de7b4486aa0a81e4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1680.0, "surface_area": 1360.0, "principal_moments": [24100.0, 169000.0, 189000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 12.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.8, "min": 2.0, "max": 2.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004170 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 12.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.8, \"min\": 2.0, \"max\": 2.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d68cb_0469", "family": "flanged", "tier": 1, "seed": 1234004171, "symmetry": "radial", "op_count": 2, "ir_hash": "393fa96ea63c1195", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 326000.0, "surface_area": 59000.0, "principal_moments": [507000000.0, 507000000.0, 955000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 71.85, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 38.1, "min": 11.4, "max": 95.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 34.9, "min": 2.0, "max": 50.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 167.0, "min": 93.4, "max": 215.5, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 11.7, "min": 3.5, "max": 15.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 50.1, "min": 33.4, "max": 75.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004171 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 71.85, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 38.1, \"min\": 11.4, \"max\": 95.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 34.9, \"min\": 2.0, \"max\": 50.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 167.0, \"min\": 93.4, \"max\": 215.5, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 11.7, \"min\": 3.5, \"max\": 15.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 50.1, \"min\": 33.4, \"max\": 75.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d68cc_0470", "family": "plate", "tier": 2, "seed": 1234004172, "symmetry": "none", "op_count": 3, "ir_hash": "8bd144b0e270033d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1840.0, "surface_area": 2220.0, "principal_moments": [92900.0, 232000.0, 323000.0], "n_faces": 42, "n_edges": 120, "n_vertices": 80}, "params": {"plate_w": {"type": "float", "default": 40, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 25.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.2, "min": 2.0, "max": 7.4, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004172 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 25.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 7.4, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09410075957516598)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d68cd_0471", "family": "plate", "tier": 2, "seed": 1234004173, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "5b7a3421f05a4f39", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 72300.0, "surface_area": 17100.0, "principal_moments": [33700000.0, 42900000.0, 74800000.0], "n_faces": 18, "n_edges": 44, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 75.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "cs_angle": {"type": "float", "default": 82.0, "min": 60.0, "max": 120.0, "step": 15.0, "group": "Holes", "label": "Countersink angle (\u00b0)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004173 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 75.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"cs_angle\": {\"type\": 'float', \"default\": 82.0, \"min\": 60.0, \"max\": 120.0, \"step\": 15.0, \"group\": 'Holes', \"label\": 'Countersink angle (\u00b0)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cskHole(p[\"hole_d\"], p[\"hole_d\"] * 2, p[\"cs_angle\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.0663717065719993)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d68ce_0472", "family": "block", "tier": 1, "seed": 1234004174, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "753cf92a4c851c3f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 123000.0, "surface_area": 21300.0, "principal_moments": [36700000.0, 72100000.0, 87400000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 78.75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 33.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 50.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.7, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004174 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 78.75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 33.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 50.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.7, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d68d0_0474", "family": "ribbed", "tier": 2, "seed": 1234004176, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "2fc969a93a75e1c1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13100.0, "surface_area": 8040.0, "principal_moments": [1730000.0, 2470000.0, 4010000.0], "n_faces": 70, "n_edges": 192, "n_vertices": 120}, "params": {"base_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 39.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 6.3, "min": 2.5, "max": 12.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.8, "min": 1.0, "max": 14.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 9.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004176 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 39.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 6.3, \"min\": 2.5, \"max\": 12.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.8, \"min\": 1.0, \"max\": 14.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 9.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d68d2_0476", "family": "flanged", "tier": 2, "seed": 1234004178, "symmetry": "none", "op_count": 2, "ir_hash": "9ec9a88f6a4e6e1a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 360000.0, "surface_area": 53300.0, "principal_moments": [425000000.0, 425000000.0, 545000000.0], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 75, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 67.2, "min": 20.2, "max": 168.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 30.3, "min": 2.0, "max": 52.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 133.8, "min": 97.5, "max": 225.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 12.5, "min": 3.8, "max": 26.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 40.1, "min": 26.8, "max": 60.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004178 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 67.2, \"min\": 20.2, \"max\": 168.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 30.3, \"min\": 2.0, \"max\": 52.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 133.8, \"min\": 97.5, \"max\": 225.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 12.5, \"min\": 3.8, \"max\": 26.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 40.1, \"min\": 26.8, \"max\": 60.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d68d3_0477", "family": "ribbed", "tier": 1, "seed": 1234004179, "symmetry": "none", "op_count": 2, "ir_hash": "e733068d7cc07439", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12300.0, "surface_area": 8470.0, "principal_moments": [2060000.0, 5060000.0, 6790000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 33.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 9.3, "min": 3.7, "max": 18.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.0, "min": 1.0, "max": 10.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004179 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 33.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 9.3, \"min\": 3.7, \"max\": 18.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.0, \"max\": 10.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d68d4_0478", "family": "compound", "tier": 1, "seed": 1234004180, "symmetry": "none", "op_count": 2, "ir_hash": "4f588e1291fa53ef", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12300.0, "surface_area": 3130.0, "principal_moments": [877000.0, 1220000.0, 1220000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 25, "min": 12.5, "max": 45.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 21.6, "min": 8.6, "max": 43.2, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 15.1, "min": 7.5, "max": 22.5, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 9.5, "min": 2.9, "max": 23.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004180 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 25, \"min\": 12.5, \"max\": 45.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 21.6, \"min\": 8.6, \"max\": 43.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 15.1, \"min\": 7.5, \"max\": 22.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 9.5, \"min\": 2.9, \"max\": 23.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d68d5_0479", "family": "bracket", "tier": 1, "seed": 1234004181, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "7394352d85b0d8ed", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8500.0, "surface_area": 5450.0, "principal_moments": [1260000.0, 4850000.0, 5530000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 48.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004181 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 48.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d68d9_0483", "family": "enclosure", "tier": 2, "seed": 1234004185, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "73dd1f2bd73a08c2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 79300.0, "surface_area": 34100.0, "principal_moments": [54399999.99999999, 64799999.99999999, 88700000.0], "n_faces": 35, "n_edges": 108, "n_vertices": 72}, "params": {"enc_w": {"type": "float", "default": 74.37, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 37.3, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 72.0, "min": 28.8, "max": 144.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 8.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004185 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 74.37, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 37.3, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 72.0, \"min\": 28.8, \"max\": 144.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 8.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.041564387162883125)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d68db_0485", "family": "bracket", "tier": 1, "seed": 1234004187, "symmetry": "none", "op_count": 1, "ir_hash": "0dbae1666d7d7d1a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7130.0, "surface_area": 3810.0, "principal_moments": [666000.0, 1200000.0, 1350000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 30.33, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 30.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25.98, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004187 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30.33, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 30.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25.98, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d68dd_0487", "family": "block", "tier": 2, "seed": 1234004189, "symmetry": "none", "op_count": 3, "ir_hash": "a50fff536a59d10b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14000.0, "surface_area": 5750.0, "principal_moments": [1540000.0, 1540000.0, 2520000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 31.5, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 15.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 33.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.9, "min": 2.0, "max": 1.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "pocket_w": {"type": "float", "default": 13.3, "min": 6.7, "max": 25.2, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 9.6, "min": 4.8, "max": 12.0, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 10.5, "min": 4.2, "max": 28.7, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004189 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 31.5, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 15.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 33.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.9, \"min\": 2.0, \"max\": 1.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"pocket_w\": {\"type\": 'float', \"default\": 13.3, \"min\": 6.7, \"max\": 25.2, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 9.6, \"min\": 4.8, \"max\": 12.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 10.5, \"min\": 4.2, \"max\": 28.7, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 7.9\n _ssy = 6.9\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d68de_0488", "family": "block", "tier": 1, "seed": 1234004190, "symmetry": "none", "op_count": 2, "ir_hash": "c0af18af9547ee4e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 54600.0, "surface_area": 11700.0, "principal_moments": [11699999.999999998, 13499999.999999998, 17400000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 41.84, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 29.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 45.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 8.7, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004190 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 41.84, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 29.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 45.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 8.7, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d68df_0489", "family": "compound", "tier": 1, "seed": 1234004191, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "2360ebe3edf2f5dc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 173000.0, "surface_area": 21200.0, "principal_moments": [84100000.0, 92599999.99999999, 96399999.99999999], "n_faces": 24, "n_edges": 64, "n_vertices": 42}, "params": {"block_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 54.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 52.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 5.2, "min": 2.6, "max": 11.8, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 10.1, "min": 2.3, "max": 27.0, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 4.7, "min": 2.0, "max": 6.5, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004191 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 54.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 52.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.6, \"max\": 11.8, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 10.1, \"min\": 2.3, \"max\": 27.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 4.7, \"min\": 2.0, \"max\": 6.5, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d68e0_0490", "family": "block", "tier": 1, "seed": 1234004192, "symmetry": "none", "op_count": 2, "ir_hash": "199e14435aa61ecb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2140.0, "surface_area": 1900.0, "principal_moments": [49500.0, 79000.0, 105000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 15.32, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 8.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 19.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.4, "min": 2.0, "max": 2.5, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004192 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 15.32, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 8.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 19.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 2.5, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d68e1_0491", "family": "plate", "tier": 1, "seed": 1234004193, "symmetry": "radial", "op_count": 2, "ir_hash": "0fd352ec73921bbe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5780.0, "surface_area": 2480.0, "principal_moments": [178000.0, 657000.0, 696000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"plate_w": {"type": "float", "default": 35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 14.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 10.5, "min": 7.0, "max": 15.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004193 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 14.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 10.5, \"min\": 7.0, \"max\": 15.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d68e2_0492", "family": "bracket", "tier": 1, "seed": 1234004194, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d43c310597cee308", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37100.0, "surface_area": 14900.0, "principal_moments": [8170000.0, 44200000.0, 45999999.99999999], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 44.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 54.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004194 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 44.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 54.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d68e3_0493", "family": "flanged", "tier": 1, "seed": 1234004195, "symmetry": "none", "op_count": 2, "ir_hash": "ac6046452fb7fc44", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1150000.0, "surface_area": 136000.0, "principal_moments": [3890000000.0, 3890000000.0, 4180000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 95.98, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 126.2, "min": 37.9, "max": 315.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 45.0, "min": 2.0, "max": 67.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 221.4, "min": 124.8, "max": 287.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 14.0, "min": 4.2, "max": 50.5, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 66.4, "min": 44.3, "max": 99.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004195 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 95.98, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 126.2, \"min\": 37.9, \"max\": 315.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 45.0, \"min\": 2.0, \"max\": 67.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 221.4, \"min\": 124.8, \"max\": 287.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 14.0, \"min\": 4.2, \"max\": 50.5, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 66.4, \"min\": 44.3, \"max\": 99.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d68e5_0495", "family": "plate", "tier": 0, "seed": 1234004197, "symmetry": "none", "op_count": 1, "ir_hash": "1a5b228f3dfae61f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15400.0, "surface_area": 4780.0, "principal_moments": [967000.0, 4740000.0, 5450000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 25.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004197 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 25.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d68e6_0496", "family": "flanged", "tier": 1, "seed": 1234004198, "symmetry": "none", "op_count": 2, "ir_hash": "440fc0d29e281645", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 273000.0, "surface_area": 48800.0, "principal_moments": [299000000.0, 299000000.0, 513000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 71.12, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 42.8, "min": 12.8, "max": 107.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 24.0, "min": 2.0, "max": 49.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 146.8, "min": 92.5, "max": 213.4, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.5, "min": 2.9, "max": 17.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 44.0, "min": 29.4, "max": 66.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004198 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 71.12, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 42.8, \"min\": 12.8, \"max\": 107.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 24.0, \"min\": 2.0, \"max\": 49.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 146.8, \"min\": 92.5, \"max\": 213.4, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.5, \"min\": 2.9, \"max\": 17.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 44.0, \"min\": 29.4, \"max\": 66.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d68e7_0497", "family": "block", "tier": 1, "seed": 1234004199, "symmetry": "none", "op_count": 2, "ir_hash": "74327d8848eed057", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 68600.0, "surface_area": 13200.0, "principal_moments": [17200000.0, 24699999.999999996, 36200000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 22.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 61.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.1, "min": 2.0, "max": 2.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004199 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 22.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 61.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.1, \"min\": 2.0, \"max\": 2.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 18.8\n _ssy = 17.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d68e8_0498", "family": "bracket", "tier": 2, "seed": 1234004200, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "e59c41180b396bed", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27500.0, "surface_area": 9410.0, "principal_moments": [4050000.0, 15799999.999999998, 16299999.999999998], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 40, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 43.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 31.54, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 42.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 10.1, "min": 4.0, "max": 15.8, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004200 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 40, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 43.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 31.54, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 42.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 10.1, \"min\": 4.0, \"max\": 15.8, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d68e9_0499", "family": "compound", "tier": 1, "seed": 1234004201, "symmetry": "none", "op_count": 2, "ir_hash": "0f6e4fadef2ff2d3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 66400.0, "surface_area": 14300.0, "principal_moments": [15199999.999999998, 30599999.999999996, 30599999.999999996], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 43.21, "min": 21.6, "max": 77.8, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 41.6, "min": 16.6, "max": 83.2, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 24.7, "min": 12.3, "max": 38.9, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 34.8, "min": 10.4, "max": 87.0, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 13.7, "min": 2.0, "max": 17.8, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004201 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 43.21, \"min\": 21.6, \"max\": 77.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 41.6, \"min\": 16.6, \"max\": 83.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 24.7, \"min\": 12.3, \"max\": 38.9, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 34.8, \"min\": 10.4, \"max\": 87.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 13.7, \"min\": 2.0, \"max\": 17.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d68ea_0500", "family": "bracket", "tier": 1, "seed": 1234004202, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "45a6aecbfedf5b42", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42400.0, "surface_area": 19500.0, "principal_moments": [21600000.0, 46899999.99999999, 51199999.99999999], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 75, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 54.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 49.08, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004202 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 54.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 49.08, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d68eb_0501", "family": "profiled", "tier": 1, "seed": 1234004203, "symmetry": "none", "op_count": 1, "ir_hash": "2ee64fa075716dda", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7510.0, "surface_area": 2390.0, "principal_moments": [236000.0, 1040000.0, 1040000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"circ_r": {"type": "float", "default": 8.69, "min": 4.3, "max": 17.4, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 38.3, "min": 11.5, "max": 114.9, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004203 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 8.69, \"min\": 4.3, \"max\": 17.4, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 38.3, \"min\": 11.5, \"max\": 114.9, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d68ec_0502", "family": "block", "tier": 1, "seed": 1234004204, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "73a4d3008e7a80fc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 474000.0, "surface_area": 45600.0, "principal_moments": [459000000.0, 496000000.0, 753000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 95, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 50.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004204 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 95, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 50.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 23.8\n _ssy = 24.6\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d68ed_0503", "family": "compound", "tier": 1, "seed": 1234004205, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "9b76696174172388", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 88500.0, "surface_area": 28700.0, "principal_moments": [91399999.99999999, 95999999.99999999, 108000000.0], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"base_w": {"type": "float", "default": 100, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 104.5, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 6.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 12.1, "min": 6.0, "max": 25.0, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 71.4, "min": 21.4, "max": 214.2, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004205 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 100, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 104.5, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 12.1, \"min\": 6.0, \"max\": 25.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 71.4, \"min\": 21.4, \"max\": 214.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d68ee_0504", "family": "block", "tier": 1, "seed": 1234004206, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "323dbbbfe94d47aa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 574000.0, "surface_area": 46700.0, "principal_moments": [587000000.0, 683000000.0, 788000000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 70.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 96.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004206 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 70.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 96.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 31.9\n _ssy = 34.1\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d68ef_0505", "family": "block", "tier": 1, "seed": 1234004207, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "e35d2027a6ab399b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 337000.0, "surface_area": 39000.0, "principal_moments": [273000000.0, 286000000.0, 460000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 90, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 42.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 91.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004207 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 90, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 42.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 91.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d68f0_0506", "family": "compound", "tier": 1, "seed": 1234004208, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "6da19029d543f640", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 40900.0, "surface_area": 10900.0, "principal_moments": [10800000.0, 12899999.999999998, 12899999.999999998], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 26.02, "min": 15.6, "max": 41.6, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 17.5, "min": 7.0, "max": 43.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 20.5, "min": 10.2, "max": 38.5, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 38.7, "min": 11.6, "max": 96.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 11.0, "min": 2.0, "max": 14.8, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004208 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 26.02, \"min\": 15.6, \"max\": 41.6, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 17.5, \"min\": 7.0, \"max\": 43.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 20.5, \"min\": 10.2, \"max\": 38.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 38.7, \"min\": 11.6, \"max\": 96.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 11.0, \"min\": 2.0, \"max\": 14.8, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d68f2_0508", "family": "flanged", "tier": 1, "seed": 1234004210, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "78123228f453ee5b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 541000.0, "surface_area": 91500.0, "principal_moments": [1040000000.0, 1040000000.0, 1360000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 86.25, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 81.0, "min": 24.3, "max": 202.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 39.4, "min": 2.0, "max": 60.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 194.0, "min": 112.1, "max": 258.8, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.1, "min": 2.1, "max": 32.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 58.2, "min": 38.8, "max": 87.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004210 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 86.25, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 81.0, \"min\": 24.3, \"max\": 202.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 39.4, \"min\": 2.0, \"max\": 60.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 194.0, \"min\": 112.1, \"max\": 258.8, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.1, \"min\": 2.1, \"max\": 32.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 58.2, \"min\": 38.8, \"max\": 87.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d68f3_0509", "family": "compound", "tier": 2, "seed": 1234004211, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "6b90b777fb5fa77b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 604000.0, "surface_area": 51400.0, "principal_moments": [674000000.0, 746000000.0, 876000000.0], "n_faces": 22, "n_edges": 66, "n_vertices": 44}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 95.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 88.9, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 69.5, "min": 27.8, "max": 111.2, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 61.9, "min": 24.8, "max": 99.0, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.6, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 35.4, "min": 17.7, "max": 60.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 45.0, "min": 22.5, "max": 76.1, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 49.0, "min": 19.6, "max": 75.6, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004211 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 95.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 88.9, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 69.5, \"min\": 27.8, \"max\": 111.2, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 61.9, \"min\": 24.8, \"max\": 99.0, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.6, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 35.4, \"min\": 17.7, \"max\": 60.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 45.0, \"min\": 22.5, \"max\": 76.1, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 49.0, \"min\": 19.6, \"max\": 75.6, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .rect(p[\"tab_a\"], p[\"tab_b\"]).extrude(p[\"tab_t\"])\n )\n result = (\n result.faces('>X').workplane()\n .rect(p[\"tab_a\"] * 0.6, p[\"tab_b\"] * 0.6, forConstruction=True)\n .vertices().hole(p[\"tab_hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d68f4_0510", "family": "compound", "tier": 1, "seed": 1234004212, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "65e1ccbfb78d21b4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12000.0, "surface_area": 3160.0, "principal_moments": [830000.0, 1260000.0, 1260000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 25, "min": 12.5, "max": 45.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 20.5, "min": 8.2, "max": 41.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 13.5, "min": 6.8, "max": 22.5, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 13.4, "min": 4.0, "max": 33.5, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004212 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 25, \"min\": 12.5, \"max\": 45.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 20.5, \"min\": 8.2, \"max\": 41.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 13.5, \"min\": 6.8, \"max\": 22.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 13.4, \"min\": 4.0, \"max\": 33.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d68f5_0511", "family": "revolved", "tier": 1, "seed": 1234004213, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "74ee13791f9ea23c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2640.0, "surface_area": 2180.0, "principal_moments": [52300.0, 254000.0, 254000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 11.5, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 38.1, "min": 11.4, "max": 114.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004213 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 11.5, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 38.1, \"min\": 11.4, \"max\": 114.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d68f6_0512", "family": "threaded", "tier": 1, "seed": 1234004214, "symmetry": "none", "op_count": 1, "ir_hash": "b1779440e3c69a8a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9540.0, "surface_area": 4460.0, "principal_moments": [264000.0, 2570000.0, 2570000.0], "n_faces": 493, "n_edges": 1357, "n_vertices": 866}, "params": {"major_d": {"type": "float", "default": 16.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.0, "min": 1.0, "max": 4.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 55.6, "min": 22.2, "max": 111.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004214 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 4.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 55.6, \"min\": 22.2, \"max\": 111.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d68f7_0513", "family": "revolved", "tier": 0, "seed": 1234004215, "symmetry": "none", "op_count": 1, "ir_hash": "0be7c6f708668d87", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 406000.0, "surface_area": 54000.0, "principal_moments": [336000000.0, 641000000.0, 641000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 74.33, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 140.2, "min": 42.1, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004215 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 74.33, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 140.2, \"min\": 42.1, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d68f9_0515", "family": "threaded", "tier": 1, "seed": 1234004217, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "db81663e39971238", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 516.0, "surface_area": 746.0, "principal_moments": [4170.0, 14300.0, 14300.0], "n_faces": 199, "n_edges": 541, "n_vertices": 344}, "params": {"major_d": {"type": "float", "default": 4.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.7, "min": 0.35, "max": 1.4, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 16.9, "min": 6.8, "max": 33.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004217 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.35, \"max\": 1.4, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 16.9, \"min\": 6.8, \"max\": 33.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d68fa_0516", "family": "compound", "tier": 1, "seed": 1234004218, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "0dfbc575c61d6e1f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16000.0, "surface_area": 7600.0, "principal_moments": [3950000.0, 7110000.0, 7720000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"base_w": {"type": "float", "default": 51.28, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 43.7, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 5.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 10.7, "min": 4.3, "max": 21.9, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 60.1, "min": 18.0, "max": 180.3, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004218 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 51.28, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 43.7, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 10.7, \"min\": 4.3, \"max\": 21.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 60.1, \"min\": 18.0, \"max\": 180.3, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d68fb_0517", "family": "revolved", "tier": 1, "seed": 1234004219, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ba151fdd96d7639f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 69000.0, "surface_area": 15800.0, "principal_moments": [14099999.999999998, 47299999.99999999, 47299999.99999999], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 36.63, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 83.7, "min": 25.1, "max": 251.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.1, "min": 2.0, "max": 25.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004219 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 36.63, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 83.7, \"min\": 25.1, \"max\": 251.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.1, \"min\": 2.0, \"max\": 25.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d68fc_0518", "family": "enclosure", "tier": 1, "seed": 1234004220, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "745eec6654246d03", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 178000.0, "surface_area": 61500.0, "principal_moments": [249000000.0, 304000000.0, 389000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 100, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 84.3, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 67.6, "min": 27.0, "max": 135.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004220 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 100, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 84.3, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 67.6, \"min\": 27.0, \"max\": 135.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d68fd_0519", "family": "block", "tier": 1, "seed": 1234004221, "symmetry": "none", "op_count": 2, "ir_hash": "c904befabe69918a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20100.0, "surface_area": 6680.0, "principal_moments": [2550000.0, 2660000.0, 4270000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 16.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 36.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.8, "min": 2.0, "max": 1.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004221 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 16.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 36.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.8, \"min\": 2.0, \"max\": 1.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 6.6\n _ssy = 6.5\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d68ff_0521", "family": "plate", "tier": 0, "seed": 1234004223, "symmetry": "none", "op_count": 1, "ir_hash": "eebd02c4f17a77e2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4010.0, "surface_area": 1710.0, "principal_moments": [81600.0, 408000.0, 422000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 33.45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 12.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004223 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 33.45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6900_0522", "family": "block", "tier": 1, "seed": 1234004224, "symmetry": "none", "op_count": 2, "ir_hash": "0cbce5a306c4dbc4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10700.0, "surface_area": 4460.0, "principal_moments": [716000.0, 1070000.0, 1420000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 14.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 31.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004224 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 14.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 31.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6902_0524", "family": "bracket", "tier": 1, "seed": 1234004226, "symmetry": "none", "op_count": 1, "ir_hash": "458ea63a9cca5a7e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45900.0, "surface_area": 21000.0, "principal_moments": [16199999.999999998, 85400000.0, 85700000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 73.89, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 65.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 46.25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 70.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004226 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 73.89, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 65.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 46.25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 70.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6903_0525", "family": "plate", "tier": 0, "seed": 1234004227, "symmetry": "radial", "op_count": 1, "ir_hash": "180583b7ff4f4c3d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 54500.0, "surface_area": 12700.0, "principal_moments": [8400000.0, 55599999.99999999, 62699999.99999999], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 110, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 41.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004227 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 110, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 41.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6904_0526", "family": "plate", "tier": 1, "seed": 1234004228, "symmetry": "none", "op_count": 2, "ir_hash": "c0376d65eaeb9ed2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7430.0, "surface_area": 3010.0, "principal_moments": [298000.0, 828000.0, 948000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 18.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004228 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 18.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6905_0527", "family": "bracket", "tier": 1, "seed": 1234004229, "symmetry": "none", "op_count": 1, "ir_hash": "e3c6c71ff48df39f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6660.0, "surface_area": 4260.0, "principal_moments": [494000.0, 1650000.0, 1800000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 23.78, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 9.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004229 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 23.78, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 9.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6906_0528", "family": "gear", "tier": 1, "seed": 1234004230, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "07c5fe4f14555088", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3450.0, "surface_area": 2230.0, "principal_moments": [176000.0, 176000.0, 329000.0], "n_faces": 111, "n_edges": 327, "n_vertices": 218}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 18, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.3, "min": 2.5, "max": 15.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 4.1, "min": 2.0, "max": 13.9, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004230 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 18, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.3, \"min\": 2.5, \"max\": 15.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 4.1, \"min\": 2.0, \"max\": 13.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6907_0529", "family": "profiled", "tier": 0, "seed": 1234004231, "symmetry": "none", "op_count": 1, "ir_hash": "d4340cd2422f77c0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21100.0, "surface_area": 5480.0, "principal_moments": [900000.0, 11699999.999999998, 11699999.999999998], "n_faces": 7, "n_edges": 15, "n_vertices": 10}, "params": {"circ_r": {"type": "float", "default": 10.53, "min": 5.3, "max": 21.1, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 80.0, "min": 24.0, "max": 240.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004231 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 10.53, \"min\": 5.3, \"max\": 21.1, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 80.0, \"min\": 24.0, \"max\": 240.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6908_0530", "family": "enclosure", "tier": 2, "seed": 1234004232, "symmetry": "none", "op_count": 3, "ir_hash": "15db661896d202ca", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 63800.0, "surface_area": 42400.0, "principal_moments": [50599999.99999999, 83900000.0, 89500000.0], "n_faces": 19, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 88.99, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 48.2, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 66.2, "min": 26.5, "max": 132.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.1, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 10.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004232 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 88.99, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 48.2, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 66.2, \"min\": 26.5, \"max\": 132.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.1, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 10.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6909_0531", "family": "threaded", "tier": 2, "seed": 1234004233, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "0ab3287e72fa239e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18100.0, "surface_area": 5320.0, "principal_moments": [1940000.0, 2070000.0, 2080000.0], "n_faces": 60, "n_edges": 146, "n_vertices": 88}, "params": {"thread_size": {"type": "enum", "default": "1 1/4", "choices": ["1/4", "5/16", "3/8", "1/2", "5/8", "3/4", "7/8", "1", "1 1/4", "1 1/2"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 27.6, "min": 11.0, "max": 55.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004233 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '1 1/4', \"choices\": ['1/4', '5/16', '3/8', '1/2', '5/8', '3/4', '7/8', '1', '1 1/4', '1 1/2'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 27.6, \"min\": 11.0, \"max\": 55.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.AcmeThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d690a_0532", "family": "gear", "tier": 0, "seed": 1234004234, "symmetry": "none", "op_count": 1, "ir_hash": "157fb26b52327bf5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2600.0, "surface_area": 1820.0, "principal_moments": [114000.0, 114000.0, 217000.0], "n_faces": 104, "n_edges": 306, "n_vertices": 204}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 17, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.2, "min": 2.1, "max": 13.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004234 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 17, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.1, \"max\": 13.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d690b_0533", "family": "bracket", "tier": 2, "seed": 1234004235, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ee4fea4a8d1d6eaa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11800.0, "surface_area": 8760.0, "principal_moments": [2720000.0, 4500000.0, 5580000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 38.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 44.62, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.0, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004235 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 38.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 44.62, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d690c_0534", "family": "compound", "tier": 1, "seed": 1234004236, "symmetry": "none", "op_count": 3, "ir_hash": "c8fe36258a3caa58", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 63100.0, "surface_area": 10300.0, "principal_moments": [14199999.999999998, 17700000.0, 21600000.0], "n_faces": 27, "n_edges": 68, "n_vertices": 45}, "params": {"block_w": {"type": "float", "default": 48.89, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 41.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 31.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 3.1, "min": 1.6, "max": 7.0, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 6.1, "min": 1.4, "max": 17.2, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 2.4, "min": 2.0, "max": 4.1, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004236 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 48.89, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 41.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 31.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 3.1, \"min\": 1.6, \"max\": 7.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 6.1, \"min\": 1.4, \"max\": 17.2, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 4.1, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"head_sides\"], p[\"head_r\"] * 2).extrude(p[\"head_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d690e_0536", "family": "bracket", "tier": 1, "seed": 1234004238, "symmetry": "none", "op_count": 1, "ir_hash": "b2bd94ef4d30a404", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17500.0, "surface_area": 8780.0, "principal_moments": [4100000.0, 8050000.0, 9460000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 39.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004238 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 39.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d690f_0537", "family": "block", "tier": 1, "seed": 1234004239, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "7ec2bd8878f2a1e0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 572000.0, "surface_area": 50400.0, "principal_moments": [579000000.0, 677000000.0, 855000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 89.65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 65.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004239 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 89.65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 65.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6910_0538", "family": "flanged", "tier": 1, "seed": 1234004240, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "9631ef35e6626a2c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 191000.0, "surface_area": 43400.0, "principal_moments": [122000000.0, 193000000.0, 193000000.0], "n_faces": 29, "n_edges": 114, "n_vertices": 76}, "params": {"outer_d": {"type": "float", "default": 60, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 84.3, "min": 25.3, "max": 210.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 24.4, "min": 2.0, "max": 42.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 96.6, "min": 78.0, "max": 180.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.4, "min": 1.9, "max": 33.7, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 29.0, "min": 19.3, "max": 43.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004240 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 84.3, \"min\": 25.3, \"max\": 210.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 24.4, \"min\": 2.0, \"max\": 42.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 96.6, \"min\": 78.0, \"max\": 180.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.4, \"min\": 1.9, \"max\": 33.7, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 29.0, \"min\": 19.3, \"max\": 43.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6911_0539", "family": "revolved", "tier": 2, "seed": 1234004241, "symmetry": "none", "op_count": 2, "ir_hash": "8e19dcf35d53d0d6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 402000.0, "surface_area": 59100.0, "principal_moments": [255000000.0, 915000000.0, 915000000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 65, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 181.7, "min": 54.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 1.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004241 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 181.7, \"min\": 54.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 1.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6915_0543", "family": "profiled", "tier": 1, "seed": 1234004245, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "5ccda9bb97befe8e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 116000.0, "surface_area": 31700.0, "principal_moments": [16199999.999999998, 471000000.0, 471000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 29.91, "min": 15.0, "max": 59.8, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 218.5, "min": 65.5, "max": 655.5, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 14.7, "min": 2.0, "max": 23.9, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004245 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 29.91, \"min\": 15.0, \"max\": 59.8, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 218.5, \"min\": 65.5, \"max\": 655.5, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 14.7, \"min\": 2.0, \"max\": 23.9, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6916_0544", "family": "threaded", "tier": 1, "seed": 1234004246, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "4537715d5f1c3f92", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 64200.0, "surface_area": 16800.0, "principal_moments": [19000000.0, 28499999.999999996, 28499999.999999996], "n_faces": 308, "n_edges": 886, "n_vertices": 580}, "params": {"major_d": {"type": "float", "default": 24.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 3.0, "min": 1.5, "max": 6.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 59.7, "min": 23.9, "max": 119.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004246 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 24.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.5, \"max\": 6.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 59.7, \"min\": 23.9, \"max\": 119.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6917_0545", "family": "revolved", "tier": 1, "seed": 1234004247, "symmetry": "radial", "op_count": 1, "ir_hash": "acdf5b3b64748a3a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 288000.0, "surface_area": 52800.0, "principal_moments": [123000000.0, 1020000000.0, 1020000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 51.26, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 199.9, "min": 60.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 28.2, "min": 2.0, "max": 35.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004247 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 51.26, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 199.9, \"min\": 60.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 28.2, \"min\": 2.0, \"max\": 35.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6918_0546", "family": "compound", "tier": 2, "seed": 1234004248, "symmetry": "none", "op_count": 4, "ir_hash": "cdbe6a42cd9dfaa8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 393000.0, "surface_area": 39800.0, "principal_moments": [298000000.0, 386000000.0, 454000000.0], "n_faces": 20, "n_edges": 54, "n_vertices": 36}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 56.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 91.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 47.3, "min": 18.9, "max": 75.7, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 74.7, "min": 29.9, "max": 119.5, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 10.4, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 46.3, "min": 23.1, "max": 60.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 28.3, "min": 14.2, "max": 45.1, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 42.9, "min": 17.2, "max": 77.9, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004248 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 56.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 91.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 47.3, \"min\": 18.9, \"max\": 75.7, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 74.7, \"min\": 29.9, \"max\": 119.5, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 10.4, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 46.3, \"min\": 23.1, \"max\": 60.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 28.3, \"min\": 14.2, \"max\": 45.1, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 42.9, \"min\": 17.2, \"max\": 77.9, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6919_0547", "family": "revolved", "tier": 0, "seed": 1234004249, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "79bb5faaa82c3cc0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 340.0, "surface_area": 412.0, "principal_moments": [3410.0, 3410.0, 5110.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 10, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 6.5, "min": 1.9, "max": 19.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004249 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 10, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 6.5, \"min\": 1.9, \"max\": 19.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d691b_0549", "family": "profiled", "tier": 1, "seed": 1234004251, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ac9e6e63979842e6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21000.0, "surface_area": 6010.0, "principal_moments": [690000.0, 18900000.0, 18900000.0], "n_faces": 7, "n_edges": 15, "n_vertices": 10}, "params": {"circ_r": {"type": "float", "default": 9.25, "min": 4.6, "max": 18.5, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 103.0, "min": 30.9, "max": 309.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004251 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 9.25, \"min\": 4.6, \"max\": 18.5, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 103.0, \"min\": 30.9, \"max\": 309.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d691c_0550", "family": "profiled", "tier": 2, "seed": 1234004252, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "70c180d445ff86a2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 44400.0, "surface_area": 7840.0, "principal_moments": [4170000.0, 23199999.999999996, 23199999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"circ_r": {"type": "float", "default": 14.42, "min": 7.2, "max": 28.8, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 75.5, "min": 22.6, "max": 226.5, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004252 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 14.42, \"min\": 7.2, \"max\": 28.8, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 75.5, \"min\": 22.6, \"max\": 226.5, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d691e_0552", "family": "plate", "tier": 1, "seed": 1234004254, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "d8e202b3f7319ec9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8410.0, "surface_area": 4000.0, "principal_moments": [569000.0, 1850000.0, 2360000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 51.23, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 28.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004254 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 51.23, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 28.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d691f_0553", "family": "block", "tier": 2, "seed": 1234004255, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "06d7ac269681b404", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 196000.0, "surface_area": 41600.0, "principal_moments": [114000000.0, 185000000.0, 247000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 36.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 8.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 49.0, "min": 24.5, "max": 56.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 18.8, "min": 9.4, "max": 29.5, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 53.5, "min": 21.4, "max": 85.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004255 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 36.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 8.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 49.0, \"min\": 24.5, \"max\": 56.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 18.8, \"min\": 9.4, \"max\": 29.5, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 53.5, \"min\": 21.4, \"max\": 85.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6920_0554", "family": "compound", "tier": 2, "seed": 1234004256, "symmetry": "none", "op_count": 3, "ir_hash": "89babecd6d1d9e1a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 432000.0, "surface_area": 43000.0, "principal_moments": [435000000.0, 449000000.0, 499000000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 64.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 84.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 32.1, "min": 12.8, "max": 52.5, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 53.0, "min": 9.6, "max": 128.4, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 13.1, "min": 2.0, "max": 23.1, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004256 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 64.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 84.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 32.1, \"min\": 12.8, \"max\": 52.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 53.0, \"min\": 9.6, \"max\": 128.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 13.1, \"min\": 2.0, \"max\": 23.1, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6921_0555", "family": "bracket", "tier": 1, "seed": 1234004257, "symmetry": "none", "op_count": 1, "ir_hash": "08ad435fe7113d20", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11700.0, "surface_area": 6900.0, "principal_moments": [1640000.0, 3770000.0, 4770000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 58.75, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004257 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 58.75, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6925_0559", "family": "ribbed", "tier": 1, "seed": 1234004261, "symmetry": "none", "op_count": 2, "ir_hash": "3278e14a1a04fba3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29900.0, "surface_area": 18100.0, "principal_moments": [11499999.999999998, 22899999.999999996, 34100000.0], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 65.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 6.6, "min": 2.6, "max": 13.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004261 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 65.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 6.6, \"min\": 2.6, \"max\": 13.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6926_0560", "family": "compound", "tier": 2, "seed": 1234004262, "symmetry": "none", "op_count": 3, "ir_hash": "18bde643fa23f74e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19800.0, "surface_area": 5380.0, "principal_moments": [2340000.0, 2800000.0, 3340000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"block_w": {"type": "float", "default": 31.04, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 24.2, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 24.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 10.2, "min": 4.1, "max": 17.1, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 22.7, "min": 3.1, "max": 40.8, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004262 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 31.04, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 24.2, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 24.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 10.2, \"min\": 4.1, \"max\": 17.1, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 22.7, \"min\": 3.1, \"max\": 40.8, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6927_0561", "family": "block", "tier": 2, "seed": 1234004263, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "8c5ec07f22ef81de", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 390000.0, "surface_area": 43800.0, "principal_moments": [284000000.0, 409000000.0, 525000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 80, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 51.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 11.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004263 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 51.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 11.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.10175587909936212)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6928_0562", "family": "flanged", "tier": 2, "seed": 1234004264, "symmetry": "none", "op_count": 2, "ir_hash": "93a33b68a9e81506", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 53600.0, "surface_area": 17100.0, "principal_moments": [21900000.0, 21900000.0, 25699999.999999996], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 35, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 41.8, "min": 12.5, "max": 104.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 14.1, "min": 2.0, "max": 24.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 79.5, "min": 45.5, "max": 105.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.6, "min": 1.7, "max": 16.7, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 23.8, "min": 15.9, "max": 35.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004264 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 41.8, \"min\": 12.5, \"max\": 104.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 14.1, \"min\": 2.0, \"max\": 24.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 79.5, \"min\": 45.5, \"max\": 105.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.6, \"min\": 1.7, \"max\": 16.7, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 23.8, \"min\": 15.9, \"max\": 35.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6929_0563", "family": "threaded", "tier": 1, "seed": 1234004265, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ee64610f4c86fc67", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2290.0, "surface_area": 1740.0, "principal_moments": [24100.0, 249000.0, 249000.0], "n_faces": 240, "n_edges": 614, "n_vertices": 376}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 35.4, "min": 14.2, "max": 70.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004265 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 35.4, \"min\": 14.2, \"max\": 70.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d692a_0564", "family": "block", "tier": 2, "seed": 1234004266, "symmetry": "radial", "op_count": 3, "ir_hash": "53ddf5b645c66cdc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2020.0, "surface_area": 2310.0, "principal_moments": [64200.0, 78000.0, 98100.0], "n_faces": 21, "n_edges": 60, "n_vertices": 36}, "params": {"block_w": {"type": "float", "default": 15.0, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 11.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 14.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 4.5, "min": 3.0, "max": 6.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "boss_d": {"type": "float", "default": 10.2, "min": 5.1, "max": 20.4, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 4.2, "min": 1.7, "max": 10.5, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.1, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004266 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 15.0, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 11.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 14.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 4.5, \"min\": 3.0, \"max\": 6.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"boss_d\": {\"type\": 'float', \"default\": 10.2, \"min\": 5.1, \"max\": 20.4, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 4.2, \"min\": 1.7, \"max\": 10.5, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.1, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d692b_0565", "family": "bracket", "tier": 1, "seed": 1234004267, "symmetry": "none", "op_count": 1, "ir_hash": "35bbd7d13090520d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17000.0, "surface_area": 9700.0, "principal_moments": [5080000.0, 6120000.0, 8730000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 41.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 51.89, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004267 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 41.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 51.89, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d692e_0568", "family": "block", "tier": 1, "seed": 1234004270, "symmetry": "none", "op_count": 2, "ir_hash": "0c2765779c7a87bf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12100.0, "surface_area": 6160.0, "principal_moments": [779000.0, 2350000.0, 2860000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 11.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 46.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.7, "min": 2.0, "max": 1.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004270 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 11.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 46.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.7, \"min\": 2.0, \"max\": 1.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 4.7\n _ssy = 4.6\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d692f_0569", "family": "plate", "tier": 1, "seed": 1234004271, "symmetry": "none", "op_count": 2, "ir_hash": "66f77e5fca126bf4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14000.0, "surface_area": 6420.0, "principal_moments": [978000.0, 8250000.0, 9140000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 84.64, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 28.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004271 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 84.64, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 28.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6931_0571", "family": "plate", "tier": 1, "seed": 1234004273, "symmetry": "none", "op_count": 2, "ir_hash": "0917608e9536b600", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 642.0, "surface_area": 875.0, "principal_moments": [10300.0, 31800.0, 41700.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 24.89, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 14.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.1, "min": 2.0, "max": 3.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004273 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 24.89, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 14.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.1, \"min\": 2.0, \"max\": 3.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6933_0573", "family": "gear", "tier": 0, "seed": 1234004275, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "c57d6e3e683db9eb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 117000.0, "surface_area": 26800.0, "principal_moments": [87300000.0, 87300000.0, 171000000.0], "n_faces": 218, "n_edges": 648, "n_vertices": 432}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 36, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 12.9, "min": 5.2, "max": 32.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004275 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 36, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 12.9, \"min\": 5.2, \"max\": 32.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6934_0574", "family": "bracket", "tier": 1, "seed": 1234004276, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "944d93558f4e4813", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41300.0, "surface_area": 13200.0, "principal_moments": [12399999.999999998, 29899999.999999996, 31499999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 53.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004276 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 53.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6937_0577", "family": "revolved", "tier": 2, "seed": 1234004279, "symmetry": "radial", "op_count": 2, "ir_hash": "0b61364c44f1c9a7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42600.0, "surface_area": 11200.0, "principal_moments": [11100000.0, 14099999.999999998, 14099999.999999998], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 40, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 49.0, "min": 14.7, "max": 147.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 22.2, "min": 2.0, "max": 28.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.5, "min": 0.1, "max": 1.5, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004279 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 49.0, \"min\": 14.7, \"max\": 147.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 22.2, \"min\": 2.0, \"max\": 28.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.5, \"min\": 0.1, \"max\": 1.5, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.05922540328954841)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6939_0579", "family": "flanged", "tier": 1, "seed": 1234004281, "symmetry": "none", "op_count": 2, "ir_hash": "37f819338abbd65a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11700.0, "surface_area": 6250.0, "principal_moments": [1680000.0, 1680000.0, 2720000.0], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 26.88, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 18.0, "min": 5.4, "max": 45.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 14.6, "min": 2.0, "max": 18.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 48.1, "min": 34.9, "max": 80.6, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.3, "min": 1.3, "max": 7.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 14.4, "min": 9.6, "max": 21.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004281 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 26.88, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 18.0, \"min\": 5.4, \"max\": 45.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 14.6, \"min\": 2.0, \"max\": 18.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 48.1, \"min\": 34.9, \"max\": 80.6, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.3, \"min\": 1.3, \"max\": 7.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 14.4, \"min\": 9.6, \"max\": 21.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d693b_0581", "family": "profiled", "tier": 0, "seed": 1234004283, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "429d5487217c85e4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 89900.0, "surface_area": 14000.0, "principal_moments": [10300000.0, 124000000.0, 124000000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"circ_r": {"type": "float", "default": 16.56, "min": 8.3, "max": 33.1, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 126.2, "min": 37.9, "max": 378.6, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004283 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 16.56, \"min\": 8.3, \"max\": 33.1, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 126.2, \"min\": 37.9, \"max\": 378.6, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d693c_0582", "family": "bracket", "tier": 1, "seed": 1234004284, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "07ec158bc4f91281", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12500.0, "surface_area": 5800.0, "principal_moments": [1990000.0, 2730000.0, 3560000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 34.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 23.29, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 9.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004284 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 34.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 23.29, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 9.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d693d_0583", "family": "bracket", "tier": 1, "seed": 1234004285, "symmetry": "none", "op_count": 1, "ir_hash": "e2b113da14d9072a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25000.0, "surface_area": 18300.0, "principal_moments": [16699999.999999998, 28099999.999999996, 38100000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 74.45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 70.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004285 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 74.45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 70.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d693e_0584", "family": "revolved", "tier": 0, "seed": 1234004286, "symmetry": "radial", "op_count": 1, "ir_hash": "11578ff8b501be08", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 76500.0, "surface_area": 19600.0, "principal_moments": [16199999.999999998, 57099999.99999999, 57099999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 37.51, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 103.9, "min": 31.2, "max": 311.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004286 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 37.51, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 103.9, \"min\": 31.2, \"max\": 311.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6942_0588", "family": "compound", "tier": 1, "seed": 1234004290, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "a924930e7164165f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 184000.0, "surface_area": 26400.0, "principal_moments": [97899999.99999999, 101000000.0, 153000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 67.57, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 38.7, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 71.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 34.4, "min": 13.8, "max": 55.0, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 61.5, "min": 24.6, "max": 98.4, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 7.6, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004290 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 67.57, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 38.7, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 71.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 34.4, \"min\": 13.8, \"max\": 55.0, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 61.5, \"min\": 24.6, \"max\": 98.4, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 7.6, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .rect(p[\"tab_a\"], p[\"tab_b\"]).extrude(p[\"tab_t\"])\n )\n result = (\n result.faces('>X').workplane()\n .rect(p[\"tab_a\"] * 0.6, p[\"tab_b\"] * 0.6, forConstruction=True)\n .vertices().hole(p[\"tab_hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6944_0590", "family": "gear", "tier": 0, "seed": 1234004292, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "33d3193b35c03169", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3660.0, "surface_area": 2310.0, "principal_moments": [203000.0, 203000.0, 387000.0], "n_faces": 176, "n_edges": 522, "n_vertices": 348}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 29, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.6, "min": 2.2, "max": 14.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004292 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 29, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.6, \"min\": 2.2, \"max\": 14.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6945_0591", "family": "block", "tier": 1, "seed": 1234004293, "symmetry": "none", "op_count": 2, "ir_hash": "e1f29efddc46c7a8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2750.0, "surface_area": 1800.0, "principal_moments": [90000.0, 107000.0, 170000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 18.55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 7.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 20.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.8, "min": 2.0, "max": 1.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004293 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 18.55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 7.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 20.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.8, \"min\": 2.0, \"max\": 1.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6946_0592", "family": "block", "tier": 2, "seed": 1234004294, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "d74228aa067015bb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 146000.0, "surface_area": 21900.0, "principal_moments": [46699999.99999999, 95699999.99999999, 109000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 37.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 80.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 8.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004294 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 37.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 80.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 8.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.041208714136009766)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6947_0593", "family": "compound", "tier": 2, "seed": 1234004295, "symmetry": "none", "op_count": 5, "ir_hash": "3b6a29366b822152", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 162000.0, "surface_area": 23600.0, "principal_moments": [79300000.0, 79900000.0, 93399999.99999999], "n_faces": 23, "n_edges": 55, "n_vertices": 35}, "params": {"block_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 57.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 50.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 15.1, "min": 6.0, "max": 22.5, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 18.5, "min": 3.8, "max": 45.3, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 6.2, "min": 2.0, "max": 10.9, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 12.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004295 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 57.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 50.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 15.1, \"min\": 6.0, \"max\": 22.5, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 18.5, \"min\": 3.8, \"max\": 45.3, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 6.2, \"min\": 2.0, \"max\": 10.9, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 12.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6948_0594", "family": "bracket", "tier": 1, "seed": 1234004296, "symmetry": "none", "op_count": 1, "ir_hash": "7c711938d8ca27a8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21300.0, "surface_area": 7310.0, "principal_moments": [4010000.0, 5330000.0, 7080000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 40.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004296 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 40.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d694a_0596", "family": "gear", "tier": 0, "seed": 1234004298, "symmetry": "none", "op_count": 1, "ir_hash": "8d20963f8fe398bf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 56000.0, "surface_area": 12900.0, "principal_moments": [13999999.999999998, 13999999.999999998, 22899999.999999996], "n_faces": 86, "n_edges": 252, "n_vertices": 168}, "params": {"module": {"type": "float", "default": 4.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 14, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 23.4, "min": 9.4, "max": 58.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004298 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 14, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 23.4, \"min\": 9.4, \"max\": 58.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d694b_0597", "family": "revolved", "tier": 1, "seed": 1234004299, "symmetry": "radial", "op_count": 1, "ir_hash": "b9a4c20f4881d6db", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2990.0, "surface_area": 1690.0, "principal_moments": [99700.0, 158000.0, 158000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 15, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 20.8, "min": 6.2, "max": 62.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 6.5, "min": 2.0, "max": 10.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004299 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 15, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 20.8, \"min\": 6.2, \"max\": 62.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 6.5, \"min\": 2.0, \"max\": 10.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d694c_0598", "family": "bracket", "tier": 2, "seed": 1234004300, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "445f18b54ab764e2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 92600.0, "surface_area": 27500.0, "principal_moments": [38200000.0, 206000000.0, 207000000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 79.26, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 74.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 84.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 8.6, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004300 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 79.26, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 74.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 84.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 8.6, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d694d_0599", "family": "block", "tier": 1, "seed": 1234004301, "symmetry": "none", "op_count": 2, "ir_hash": "efc96987107d6600", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 531000.0, "surface_area": 46800.0, "principal_moments": [481000000.0, 643000000.0, 724000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 80, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 67.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004301 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 67.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d694f_0601", "family": "bracket", "tier": 1, "seed": 1234004303, "symmetry": "none", "op_count": 1, "ir_hash": "78470adacc6ab9b1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22900.0, "surface_area": 9970.0, "principal_moments": [9070000.0, 9970000.0, 16599999.999999998], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 49.07, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 58.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004303 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 49.07, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 58.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6950_0602", "family": "bracket", "tier": 1, "seed": 1234004304, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "24bf83acf1df2db8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16900.0, "surface_area": 7260.0, "principal_moments": [2930000.0, 7620000.0, 8000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 50.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004304 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 50.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cboreHole(p[\"hole_d\"], p[\"cb_d\"], p[\"cb_depth\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.0975437924387059)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6952_0604", "family": "compound", "tier": 1, "seed": 1234004306, "symmetry": "none", "op_count": 3, "ir_hash": "fa12fcdc34e6a5e9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 78800.0, "surface_area": 13300.0, "principal_moments": [22200000.0, 25099999.999999996, 26099999.999999996], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 42.65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 44.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 40.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 25.7, "min": 10.3, "max": 41.1, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 35.2, "min": 14.1, "max": 56.3, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.7, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004306 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 42.65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 44.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 40.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 25.7, \"min\": 10.3, \"max\": 41.1, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 35.2, \"min\": 14.1, \"max\": 56.3, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.7, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .rect(p[\"tab_a\"], p[\"tab_b\"]).extrude(p[\"tab_t\"])\n )\n result = (\n result.faces('>Y').workplane()\n .rect(p[\"tab_a\"] * 0.6, p[\"tab_b\"] * 0.6, forConstruction=True)\n .vertices().hole(p[\"tab_hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6953_0605", "family": "block", "tier": 2, "seed": 1234004307, "symmetry": "radial", "op_count": 3, "ir_hash": "8a123207e3f61820", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 64500.0, "surface_area": 15800.0, "principal_moments": [15899999.999999998, 22600000.0, 28499999.999999996], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 43.81, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 30.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 54.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 13.1, "min": 8.8, "max": 19.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "boss_d": {"type": "float", "default": 18.8, "min": 9.4, "max": 37.6, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 9.4, "min": 3.8, "max": 23.5, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.2, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004307 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 43.81, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 30.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 54.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 13.1, \"min\": 8.8, \"max\": 19.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"boss_d\": {\"type\": 'float', \"default\": 18.8, \"min\": 9.4, \"max\": 37.6, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 9.4, \"min\": 3.8, \"max\": 23.5, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.2, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6954_0606", "family": "revolved", "tier": 0, "seed": 1234004308, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "d7ef33ec47dcd554", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 89700.0, "surface_area": 20800.0, "principal_moments": [23599999.999999996, 62799999.99999999, 62799999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 41.86, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 97.8, "min": 29.3, "max": 293.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004308 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 41.86, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 97.8, \"min\": 29.3, \"max\": 293.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6956_0608", "family": "bracket", "tier": 1, "seed": 1234004310, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "b6a663248041789a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9190.0, "surface_area": 4680.0, "principal_moments": [1030000.0, 1540000.0, 2110000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 25.43, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 41.09, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004310 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 25.43, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 41.09, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6958_0610", "family": "plate", "tier": 1, "seed": 1234004312, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "b29f1dacc2d130d6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3190.0, "surface_area": 1760.0, "principal_moments": [53400.0, 338000.0, 357000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 11.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.1, "min": 2.0, "max": 2.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004312 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 11.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.1, \"min\": 2.0, \"max\": 2.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6959_0611", "family": "plate", "tier": 1, "seed": 1234004313, "symmetry": "none", "op_count": 2, "ir_hash": "41c63888c08637e5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35700.0, "surface_area": 12300.0, "principal_moments": [5850000.0, 32199999.999999996, 37700000.0], "n_faces": 30, "n_edges": 84, "n_vertices": 56}, "params": {"plate_w": {"type": "float", "default": 104.38, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 44.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}, "hole_slot_len": {"type": "float", "default": 8.1, "min": 6.4, "max": 24.9, "step": 0.5, "group": "Holes", "label": "Slot length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004313 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 104.38, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 44.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n \"hole_slot_len\": {\"type\": 'float', \"default\": 8.1, \"min\": 6.4, \"max\": 24.9, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot length (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(41.8, 35.6, p[\"hole_nx\"], p[\"hole_ny\"])\n .slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d695a_0612", "family": "threaded", "tier": 0, "seed": 1234004314, "symmetry": "none", "op_count": 1, "ir_hash": "562520835be0695a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2330.0, "surface_area": 1770.0, "principal_moments": [24500.0, 262000.0, 262000.0], "n_faces": 245, "n_edges": 629, "n_vertices": 386}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 36.0, "min": 14.4, "max": 72.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004314 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 36.0, \"min\": 14.4, \"max\": 72.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d695b_0613", "family": "revolved", "tier": 1, "seed": 1234004315, "symmetry": "none", "op_count": 2, "ir_hash": "fecc6732d4b170ce", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15000.0, "surface_area": 4390.0, "principal_moments": [1740000.0, 1740000.0, 2260000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 32.15, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 22.3, "min": 6.7, "max": 66.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 13.2, "min": 2.0, "max": 22.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004315 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 32.15, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 22.3, \"min\": 6.7, \"max\": 66.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 13.2, \"min\": 2.0, \"max\": 22.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d695d_0615", "family": "gear", "tier": 0, "seed": 1234004317, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "aee6acbf94e1913a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 624000.0, "surface_area": 87700.0, "principal_moments": [1580000000.0, 1580000000.0, 3120000000.0], "n_faces": 162, "n_edges": 480, "n_vertices": 320}, "params": {"module": {"type": "float", "default": 5.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 40, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 20.0, "min": 8.0, "max": 50.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004317 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 5.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 40, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 20.0, \"min\": 8.0, \"max\": 50.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d695e_0616", "family": "block", "tier": 1, "seed": 1234004318, "symmetry": "radial", "op_count": 2, "ir_hash": "4eb7997c87e8c340", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 517000.0, "surface_area": 49500.0, "principal_moments": [466000000.0, 628000000.0, 699000000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 78.48, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 67.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 23.5, "min": 15.7, "max": 35.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004318 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 78.48, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 67.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 23.5, \"min\": 15.7, \"max\": 35.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d695f_0617", "family": "ribbed", "tier": 1, "seed": 1234004319, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f8d8f6080cd81569", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38800.0, "surface_area": 25000.0, "principal_moments": [17800000.0, 28399999.999999996, 44900000.0], "n_faces": 54, "n_edges": 132, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 69.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 11.0, "min": 4.4, "max": 22.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.8, "min": 1.0, "max": 9.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004319 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 69.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 11.0, \"min\": 4.4, \"max\": 22.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.8, \"min\": 1.0, \"max\": 9.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6960_0618", "family": "revolved", "tier": 1, "seed": 1234004320, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "e4ce3c3c1473faa7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3460.0, "surface_area": 1930.0, "principal_moments": [161000.0, 161000.0, 165000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 16.08, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 15.5, "min": 4.6, "max": 46.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 5.1, "min": 2.0, "max": 11.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 23.6, "min": 19.3, "max": 48.2, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 2.7, "min": 0.8, "max": 7.8, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004320 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 16.08, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 15.5, \"min\": 4.6, \"max\": 46.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 5.1, \"min\": 2.0, \"max\": 11.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 23.6, \"min\": 19.3, \"max\": 48.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 2.7, \"min\": 0.8, \"max\": 7.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6962_0620", "family": "revolved", "tier": 2, "seed": 1234004322, "symmetry": "radial", "op_count": 1, "ir_hash": "38e3498456849345", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 498000.0, "surface_area": 73900.0, "principal_moments": [301000000.0, 1790000000.0, 1790000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 63.51, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 235.6, "min": 70.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004322 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 63.51, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 235.6, \"min\": 70.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6963_0621", "family": "revolved", "tier": 1, "seed": 1234004323, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "b2280ee1e76795c4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 161000.0, "surface_area": 25000.0, "principal_moments": [111000000.0, 112000000.0, 112000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 65.82, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 65.3, "min": 19.6, "max": 195.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 34.3, "min": 2.0, "max": 46.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 1.4, "min": 0.1, "max": 4.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004323 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65.82, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 65.3, \"min\": 19.6, \"max\": 195.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 34.3, \"min\": 2.0, \"max\": 46.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.4, \"min\": 0.1, \"max\": 4.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6965_0623", "family": "profiled", "tier": 2, "seed": 1234004325, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "f0a800387964a4a6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 656000.0, "surface_area": 72600.0, "principal_moments": [265000000.0, 9330000000.0, 9530000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 70.09, "min": 35.0, "max": 140.2, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 24.52, "min": 12.3, "max": 49.0, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 412.5, "min": 123.8, "max": 1237.5, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004325 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 70.09, \"min\": 35.0, \"max\": 140.2, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 24.52, \"min\": 12.3, \"max\": 49.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 412.5, \"min\": 123.8, \"max\": 1237.5, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6966_0624", "family": "bracket", "tier": 1, "seed": 1234004326, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "0adf0d58de65725f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 46700.0, "surface_area": 14500.0, "principal_moments": [14899999.999999998, 36000000.0, 40600000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 76.38, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 48.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004326 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 76.38, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 48.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d696b_0629", "family": "ribbed", "tier": 1, "seed": 1234004331, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "4c04be9206464d07", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19900.0, "surface_area": 11900.0, "principal_moments": [3330000.0, 5840000.0, 7960000.0], "n_faces": 46, "n_edges": 112, "n_vertices": 68}, "params": {"base_w": {"type": "float", "default": 56.75, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 35.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 13.6, "min": 5.4, "max": 27.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.2, "min": 1.0, "max": 8.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004331 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 56.75, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 35.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 13.6, \"min\": 5.4, \"max\": 27.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.2, \"min\": 1.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d696c_0630", "family": "block", "tier": 2, "seed": 1234004332, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "b858598c9c0fc2da", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 63300.0, "surface_area": 17600.0, "principal_moments": [10500000.0, 33299999.999999996, 38100000.0], "n_faces": 42, "n_edges": 120, "n_vertices": 80}, "params": {"block_w": {"type": "float", "default": 40, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 24.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 76.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 7.2, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004332 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 24.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 76.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 7.2, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.10399073263051403)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d696d_0631", "family": "plate", "tier": 0, "seed": 1234004333, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "45895e2832080358", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22800.0, "surface_area": 9260.0, "principal_moments": [2810000.0, 19100000.0, 21700000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 100, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 38.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004333 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 100, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 38.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d696e_0632", "family": "bracket", "tier": 1, "seed": 1234004334, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "f26f4505b505c15d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25800.0, "surface_area": 9030.0, "principal_moments": [4460000.0, 20100000.0, 21400000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 48.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 26.92, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004334 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 48.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 26.92, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6971_0635", "family": "revolved", "tier": 1, "seed": 1234004337, "symmetry": "radial", "op_count": 1, "ir_hash": "1b12d633598a513d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 149000.0, "surface_area": 33800.0, "principal_moments": [112000000.0, 112000000.0, 196000000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 60, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 42.3, "min": 12.7, "max": 126.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 119.0, "min": 72.0, "max": 180.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.3, "min": 2.5, "max": 21.1, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004337 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 42.3, \"min\": 12.7, \"max\": 126.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 119.0, \"min\": 72.0, \"max\": 180.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.3, \"min\": 2.5, \"max\": 21.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6972_0636", "family": "revolved", "tier": 2, "seed": 1234004338, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "dde52e8c307fb20a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8930.0, "surface_area": 4090.0, "principal_moments": [648000.0, 1180000.0, 1180000.0], "n_faces": 12, "n_edges": 20, "n_vertices": 12}, "params": {"outer_d": {"type": "float", "default": 21.61, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 33.9, "min": 10.2, "max": 101.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 11.0, "min": 2.0, "max": 15.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 1.26, "min": 0.5, "max": 3.78, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 3.16, "min": 1.26, "max": 9.48, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 25.2, "min": 5.1, "max": 28.8, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.5, "min": 0.1, "max": 1.5, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004338 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 21.61, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 33.9, \"min\": 10.2, \"max\": 101.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 11.0, \"min\": 2.0, \"max\": 15.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 1.26, \"min\": 0.5, \"max\": 3.78, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 3.16, \"min\": 1.26, \"max\": 9.48, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 25.2, \"min\": 5.1, \"max\": 28.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.5, \"min\": 0.1, \"max\": 1.5, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07452921337607749)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6974_0638", "family": "ribbed", "tier": 1, "seed": 1234004340, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f5aec4c81a56fa69", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32100.0, "surface_area": 17300.0, "principal_moments": [9170000.0, 16399999.999999998, 23099999.999999996], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 74.26, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 50.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.5, "min": 6.6, "max": 33.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.4, "min": 1.0, "max": 8.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004340 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 74.26, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 50.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.5, \"min\": 6.6, \"max\": 33.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.4, \"min\": 1.0, \"max\": 8.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6976_0640", "family": "ribbed", "tier": 1, "seed": 1234004342, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "9c65b7e92c35266d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7190.0, "surface_area": 4270.0, "principal_moments": [689000.0, 1470000.0, 1610000.0], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 22.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.9, "min": 6.8, "max": 33.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.1, "min": 1.0, "max": 12.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004342 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 22.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.9, \"min\": 6.8, \"max\": 33.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.1, \"min\": 1.0, \"max\": 12.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6977_0641", "family": "threaded", "tier": 0, "seed": 1234004343, "symmetry": "none", "op_count": 1, "ir_hash": "1fb103ad2de73b4b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 442.0, "surface_area": 566.0, "principal_moments": [1640.0, 14500.0, 14500.0], "n_faces": 200, "n_edges": 510, "n_vertices": 312}, "params": {"major_d": {"type": "float", "default": 6.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.0, "min": 0.5, "max": 2.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 19.4, "min": 7.8, "max": 38.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004343 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.5, \"max\": 2.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 19.4, \"min\": 7.8, \"max\": 38.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6978_0642", "family": "flanged", "tier": 2, "seed": 1234004344, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "735bfbd4c4aabb75", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 393000.0, "surface_area": 52800.0, "principal_moments": [377000000.0, 557000000.0, 557000000.0], "n_faces": 44, "n_edges": 114, "n_vertices": 67}, "params": {"outer_d": {"type": "float", "default": 70, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 97.9, "min": 29.4, "max": 244.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 23.9, "min": 2.0, "max": 49.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 119.7, "min": 91.0, "max": 210.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.7, "min": 2.6, "max": 39.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 35.9, "min": 23.9, "max": 53.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004344 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 97.9, \"min\": 29.4, \"max\": 244.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 23.9, \"min\": 2.0, \"max\": 49.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 119.7, \"min\": 91.0, \"max\": 210.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.7, \"min\": 2.6, \"max\": 39.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 35.9, \"min\": 23.9, \"max\": 53.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d697a_0644", "family": "compound", "tier": 1, "seed": 1234004346, "symmetry": "none", "op_count": 2, "ir_hash": "67b1e648cbf8d6dc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 81800.0, "surface_area": 13000.0, "principal_moments": [25299999.999999996, 25499999.999999996, 28799999.999999996], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 45.98, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 44.7, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 40.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 6.8, "min": 3.4, "max": 14.0, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 12.8, "min": 3.5, "max": 47.1, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 6.6, "min": 2.0, "max": 8.5, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004346 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45.98, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 44.7, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 40.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 6.8, \"min\": 3.4, \"max\": 14.0, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 12.8, \"min\": 3.5, \"max\": 47.1, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 6.6, \"min\": 2.0, \"max\": 8.5, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d697c_0646", "family": "flanged", "tier": 1, "seed": 1234004348, "symmetry": "none", "op_count": 2, "ir_hash": "4e1101bec219bfbe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 634000.0, "surface_area": 90100.0, "principal_moments": [1380000000.0, 1380000000.0, 1460000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 85.68, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 101.1, "min": 30.3, "max": 252.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 43.7, "min": 2.0, "max": 60.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 174.6, "min": 111.4, "max": 257.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 11.2, "min": 3.4, "max": 40.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 52.4, "min": 34.9, "max": 78.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004348 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 85.68, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 101.1, \"min\": 30.3, \"max\": 252.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 43.7, \"min\": 2.0, \"max\": 60.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 174.6, \"min\": 111.4, \"max\": 257.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 11.2, \"min\": 3.4, \"max\": 40.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 52.4, \"min\": 34.9, \"max\": 78.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d697d_0647", "family": "revolved", "tier": 1, "seed": 1234004349, "symmetry": "none", "op_count": 2, "ir_hash": "8999c7b441d5f586", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 111000.0, "surface_area": 19500.0, "principal_moments": [65899999.99999999, 65899999.99999999, 105000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 38.4, "min": 11.5, "max": 115.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 43.7, "min": 2.0, "max": 52.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 1.4, "min": 0.1, "max": 4.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004349 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 38.4, \"min\": 11.5, \"max\": 115.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 43.7, \"min\": 2.0, \"max\": 52.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.4, \"min\": 0.1, \"max\": 4.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6983_0653", "family": "threaded", "tier": 0, "seed": 1234004355, "symmetry": "none", "op_count": 1, "ir_hash": "7a4c40d0408bdba0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3600.0, "surface_area": 2670.0, "principal_moments": [37900.0, 933000.0, 933000.0], "n_faces": 375, "n_edges": 967, "n_vertices": 594}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 55.4, "min": 22.2, "max": 110.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004355 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 55.4, \"min\": 22.2, \"max\": 110.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6984_0654", "family": "block", "tier": 1, "seed": 1234004356, "symmetry": "none", "op_count": 2, "ir_hash": "c15a719f5ae1dfe9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41500.0, "surface_area": 11200.0, "principal_moments": [5300000.0, 17000000.0, 20000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 35.1, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 18.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 67.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004356 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35.1, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 18.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 67.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6985_0655", "family": "plate", "tier": 0, "seed": 1234004357, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "a7aaa81225a33cd4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34100.0, "surface_area": 9510.0, "principal_moments": [3530000.0, 29199999.999999996, 32099999.999999996], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 100.83, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 33.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004357 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 100.83, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 33.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6988_0658", "family": "bracket", "tier": 1, "seed": 1234004360, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "deb889dd91e1c533", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14600.0, "surface_area": 5390.0, "principal_moments": [1280000.0, 3860000.0, 4120000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 34.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 25.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004360 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 34.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 25.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6989_0659", "family": "compound", "tier": 2, "seed": 1234004361, "symmetry": "mirror_x", "op_count": 5, "ir_hash": "ef620b9edba9add7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 417000.0, "surface_area": 42500.0, "principal_moments": [367000000.0, 387000000.0, 476000000.0], "n_faces": 20, "n_edges": 47, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 84.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 63.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 14.1, "min": 5.6, "max": 28.4, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 13.4, "min": 3.5, "max": 42.3, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 7.9, "min": 2.0, "max": 10.2, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004361 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 84.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 63.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 14.1, \"min\": 5.6, \"max\": 28.4, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 13.4, \"min\": 3.5, \"max\": 42.3, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 7.9, \"min\": 2.0, \"max\": 10.2, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d698a_0660", "family": "compound", "tier": 2, "seed": 1234004362, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "d5a2c404443cfb1c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14700.0, "surface_area": 4540.0, "principal_moments": [1470000.0, 1520000.0, 1540000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 24.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 24.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_a": {"type": "float", "default": 8.2, "min": 4.1, "max": 17.0, "step": 1.0, "group": "Spigot", "label": "Spigot width (mm)"}, "spig_b": {"type": "float", "default": 6.0, "min": 3.0, "max": 17.0, "step": 1.0, "group": "Spigot", "label": "Spigot depth (mm)"}, "spig_len": {"type": "float", "default": 5.4, "min": 1.8, "max": 24.0, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 3.0, "min": 2.0, "max": 4.3, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004362 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 24.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 24.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_a\": {\"type\": 'float', \"default\": 8.2, \"min\": 4.1, \"max\": 17.0, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot width (mm)'},\n \"spig_b\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 17.0, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot depth (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 5.4, \"min\": 1.8, \"max\": 24.0, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 4.3, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d698b_0661", "family": "revolved", "tier": 0, "seed": 1234004363, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "e20f578e4312b6eb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 264000.0, "surface_area": 47100.0, "principal_moments": [112000000.0, 554000000.0, 554000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 53.2, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 178.2, "min": 53.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004363 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 53.2, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 178.2, \"min\": 53.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d698c_0662", "family": "revolved", "tier": 2, "seed": 1234004364, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "9b877f7d3c2f399b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 141000.0, "surface_area": 29500.0, "principal_moments": [91099999.99999999, 91099999.99999999, 154000000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 57.87, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 44.4, "min": 13.3, "max": 133.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 106.1, "min": 69.4, "max": 173.6, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 10.1, "min": 3.0, "max": 22.2, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004364 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 57.87, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 44.4, \"min\": 13.3, \"max\": 133.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 106.1, \"min\": 69.4, \"max\": 173.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 10.1, \"min\": 3.0, \"max\": 22.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d698d_0663", "family": "plate", "tier": 2, "seed": 1234004365, "symmetry": "radial", "op_count": 3, "ir_hash": "aa481f671bc1d84f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10600.0, "surface_area": 5030.0, "principal_moments": [654000.0, 4710000.0, 5300000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"plate_w": {"type": "float", "default": 73.01, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 25.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 21.9, "min": 14.6, "max": 32.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004365 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 73.01, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 25.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 21.9, \"min\": 14.6, \"max\": 32.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.06274286407339358)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d698e_0664", "family": "threaded", "tier": 1, "seed": 1234004366, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "df3a18df2a6797cb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 120.0, "surface_area": 232.0, "principal_moments": [196.0, 1520.0, 1520.0], "n_faces": 180, "n_edges": 458, "n_vertices": 280}, "params": {"major_d": {"type": "float", "default": 4.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.7, "min": 0.35, "max": 1.4, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 12.0, "min": 5.0, "max": 24.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004366 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.35, \"max\": 1.4, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 12.0, \"min\": 5.0, \"max\": 24.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d698f_0665", "family": "flanged", "tier": 2, "seed": 1234004367, "symmetry": "radial", "op_count": 2, "ir_hash": "094baea0e1507af2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 220000.0, "surface_area": 42300.0, "principal_moments": [216000000.0, 216000000.0, 253000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 56.91, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 64.4, "min": 19.3, "max": 161.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 21.0, "min": 2.0, "max": 39.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 126.3, "min": 74.0, "max": 170.7, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.9, "min": 2.4, "max": 25.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 37.9, "min": 25.3, "max": 56.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004367 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 56.91, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 64.4, \"min\": 19.3, \"max\": 161.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 21.0, \"min\": 2.0, \"max\": 39.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 126.3, \"min\": 74.0, \"max\": 170.7, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.9, \"min\": 2.4, \"max\": 25.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 37.9, \"min\": 25.3, \"max\": 56.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6990_0666", "family": "gear", "tier": 0, "seed": 1234004368, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "0531e8493bf3f292", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 43500.0, "surface_area": 12200.0, "principal_moments": [12999999.999999998, 12999999.999999998, 24999999.999999996], "n_faces": 164, "n_edges": 486, "n_vertices": 324}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 27, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 12.3, "min": 4.9, "max": 30.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004368 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 27, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 12.3, \"min\": 4.9, \"max\": 30.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6991_0667", "family": "ribbed", "tier": 1, "seed": 1234004369, "symmetry": "none", "op_count": 2, "ir_hash": "527ae87a5bbb8a38", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 48200.0, "surface_area": 16000.0, "principal_moments": [16399999.999999998, 28899999.999999996, 44400000.0], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 83.72, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 62.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 5.3, "min": 2.1, "max": 10.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.5, "min": 1.0, "max": 11.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004369 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 83.72, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 62.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.1, \"max\": 10.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.0, \"max\": 11.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6993_0669", "family": "revolved", "tier": 1, "seed": 1234004371, "symmetry": "radial", "op_count": 1, "ir_hash": "2b1934da11962bb6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2050.0, "surface_area": 1410.0, "principal_moments": [55000.0, 83200.0, 83200.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 12.55, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 17.0, "min": 5.1, "max": 51.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 4.7, "min": 2.0, "max": 8.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 17.7, "min": 15.1, "max": 37.7, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 2.0, "min": 0.6, "max": 8.5, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004371 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 12.55, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 17.0, \"min\": 5.1, \"max\": 51.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 4.7, \"min\": 2.0, \"max\": 8.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 17.7, \"min\": 15.1, \"max\": 37.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 2.0, \"min\": 0.6, \"max\": 8.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6994_0670", "family": "compound", "tier": 1, "seed": 1234004372, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "c284ad7ca500ad27", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 132000.0, "surface_area": 42200.0, "principal_moments": [220000000.0, 355000000.0, 361000000.0], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"base_w": {"type": "float", "default": 120.0, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 123.4, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 6.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 10.7, "min": 5.3, "max": 30.0, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 146.5, "min": 43.9, "max": 439.5, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004372 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 120.0, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 123.4, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 10.7, \"min\": 5.3, \"max\": 30.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 146.5, \"min\": 43.9, \"max\": 439.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6995_0671", "family": "threaded", "tier": 1, "seed": 1234004373, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "5ac7a038fda7013c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28700.0, "surface_area": 10800.0, "principal_moments": [3760000.0, 10500000.0, 10500000.0], "n_faces": 476, "n_edges": 1362, "n_vertices": 888}, "params": {"major_d": {"type": "float", "default": 16.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.0, "min": 1.0, "max": 4.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 60.0, "min": 24.0, "max": 120.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004373 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 4.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 60.0, \"min\": 24.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6996_0672", "family": "bracket", "tier": 1, "seed": 1234004374, "symmetry": "none", "op_count": 1, "ir_hash": "d1a6ca13bb6dbf07", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13000.0, "surface_area": 7530.0, "principal_moments": [2120000.0, 4310000.0, 5680000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 33.71, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 60.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004374 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 33.71, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 60.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d699a_0676", "family": "plate", "tier": 1, "seed": 1234004378, "symmetry": "none", "op_count": 2, "ir_hash": "a7573e2cdd37c5ce", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2360.0, "surface_area": 1570.0, "principal_moments": [42300.0, 242000.0, 274000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 13.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.2, "min": 2.0, "max": 3.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004378 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 13.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 3.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d699b_0677", "family": "gear", "tier": 1, "seed": 1234004379, "symmetry": "none", "op_count": 1, "ir_hash": "95cf4cab464c2cbd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 102000.0, "surface_area": 28500.0, "principal_moments": [90400000.0, 90400000.0, 179000000.0], "n_faces": 237, "n_edges": 705, "n_vertices": 470}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 39, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 9.8, "min": 3.9, "max": 24.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 19.2, "min": 2.0, "max": 65.7, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004379 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 39, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 9.8, \"min\": 3.9, \"max\": 24.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 19.2, \"min\": 2.0, \"max\": 65.7, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d699c_0678", "family": "gear", "tier": 0, "seed": 1234004380, "symmetry": "none", "op_count": 1, "ir_hash": "34395dad14fb861b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13100.0, "surface_area": 4990.0, "principal_moments": [1360000.0, 1360000.0, 2390000.0], "n_faces": 92, "n_edges": 270, "n_vertices": 180}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 15, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 12.2, "min": 4.9, "max": 30.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004380 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 15, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 12.2, \"min\": 4.9, \"max\": 30.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d699d_0679", "family": "threaded", "tier": 0, "seed": 1234004381, "symmetry": "none", "op_count": 1, "ir_hash": "aa9342bfcd70ba84", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 223.0, "surface_area": 345.0, "principal_moments": [580.0, 3890.0, 3890.0], "n_faces": 180, "n_edges": 458, "n_vertices": 280}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 14.0, "min": 5.6, "max": 28.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004381 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 14.0, \"min\": 5.6, \"max\": 28.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d699f_0681", "family": "revolved", "tier": 2, "seed": 1234004383, "symmetry": "radial", "op_count": 2, "ir_hash": "69da783d4afdd737", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 331000.0, "surface_area": 34000.0, "principal_moments": [255000000.0, 329000000.0, 329000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 74.52, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 85.5, "min": 25.6, "max": 256.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 24.8, "min": 2.0, "max": 52.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 1.1, "min": 0.1, "max": 3.3, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004383 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 74.52, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 85.5, \"min\": 25.6, \"max\": 256.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 24.8, \"min\": 2.0, \"max\": 52.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.1, \"min\": 0.1, \"max\": 3.3, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d69a1_0683", "family": "compound", "tier": 1, "seed": 1234004385, "symmetry": "none", "op_count": 2, "ir_hash": "65b66eb87479d842", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 357000.0, "surface_area": 32500.0, "principal_moments": [264000000.0, 308000000.0, 375000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 74.43, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 83.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 57.5, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_a": {"type": "float", "default": 15.3, "min": 7.7, "max": 40.2, "step": 1.0, "group": "Spigot", "label": "Spigot width (mm)"}, "spig_b": {"type": "float", "default": 8.6, "min": 4.3, "max": 40.2, "step": 1.0, "group": "Spigot", "label": "Spigot depth (mm)"}, "spig_len": {"type": "float", "default": 9.6, "min": 2.6, "max": 34.4, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 4.9, "min": 2.0, "max": 6.2, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004385 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 74.43, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 83.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 57.5, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_a\": {\"type\": 'float', \"default\": 15.3, \"min\": 7.7, \"max\": 40.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot width (mm)'},\n \"spig_b\": {\"type\": 'float', \"default\": 8.6, \"min\": 4.3, \"max\": 40.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot depth (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 9.6, \"min\": 2.6, \"max\": 34.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.0, \"max\": 6.2, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cskHole(p[\"hole_d\"], p[\"hole_d\"] * 2, p[\"cs_angle\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.043101831935918246)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d69a5_0687", "family": "plate", "tier": 1, "seed": 1234004389, "symmetry": "radial", "op_count": 2, "ir_hash": "b49cd10f67746688", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 70500.0, "surface_area": 17900.0, "principal_moments": [37000000.0, 48299999.99999999, 84100000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 90, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 78.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 27.0, "min": 18.0, "max": 40.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004389 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 78.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 27.0, \"min\": 18.0, \"max\": 40.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d69a8_0690", "family": "gear", "tier": 0, "seed": 1234004392, "symmetry": "none", "op_count": 1, "ir_hash": "815cfdbc78d770a3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4150.0, "surface_area": 2290.0, "principal_moments": [189000.0, 189000.0, 316000.0], "n_faces": 74, "n_edges": 216, "n_vertices": 144}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 12, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 9.5, "min": 3.8, "max": 23.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004392 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 12, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 9.5, \"min\": 3.8, \"max\": 23.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69a9_0691", "family": "revolved", "tier": 2, "seed": 1234004393, "symmetry": "none", "op_count": 2, "ir_hash": "79360dadf19ecfbb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 105000.0, "surface_area": 20000.0, "principal_moments": [33399999.999999996, 78400000.0, 78400000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 45.5, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 84.1, "min": 25.2, "max": 252.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 21.8, "min": 2.0, "max": 31.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 1.1, "min": 0.1, "max": 3.3, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004393 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45.5, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 84.1, \"min\": 25.2, \"max\": 252.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 21.8, \"min\": 2.0, \"max\": 31.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.1, \"min\": 0.1, \"max\": 3.3, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d69ac_0694", "family": "plate", "tier": 1, "seed": 1234004396, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "d0442f6a2357b2e1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11900.0, "surface_area": 4730.0, "principal_moments": [569000.0, 4460000.0, 4900000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 66.94, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 22.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004396 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 66.94, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 22.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d69ad_0695", "family": "ribbed", "tier": 1, "seed": 1234004397, "symmetry": "none", "op_count": 2, "ir_hash": "9879bc908bb6f362", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37900.0, "surface_area": 29300.0, "principal_moments": [14999999.999999998, 28899999.999999996, 40300000.0], "n_faces": 54, "n_edges": 132, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 52.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 18.7, "min": 7.5, "max": 37.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.1, "min": 1.0, "max": 5.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004397 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 52.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 18.7, \"min\": 7.5, \"max\": 37.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.1, \"min\": 1.0, \"max\": 5.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d69ae_0696", "family": "bracket", "tier": 2, "seed": 1234004398, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "75670e00f5c7a45d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 52000.0, "surface_area": 17100.0, "principal_moments": [34500000.0, 52099999.99999999, 79100000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 76.66, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 77.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 29.67, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 8.4, "min": 4.0, "max": 14.8, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004398 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 76.66, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 77.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 29.67, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 8.4, \"min\": 4.0, \"max\": 14.8, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d69af_0697", "family": "bracket", "tier": 1, "seed": 1234004399, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "48b0972a10e80f83", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28400.0, "surface_area": 11500.0, "principal_moments": [8770000.0, 13999999.999999998, 17200000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 47.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004399 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 47.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d69b2_0700", "family": "profiled", "tier": 0, "seed": 1234004402, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "347455c18b034a03", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 40000.0, "surface_area": 9450.0, "principal_moments": [1740000.0, 78400000.0, 78800000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 20.65, "min": 10.3, "max": 41.3, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 15, "min": 7.5, "max": 30.0, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 152.8, "min": 45.8, "max": 458.4, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004402 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 20.65, \"min\": 10.3, \"max\": 41.3, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 15, \"min\": 7.5, \"max\": 30.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 152.8, \"min\": 45.8, \"max\": 458.4, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d69b3_0701", "family": "bracket", "tier": 1, "seed": 1234004403, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "da741ddf25eb25db", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5710.0, "surface_area": 4410.0, "principal_moments": [667000.0, 954000.0, 1340000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 41.09, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004403 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 41.09, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d69b7_0705", "family": "plate", "tier": 2, "seed": 1234004407, "symmetry": "none", "op_count": 3, "ir_hash": "7af91466c16c3cb1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24000.0, "surface_area": 7980.0, "principal_moments": [3380000.0, 7830000.0, 10800000.0], "n_faces": 22, "n_edges": 48, "n_vertices": 32}, "params": {"plate_w": {"type": "float", "default": 63.58, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 41.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 9.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "cb_d": {"type": "float", "default": 10.6, "min": 7.9, "max": 15.9, "step": 0.5, "group": "Holes", "label": "Counterbore diameter (mm)"}, "cb_depth": {"type": "float", "default": 4.2, "min": 2.1, "max": 8.4, "step": 0.5, "group": "Holes", "label": "Counterbore depth (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004407 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 63.58, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 41.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 9.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"cb_d\": {\"type\": 'float', \"default\": 10.6, \"min\": 7.9, \"max\": 15.9, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Counterbore diameter (mm)'},\n \"cb_depth\": {\"type\": 'float', \"default\": 4.2, \"min\": 2.1, \"max\": 8.4, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Counterbore depth (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cboreHole(p[\"hole_d\"], p[\"cb_d\"], p[\"cb_depth\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.11029332681081733)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69b9_0707", "family": "revolved", "tier": 1, "seed": 1234004409, "symmetry": "none", "op_count": 2, "ir_hash": "010d78eae5f6b91a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32300.0, "surface_area": 8350.0, "principal_moments": [6830000.0, 6830000.0, 10600000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 46.85, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 28.2, "min": 8.5, "max": 84.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004409 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 46.85, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 28.2, \"min\": 8.5, \"max\": 84.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d69bf_0713", "family": "block", "tier": 2, "seed": 1234004415, "symmetry": "radial", "op_count": 3, "ir_hash": "e772191f633bc834", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 280000.0, "surface_area": 39300.0, "principal_moments": [183000000.0, 262000000.0, 288000000.0], "n_faces": 21, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 63.67, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 55.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 92.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 19.1, "min": 12.7, "max": 28.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "pocket_w": {"type": "float", "default": 38.7, "min": 19.4, "max": 50.9, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 34.0, "min": 17.0, "max": 44.2, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 32.1, "min": 12.8, "max": 78.9, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004415 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 63.67, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 55.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 92.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 19.1, \"min\": 12.7, \"max\": 28.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"pocket_w\": {\"type\": 'float', \"default\": 38.7, \"min\": 19.4, \"max\": 50.9, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 34.0, \"min\": 17.0, \"max\": 44.2, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 32.1, \"min\": 12.8, \"max\": 78.9, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69c0_0714", "family": "revolved", "tier": 2, "seed": 1234004416, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "99a44a33c1c46dfe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 220000.0, "surface_area": 41700.0, "principal_moments": [82600000.0, 411000000.0, 411000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 50, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 168.2, "min": 50.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004416 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 168.2, \"min\": 50.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d69c1_0715", "family": "enclosure", "tier": 2, "seed": 1234004417, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "73ee2e377724124f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19900.0, "surface_area": 10800.0, "principal_moments": [4190000.0, 6550000.0, 7770000.0], "n_faces": 19, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 47.43, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 33.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 27.9, "min": 11.2, "max": 55.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004417 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 47.43, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 33.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 27.9, \"min\": 11.2, \"max\": 55.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d69c2_0716", "family": "profiled", "tier": 2, "seed": 1234004418, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "d2a451737fae9556", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 99300.0, "surface_area": 18200.0, "principal_moments": [6720000.0, 473000000.0, 474000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 25, "min": 12.5, "max": 50.0, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 20.15, "min": 10.1, "max": 40.3, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 238.4, "min": 71.5, "max": 715.2, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004418 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 25, \"min\": 12.5, \"max\": 50.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 20.15, \"min\": 10.1, \"max\": 40.3, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 238.4, \"min\": 71.5, \"max\": 715.2, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d69c4_0718", "family": "profiled", "tier": 0, "seed": 1234004420, "symmetry": "none", "op_count": 1, "ir_hash": "411956453036fdf5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 126000.0, "surface_area": 33400.0, "principal_moments": [23099999.999999996, 300000000.0, 300000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 35, "min": 17.5, "max": 70.0, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 196.4, "min": 58.9, "max": 589.2, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004420 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 17.5, \"max\": 70.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 196.4, \"min\": 58.9, \"max\": 589.2, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d69c5_0719", "family": "threaded", "tier": 1, "seed": 1234004421, "symmetry": "none", "op_count": 1, "ir_hash": "83718060f2f1de87", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 217.0, "surface_area": 336.0, "principal_moments": [563.0, 3580.0, 3580.0], "n_faces": 175, "n_edges": 447, "n_vertices": 274}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 13.6, "min": 5.4, "max": 27.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004421 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 13.6, \"min\": 5.4, \"max\": 27.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69c6_0720", "family": "revolved", "tier": 1, "seed": 1234004422, "symmetry": "radial", "op_count": 1, "ir_hash": "d0b6070f08f027c4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 318000.0, "surface_area": 38700.0, "principal_moments": [272000000.0, 361000000.0, 361000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 92.0, "min": 27.6, "max": 276.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 34.9, "min": 2.0, "max": 52.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004422 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 92.0, \"min\": 27.6, \"max\": 276.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 34.9, \"min\": 2.0, \"max\": 52.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d69c7_0721", "family": "block", "tier": 2, "seed": 1234004423, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "594c464c02466d3a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6230.0, "surface_area": 4000.0, "principal_moments": [285000.0, 739000.0, 931000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 20.95, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 9.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 38.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 10.5, "min": 5.2, "max": 16.8, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 5.6, "min": 2.8, "max": 7.4, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 11.9, "min": 4.8, "max": 32.3, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004423 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20.95, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 9.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 38.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 10.5, \"min\": 5.2, \"max\": 16.8, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 5.6, \"min\": 2.8, \"max\": 7.4, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 11.9, \"min\": 4.8, \"max\": 32.3, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d69c8_0722", "family": "plate", "tier": 1, "seed": 1234004424, "symmetry": "none", "op_count": 2, "ir_hash": "f2df6ae11a75af17", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6620.0, "surface_area": 4310.0, "principal_moments": [394000.0, 2280000.0, 2660000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 26.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004424 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 26.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69cb_0725", "family": "revolved", "tier": 1, "seed": 1234004427, "symmetry": "radial", "op_count": 2, "ir_hash": "acea9e833109897e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 210000.0, "surface_area": 34500.0, "principal_moments": [120000000.0, 292000000.0, 292000000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 44.6, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 111.4, "min": 33.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 22.1, "min": 2.0, "max": 31.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 77.8, "min": 53.5, "max": 133.8, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 24.7, "min": 7.4, "max": 55.7, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 1.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004427 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 44.6, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 111.4, \"min\": 33.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 22.1, \"min\": 2.0, \"max\": 31.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 77.8, \"min\": 53.5, \"max\": 133.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 24.7, \"min\": 7.4, \"max\": 55.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 1.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d69cd_0727", "family": "plate", "tier": 0, "seed": 1234004429, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "81fb87dd71df960f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20600.0, "surface_area": 9550.0, "principal_moments": [4940000.0, 10300000.0, 15099999.999999998], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 77.15, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 53.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004429 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 77.15, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 53.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d69ce_0728", "family": "bracket", "tier": 2, "seed": 1234004430, "symmetry": "none", "op_count": 1, "ir_hash": "9b62d685c36a6f36", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16300.0, "surface_area": 12000.0, "principal_moments": [4910000.0, 12899999.999999998, 14599999.999999998], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 45.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.5, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004430 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 45.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d69cf_0729", "family": "bracket", "tier": 2, "seed": 1234004431, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "f4c779a8ab0dcb7f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33000.0, "surface_area": 18100.0, "principal_moments": [11799999.999999998, 29199999.999999996, 37000000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 52.81, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 36.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 60.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 54.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 5.2, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004431 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 52.81, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 36.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 60.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 54.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d69d0_0730", "family": "bracket", "tier": 2, "seed": 1234004432, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "fa8d7174139b4035", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 54700.0, "surface_area": 20400.0, "principal_moments": [24399999.999999996, 66699999.99999999, 70500000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 7.9, "min": 3.0, "max": 18.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004432 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 7.9, \"min\": 3.0, \"max\": 18.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69d2_0732", "family": "revolved", "tier": 0, "seed": 1234004434, "symmetry": "radial", "op_count": 1, "ir_hash": "ea03e0cab9060a5c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 223.0, "surface_area": 312.0, "principal_moments": [1670.0, 1670.0, 2380.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 8.43, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 6.0, "min": 1.8, "max": 18.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004434 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 8.43, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 6.0, \"min\": 1.8, \"max\": 18.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d69d3_0733", "family": "enclosure", "tier": 1, "seed": 1234004435, "symmetry": "none", "op_count": 2, "ir_hash": "a623b45ae5522aee", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 178000.0, "surface_area": 70200.0, "principal_moments": [230000000.0, 350000000.0, 425000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 115, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 54.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 93.5, "min": 37.4, "max": 187.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004435 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 115, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 54.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 93.5, \"min\": 37.4, \"max\": 187.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69d4_0734", "family": "revolved", "tier": 1, "seed": 1234004436, "symmetry": "none", "op_count": 2, "ir_hash": "9d4c8bc972d39f64", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30000.0, "surface_area": 9610.0, "principal_moments": [4010000.0, 9290000.0, 9290000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 29.9, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 64.1, "min": 19.2, "max": 192.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.7, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004436 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 29.9, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 64.1, \"min\": 19.2, \"max\": 192.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.7, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d69d6_0736", "family": "bracket", "tier": 2, "seed": 1234004438, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "4e8c0cc6c4b843c6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19300.0, "surface_area": 6880.0, "principal_moments": [2780000.0, 8850000.0, 10400000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 59.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20.45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 8.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 8.3, "min": 4.0, "max": 10.2, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004438 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 59.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20.45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 8.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 8.3, \"min\": 4.0, \"max\": 10.2, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69d7_0737", "family": "revolved", "tier": 0, "seed": 1234004439, "symmetry": "none", "op_count": 1, "ir_hash": "35091469f86d701d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 314000.0, "surface_area": 42500.0, "principal_moments": [274000000.0, 336000000.0, 336000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 76.25, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 103.3, "min": 31.0, "max": 309.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004439 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 76.25, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 103.3, \"min\": 31.0, \"max\": 309.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69d8_0738", "family": "revolved", "tier": 1, "seed": 1234004440, "symmetry": "radial", "op_count": 1, "ir_hash": "7100fa637ce0e3a7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3220.0, "surface_area": 2070.0, "principal_moments": [116000.0, 228000.0, 228000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 15, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 25.2, "min": 7.6, "max": 75.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 7.9, "min": 2.0, "max": 10.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004440 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 15, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 25.2, \"min\": 7.6, \"max\": 75.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 7.9, \"min\": 2.0, \"max\": 10.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d69d9_0739", "family": "bracket", "tier": 1, "seed": 1234004441, "symmetry": "none", "op_count": 1, "ir_hash": "479d0a85d849c875", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17500.0, "surface_area": 7720.0, "principal_moments": [2970000.0, 6950000.0, 7060000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 47.62, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 30.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30.85, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004441 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 47.62, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 30.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30.85, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69da_0740", "family": "revolved", "tier": 1, "seed": 1234004442, "symmetry": "none", "op_count": 2, "ir_hash": "42267d0ad1e0c017", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 85600.0, "surface_area": 21000.0, "principal_moments": [19000000.0, 71400000.0, 71400000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 38.51, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 110.4, "min": 33.1, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.1, "min": 0.1, "max": 3.3, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004442 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 38.51, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 110.4, \"min\": 33.1, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.1, \"min\": 0.1, \"max\": 3.3, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.11048994275245416)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69dc_0742", "family": "revolved", "tier": 1, "seed": 1234004444, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "74cc73b62ebbb2e5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 897000.0, "surface_area": 99100.0, "principal_moments": [732000000.0, 5980000000.0, 5980000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 73.14, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 274.0, "min": 82.2, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 34.4, "min": 2.0, "max": 51.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004444 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 73.14, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 274.0, \"min\": 82.2, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 34.4, \"min\": 2.0, \"max\": 51.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d69dd_0743", "family": "bracket", "tier": 2, "seed": 1234004445, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "4dbdf20fb0d0e477", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18300.0, "surface_area": 8700.0, "principal_moments": [3030000.0, 7490000.0, 9320000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 27.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 28.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 6.5, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004445 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 27.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 28.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.5, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d69de_0744", "family": "block", "tier": 2, "seed": 1234004446, "symmetry": "none", "op_count": 3, "ir_hash": "0304cf2d6d2e3800", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 467000.0, "surface_area": 49300.0, "principal_moments": [389000000.0, 531000000.0, 605000000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 77.91, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 64.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 97.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 11.9, "min": 6.0, "max": 23.8, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 5.7, "min": 2.3, "max": 14.2, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 8.3, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004446 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 77.91, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 64.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 97.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 11.9, \"min\": 6.0, \"max\": 23.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.3, \"max\": 14.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 8.3, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d69df_0745", "family": "bracket", "tier": 1, "seed": 1234004447, "symmetry": "none", "op_count": 1, "ir_hash": "6053112d692a811d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7560.0, "surface_area": 5800.0, "principal_moments": [1280000.0, 1950000.0, 2440000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 37.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 37.02, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004447 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 37.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 37.02, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d69e3_0749", "family": "plate", "tier": 1, "seed": 1234004451, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "cb7cb116d9aa0285", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1530.0, "surface_area": 1120.0, "principal_moments": [19100.0, 81400.0, 91400.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 25, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 10.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.4, "min": 2.0, "max": 2.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004451 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 10.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 2.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d69e4_0750", "family": "compound", "tier": 1, "seed": 1234004452, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "a2759279eca35af2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2900.0, "surface_area": 1210.0, "principal_moments": [67100.0, 131000.0, 131000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 14.42, "min": 7.2, "max": 26.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 14.0, "min": 5.6, "max": 28.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 10.0, "min": 5.0, "max": 13.0, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 7.8, "min": 2.3, "max": 19.5, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004452 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 14.42, \"min\": 7.2, \"max\": 26.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 14.0, \"min\": 5.6, \"max\": 28.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 5.0, \"max\": 13.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 7.8, \"min\": 2.3, \"max\": 19.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d69e6_0752", "family": "compound", "tier": 1, "seed": 1234004454, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "3d1b16b517617ebd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 43100.0, "surface_area": 22600.0, "principal_moments": [43700000.0, 45400000.0, 55299999.99999999], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"base_w": {"type": "float", "default": 98.1, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 75.6, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 5.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 6.0, "min": 3.0, "max": 18.9, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 109.1, "min": 32.7, "max": 327.3, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 5.9, "min": 2.0, "max": 7.5, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004454 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 98.1, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 75.6, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 18.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 109.1, \"min\": 32.7, \"max\": 327.3, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 5.9, \"min\": 2.0, \"max\": 7.5, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69e7_0753", "family": "revolved", "tier": 0, "seed": 1234004455, "symmetry": "none", "op_count": 1, "ir_hash": "51522509d7b453d0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 104000.0, "surface_area": 26200.0, "principal_moments": [22100000.0, 135000000.0, 135000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 37.54, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 141.4, "min": 42.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004455 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 37.54, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 141.4, \"min\": 42.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69e8_0754", "family": "revolved", "tier": 0, "seed": 1234004456, "symmetry": "radial", "op_count": 1, "ir_hash": "cb10ff50cc66cf2d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15200.0, "surface_area": 6710.0, "principal_moments": [1080000.0, 3970000.0, 3970000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 21.74, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 61.6, "min": 18.5, "max": 184.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004456 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 21.74, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 61.6, \"min\": 18.5, \"max\": 184.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d69e9_0755", "family": "threaded", "tier": 0, "seed": 1234004457, "symmetry": "none", "op_count": 1, "ir_hash": "7fc933cdeb01326d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5190.0, "surface_area": 3220.0, "principal_moments": [78900.0, 1350000.0, 1350000.0], "n_faces": 320, "n_edges": 822, "n_vertices": 504}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 55.2, "min": 22.1, "max": 110.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004457 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 55.2, \"min\": 22.1, \"max\": 110.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69ea_0756", "family": "revolved", "tier": 2, "seed": 1234004458, "symmetry": "none", "op_count": 1, "ir_hash": "50cadfa51bd01d21", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 378.0, "surface_area": 582.0, "principal_moments": [3560.0, 7700.0, 7700.0], "n_faces": 8, "n_edges": 12, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 7.55, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 13.4, "min": 4.0, "max": 40.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 4.4, "min": 2.0, "max": 5.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 0.58, "min": 0.23, "max": 1.74, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 1.42, "min": 0.57, "max": 4.26, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 7.1, "min": 2.0, "max": 11.4, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004458 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 7.55, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 13.4, \"min\": 4.0, \"max\": 40.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 4.4, \"min\": 2.0, \"max\": 5.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 0.58, \"min\": 0.23, \"max\": 1.74, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 1.42, \"min\": 0.57, \"max\": 4.26, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 7.1, \"min\": 2.0, \"max\": 11.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69ed_0759", "family": "revolved", "tier": 2, "seed": 1234004461, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "841eba18a6188869", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 86500.0, "surface_area": 19700.0, "principal_moments": [39400000.0, 39400000.0, 68200000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 41.33, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 39.0, "min": 11.7, "max": 117.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 86.5, "min": 49.6, "max": 124.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 11.4, "min": 3.4, "max": 19.5, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004461 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 41.33, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 39.0, \"min\": 11.7, \"max\": 117.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 86.5, \"min\": 49.6, \"max\": 124.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 11.4, \"min\": 3.4, \"max\": 19.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d69ef_0761", "family": "threaded", "tier": 0, "seed": 1234004463, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "57f89db2f569f191", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 798.0, "surface_area": 995.0, "principal_moments": [2970.0, 81900.0, 81900.0], "n_faces": 355, "n_edges": 915, "n_vertices": 562}, "params": {"major_d": {"type": "float", "default": 6.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.0, "min": 0.5, "max": 2.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 34.9, "min": 14.0, "max": 69.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004463 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.5, \"max\": 2.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 34.9, \"min\": 14.0, \"max\": 69.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d69f0_0762", "family": "bracket", "tier": 2, "seed": 1234004464, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "198d81e252eb01fd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28100.0, "surface_area": 10100.0, "principal_moments": [4760000.0, 32699999.999999996, 35700000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 64.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 54.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 7.6, "min": 4.0, "max": 10.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004464 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 64.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 54.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 7.6, \"min\": 4.0, \"max\": 10.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d69f1_0763", "family": "ribbed", "tier": 1, "seed": 1234004465, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "407475aac901e001", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 47300.0, "surface_area": 28100.0, "principal_moments": [30799999.999999996, 43200000.0, 71000000.0], "n_faces": 21, "n_edges": 48, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 99.36, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 88.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 18.2, "min": 7.3, "max": 36.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.8, "min": 1.0, "max": 7.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004465 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 99.36, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 88.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 18.2, \"min\": 7.3, \"max\": 36.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.8, \"min\": 1.0, \"max\": 7.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d69f2_0764", "family": "plate", "tier": 1, "seed": 1234004466, "symmetry": "none", "op_count": 2, "ir_hash": "6735f99cc3829e75", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12600.0, "surface_area": 7360.0, "principal_moments": [2230000.0, 4950000.0, 7150000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 68.83, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 46.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 10.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004466 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 68.83, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 46.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 10.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d69f3_0765", "family": "block", "tier": 2, "seed": 1234004467, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "68739f91fbdc3ca6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 84400.0, "surface_area": 17300.0, "principal_moments": [20000000.0, 55399999.99999999, 69900000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 20.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 86.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004467 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 20.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 86.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.07743143622664883)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d69f4_0766", "family": "plate", "tier": 1, "seed": 1234004468, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "fea3af57588585a9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1040.0, "surface_area": 1060.0, "principal_moments": [19900.0, 52700.0, 71100.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 25, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 15.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004468 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 15.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69f5_0767", "family": "revolved", "tier": 0, "seed": 1234004469, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "423c0f996c3ea468", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4090.0, "surface_area": 2730.0, "principal_moments": [128000.0, 407000.0, 407000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 14.42, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 37.6, "min": 11.3, "max": 112.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004469 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 14.42, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 37.6, \"min\": 11.3, \"max\": 112.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d69f6_0768", "family": "flanged", "tier": 1, "seed": 1234004470, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "916cd0f12ccbaf0b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33500.0, "surface_area": 12700.0, "principal_moments": [10200000.0, 11100000.0, 11100000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 30, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 42.3, "min": 12.7, "max": 105.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 15.3, "min": 2.0, "max": 21.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 63.2, "min": 39.0, "max": 90.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.9, "min": 1.5, "max": 16.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 19.0, "min": 12.6, "max": 28.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004470 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 42.3, \"min\": 12.7, \"max\": 105.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 15.3, \"min\": 2.0, \"max\": 21.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 63.2, \"min\": 39.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.9, \"min\": 1.5, \"max\": 16.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 19.0, \"min\": 12.6, \"max\": 28.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d69f7_0769", "family": "ribbed", "tier": 2, "seed": 1234004471, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "40fe50c7419d7ba8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13200.0, "surface_area": 7870.0, "principal_moments": [1930000.0, 3730000.0, 4680000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 49.39, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 26.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.8, "min": 6.7, "max": 33.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.7, "min": 1.0, "max": 11.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004471 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 49.39, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 26.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.8, \"min\": 6.7, \"max\": 33.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.7, \"min\": 1.0, \"max\": 11.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d69f8_0770", "family": "flanged", "tier": 2, "seed": 1234004472, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "94d60212a8c11930", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8510.0, "surface_area": 4980.0, "principal_moments": [828000.0, 985000.0, 985000.0], "n_faces": 29, "n_edges": 114, "n_vertices": 76}, "params": {"outer_d": {"type": "float", "default": 21.37, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 26.0, "min": 7.8, "max": 65.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 9.4, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 38.4, "min": 27.8, "max": 64.1, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 2.0, "min": 0.6, "max": 10.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 11.5, "min": 7.7, "max": 17.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004472 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 21.37, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 26.0, \"min\": 7.8, \"max\": 65.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 9.4, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 38.4, \"min\": 27.8, \"max\": 64.1, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 2.0, \"min\": 0.6, \"max\": 10.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 11.5, \"min\": 7.7, \"max\": 17.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d69f9_0771", "family": "plate", "tier": 2, "seed": 1234004473, "symmetry": "none", "op_count": 3, "ir_hash": "009d518b2c06ea4d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11600.0, "surface_area": 5850.0, "principal_moments": [1760000.0, 3030000.0, 4730000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"plate_w": {"type": "float", "default": 55.92, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 42.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004473 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 55.92, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 42.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 21.0\n _ssy = 23.9\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09489245079806397)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d69fb_0773", "family": "compound", "tier": 1, "seed": 1234004475, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "8b7cf0d8ebf172c4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9060.0, "surface_area": 3620.0, "principal_moments": [743000.0, 923000.0, 923000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 15, "min": 9.0, "max": 24.0, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 12.7, "min": 5.1, "max": 31.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 12.8, "min": 6.4, "max": 20.8, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 19.3, "min": 5.8, "max": 48.2, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 5.8, "min": 2.0, "max": 9.2, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004475 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 15, \"min\": 9.0, \"max\": 24.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 12.7, \"min\": 5.1, \"max\": 31.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 12.8, \"min\": 6.4, \"max\": 20.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 19.3, \"min\": 5.8, \"max\": 48.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.0, \"max\": 9.2, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d69fc_0774", "family": "plate", "tier": 1, "seed": 1234004476, "symmetry": "radial", "op_count": 2, "ir_hash": "4032a391ac3f3b71", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5060.0, "surface_area": 2960.0, "principal_moments": [217000.0, 457000.0, 590000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 30, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 20.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 9.0, "min": 6.0, "max": 13.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004476 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 20.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 9.0, \"min\": 6.0, \"max\": 13.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d69fd_0775", "family": "plate", "tier": 2, "seed": 1234004477, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "8f3343237b855aa4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10800.0, "surface_area": 4450.0, "principal_moments": [782000.0, 2210000.0, 2880000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 29.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004477 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 29.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.11583792505448964)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d69ff_0777", "family": "revolved", "tier": 1, "seed": 1234004479, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "020ff4d59bb0b822", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16700.0, "surface_area": 5490.0, "principal_moments": [2370000.0, 2580000.0, 2580000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 18.72, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 33.3, "min": 10.0, "max": 99.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 38.5, "min": 22.5, "max": 56.2, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.7, "min": 2.9, "max": 16.6, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004479 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 18.72, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 33.3, \"min\": 10.0, \"max\": 99.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 38.5, \"min\": 22.5, \"max\": 56.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.7, \"min\": 2.9, \"max\": 16.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6a01_0779", "family": "profiled", "tier": 2, "seed": 1234004481, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "76910e469445211c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 245000.0, "surface_area": 40800.0, "principal_moments": [83000000.0, 1440000000.0, 1510000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 65, "min": 32.5, "max": 130.0, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 15, "min": 7.5, "max": 30.0, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 264.6, "min": 79.4, "max": 793.8, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004481 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 65, \"min\": 32.5, \"max\": 130.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 15, \"min\": 7.5, \"max\": 30.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 264.6, \"min\": 79.4, \"max\": 793.8, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6a02_0780", "family": "enclosure", "tier": 1, "seed": 1234004482, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "87146ddcb1ce9b57", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61400.0, "surface_area": 51900.0, "principal_moments": [60199999.99999999, 89000000.0, 108000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 95.75, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 45.5, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 80.2, "min": 32.1, "max": 160.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.4, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004482 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 95.75, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 45.5, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 80.2, \"min\": 32.1, \"max\": 160.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6a03_0781", "family": "plate", "tier": 0, "seed": 1234004483, "symmetry": "none", "op_count": 1, "ir_hash": "cef0209a56f1b185", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8010.0, "surface_area": 4750.0, "principal_moments": [746000.0, 2430000.0, 3160000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 60.28, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 33.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004483 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60.28, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 33.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a04_0782", "family": "compound", "tier": 1, "seed": 1234004484, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "d037aea9428dd03c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18800.0, "surface_area": 5900.0, "principal_moments": [1330000.0, 4780000.0, 4780000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 24.18, "min": 12.1, "max": 43.5, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 38.4, "min": 15.4, "max": 76.8, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 11.9, "min": 6.0, "max": 21.8, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 25.5, "min": 7.6, "max": 63.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 5.8, "min": 2.0, "max": 8.6, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004484 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 24.18, \"min\": 12.1, \"max\": 43.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 38.4, \"min\": 15.4, \"max\": 76.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 11.9, \"min\": 6.0, \"max\": 21.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 25.5, \"min\": 7.6, \"max\": 63.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.0, \"max\": 8.6, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6a06_0784", "family": "plate", "tier": 1, "seed": 1234004486, "symmetry": "none", "op_count": 2, "ir_hash": "063f8cbd099a9f7c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8080.0, "surface_area": 4310.0, "principal_moments": [810000.0, 1580000.0, 2360000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"plate_w": {"type": "float", "default": 48.15, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 34.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004486 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 48.15, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 34.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 18.1\n _ssy = 21.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6a07_0785", "family": "threaded", "tier": 1, "seed": 1234004487, "symmetry": "none", "op_count": 1, "ir_hash": "446187be3a66eba0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 606.0, "surface_area": 742.0, "principal_moments": [7690.0, 12100.0, 12100.0], "n_faces": 132, "n_edges": 358, "n_vertices": 228}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 12.8, "min": 5.1, "max": 25.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004487 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 12.8, \"min\": 5.1, \"max\": 25.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a08_0786", "family": "flanged", "tier": 2, "seed": 1234004488, "symmetry": "radial", "op_count": 3, "ir_hash": "449893b61e0e78fb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45900.0, "surface_area": 12600.0, "principal_moments": [13699999.999999998, 13699999.999999998, 14299999.999999998], "n_faces": 32, "n_edges": 80, "n_vertices": 47}, "params": {"outer_d": {"type": "float", "default": 35, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 38.2, "min": 11.5, "max": 95.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 10.6, "min": 2.0, "max": 24.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 65.1, "min": 45.5, "max": 105.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.6, "min": 1.7, "max": 15.3, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 19.5, "min": 13.0, "max": 29.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.6, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004488 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 38.2, \"min\": 11.5, \"max\": 95.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 10.6, \"min\": 2.0, \"max\": 24.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 65.1, \"min\": 45.5, \"max\": 105.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.6, \"min\": 1.7, \"max\": 15.3, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 19.5, \"min\": 13.0, \"max\": 29.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.6, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6a0c_0790", "family": "enclosure", "tier": 2, "seed": 1234004492, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "f3bae8cf8b8d3046", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13700.0, "surface_area": 8300.0, "principal_moments": [2120000.0, 2350000.0, 3170000.0], "n_faces": 27, "n_edges": 84, "n_vertices": 56}, "params": {"enc_w": {"type": "float", "default": 35, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 20.4, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 34.2, "min": 13.7, "max": 68.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.5, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004492 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 35, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 20.4, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 34.2, \"min\": 13.7, \"max\": 68.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.5, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.05345828403765474)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6a0f_0793", "family": "block", "tier": 1, "seed": 1234004495, "symmetry": "radial", "op_count": 2, "ir_hash": "0c31a8dbaea8e4e3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 179000.0, "surface_area": 25500.0, "principal_moments": [77000000.0, 146000000.0, 197000000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"block_w": {"type": "float", "default": 65.22, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 29.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 94.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 19.6, "min": 13.0, "max": 29.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004495 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65.22, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 29.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 94.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 19.6, \"min\": 13.0, \"max\": 29.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a10_0794", "family": "revolved", "tier": 2, "seed": 1234004496, "symmetry": "radial", "op_count": 2, "ir_hash": "a3246083643039b4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 362000.0, "surface_area": 52200.0, "principal_moments": [264000000.0, 575000000.0, 575000000.0], "n_faces": 9, "n_edges": 14, "n_vertices": 9}, "params": {"outer_d": {"type": "float", "default": 70, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 143.1, "min": 42.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "groove_depth": {"type": "float", "default": 3.16, "min": 1.26, "max": 9.48, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 7.71, "min": 3.08, "max": 23.13, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 75.7, "min": 21.5, "max": 121.6, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.7, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004496 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 70, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 143.1, \"min\": 42.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 3.16, \"min\": 1.26, \"max\": 9.48, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 7.71, \"min\": 3.08, \"max\": 23.13, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 75.7, \"min\": 21.5, \"max\": 121.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.7, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a13_0797", "family": "compound", "tier": 2, "seed": 1234004499, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "26c23c611939d337", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 83900.0, "surface_area": 13800.0, "principal_moments": [22899999.999999996, 29499999.999999996, 37100000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 47.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 33.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 9.8, "min": 3.9, "max": 23.2, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 20.9, "min": 2.9, "max": 39.2, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 5.1, "min": 2.0, "max": 7.1, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 10.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004499 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 47.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 33.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 9.8, \"min\": 3.9, \"max\": 23.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 20.9, \"min\": 2.9, \"max\": 39.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 5.1, \"min\": 2.0, \"max\": 7.1, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 10.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a14_0798", "family": "flanged", "tier": 1, "seed": 1234004500, "symmetry": "radial", "op_count": 2, "ir_hash": "fa125bb49317ceae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21800.0, "surface_area": 8260.0, "principal_moments": [3610000.0, 3610000.0, 4980000.0], "n_faces": 17, "n_edges": 60, "n_vertices": 40}, "params": {"outer_d": {"type": "float", "default": 33.32, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 23.1, "min": 6.9, "max": 57.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 11.5, "min": 2.0, "max": 23.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 53.7, "min": 43.3, "max": 100.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.5, "min": 1.1, "max": 9.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 16.1, "min": 10.7, "max": 24.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004500 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 33.32, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 23.1, \"min\": 6.9, \"max\": 57.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 11.5, \"min\": 2.0, \"max\": 23.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 53.7, \"min\": 43.3, \"max\": 100.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.5, \"min\": 1.1, \"max\": 9.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 16.1, \"min\": 10.7, \"max\": 24.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a16_0800", "family": "revolved", "tier": 1, "seed": 1234004502, "symmetry": "radial", "op_count": 1, "ir_hash": "2a8c47b507e641f6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 947000.0, "surface_area": 83700.0, "principal_moments": [1660000000.0, 2570000000.0, 2570000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 75.61, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 145.7, "min": 43.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 27.6, "min": 2.0, "max": 52.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 139.6, "min": 90.7, "max": 226.8, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 35.1, "min": 10.5, "max": 72.8, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004502 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75.61, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 145.7, \"min\": 43.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 27.6, \"min\": 2.0, \"max\": 52.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 139.6, \"min\": 90.7, \"max\": 226.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 35.1, \"min\": 10.5, \"max\": 72.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a17_0801", "family": "compound", "tier": 2, "seed": 1234004503, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "3d4f50fc5006315a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5410.0, "surface_area": 2480.0, "principal_moments": [216000.0, 380000.0, 391000.0], "n_faces": 16, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 23.3, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 15.9, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 15.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_a": {"type": "float", "default": 6.0, "min": 3.0, "max": 10.5, "step": 1.0, "group": "Spigot", "label": "Spigot width (mm)"}, "spig_b": {"type": "float", "default": 6.0, "min": 3.0, "max": 10.5, "step": 1.0, "group": "Spigot", "label": "Spigot depth (mm)"}, "spig_len": {"type": "float", "default": 8.0, "min": 1.8, "max": 24.0, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 3.5, "min": 2.0, "max": 4.3, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004503 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 23.3, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 15.9, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 15.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_a\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 10.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot width (mm)'},\n \"spig_b\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 10.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot depth (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 8.0, \"min\": 1.8, \"max\": 24.0, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 3.5, \"min\": 2.0, \"max\": 4.3, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a18_0802", "family": "revolved", "tier": 1, "seed": 1234004504, "symmetry": "none", "op_count": 2, "ir_hash": "1274252006dc15ed", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5060.0, "surface_area": 2510.0, "principal_moments": [376000.0, 376000.0, 569000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 25.87, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 14.9, "min": 4.5, "max": 44.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 15.2, "min": 2.0, "max": 18.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.1, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004504 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25.87, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 14.9, \"min\": 4.5, \"max\": 44.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 15.2, \"min\": 2.0, \"max\": 18.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.1, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6a1c_0806", "family": "gear", "tier": 1, "seed": 1234004508, "symmetry": "none", "op_count": 1, "ir_hash": "c177af5b3e502dfc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5100.0, "surface_area": 3460.0, "principal_moments": [505000.0, 505000.0, 993000.0], "n_faces": 237, "n_edges": 705, "n_vertices": 470}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 39, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 4.4, "min": 1.8, "max": 11.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 6.0, "min": 2.0, "max": 21.9, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004508 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 39, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 4.4, \"min\": 1.8, \"max\": 11.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 21.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6a1d_0807", "family": "plate", "tier": 1, "seed": 1234004509, "symmetry": "none", "op_count": 2, "ir_hash": "93af9a5733806aeb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8780.0, "surface_area": 3620.0, "principal_moments": [546000.0, 1380000.0, 1830000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 42.94, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 26.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004509 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 42.94, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 26.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6a1e_0808", "family": "plate", "tier": 1, "seed": 1234004510, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "6b1faa67ab550812", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42900.0, "surface_area": 11100.0, "principal_moments": [6370000.0, 29099999.999999996, 34500000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 90, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 40.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 9.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004510 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 40.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 9.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a20_0810", "family": "bracket", "tier": 1, "seed": 1234004512, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "07d492da5f892a27", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21400.0, "surface_area": 15500.0, "principal_moments": [9150000.0, 22899999.999999996, 23099999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 73.73, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 73.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004512 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 73.73, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 73.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a22_0812", "family": "compound", "tier": 1, "seed": 1234004514, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "046c24ac0df6bce3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 91900.0, "surface_area": 13100.0, "principal_moments": [23799999.999999996, 38100000.0, 46799999.99999999], "n_faces": 8, "n_edges": 15, "n_vertices": 10}, "params": {"block_w": {"type": "float", "default": 60.2, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 31.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 46.7, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 14.7, "min": 5.9, "max": 22.3, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 14.9, "min": 4.4, "max": 58.8, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004514 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 60.2, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 31.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 46.7, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 14.7, \"min\": 5.9, \"max\": 22.3, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 14.9, \"min\": 4.4, \"max\": 58.8, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a23_0813", "family": "bracket", "tier": 1, "seed": 1234004515, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8305e23077485399", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22500.0, "surface_area": 10600.0, "principal_moments": [5030000.0, 10800000.0, 13399999.999999998], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 36.46, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 42.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 32.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004515 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 36.46, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 42.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 32.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6a24_0814", "family": "gear", "tier": 2, "seed": 1234004516, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "1af00986f11c656e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4150.0, "surface_area": 2730.0, "principal_moments": [292000.0, 292000.0, 567000.0], "n_faces": 235, "n_edges": 699, "n_vertices": 466}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 29, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.1, "min": 2.0, "max": 12.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 27.6, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": -0.04, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.2, "min": 0.0, "max": 0.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 4.7, "min": 2.0, "max": 15.9, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004516 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 29, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.1, \"min\": 2.0, \"max\": 12.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 27.6, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.04, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.2, \"min\": 0.0, \"max\": 0.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 4.7, \"min\": 2.0, \"max\": 15.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6a25_0815", "family": "plate", "tier": 0, "seed": 1234004517, "symmetry": "radial", "op_count": 1, "ir_hash": "4800ba444d6561ea", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1960.0, "surface_area": 1190.0, "principal_moments": [44400.0, 106000.0, 143000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 25, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 15.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004517 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 15.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6a26_0816", "family": "ribbed", "tier": 1, "seed": 1234004518, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "e3b2dc44a813166d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31600.0, "surface_area": 18200.0, "principal_moments": [15799999.999999998, 22500000.0, 37600000.0], "n_faces": 16, "n_edges": 36, "n_vertices": 24}, "params": {"base_w": {"type": "float", "default": 85.71, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 77.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 12.4, "min": 5.0, "max": 24.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.9, "min": 1.0, "max": 7.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004518 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 85.71, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 77.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 12.4, \"min\": 5.0, \"max\": 24.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.9, \"min\": 1.0, \"max\": 7.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a27_0817", "family": "flanged", "tier": 1, "seed": 1234004519, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3f5fa02e3d10e219", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6350.0, "surface_area": 4780.0, "principal_moments": [765000.0, 765000.0, 1260000.0], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 21.68, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 15.2, "min": 4.6, "max": 38.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 11.1, "min": 2.0, "max": 15.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 47.3, "min": 28.2, "max": 65.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 2.6, "min": 0.8, "max": 6.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 14.2, "min": 9.5, "max": 21.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004519 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 21.68, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 15.2, \"min\": 4.6, \"max\": 38.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 11.1, \"min\": 2.0, \"max\": 15.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 47.3, \"min\": 28.2, \"max\": 65.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 2.6, \"min\": 0.8, \"max\": 6.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 14.2, \"min\": 9.5, \"max\": 21.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a28_0818", "family": "flanged", "tier": 2, "seed": 1234004520, "symmetry": "none", "op_count": 3, "ir_hash": "f840971ca3a20657", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22100.0, "surface_area": 8780.0, "principal_moments": [4250000.0, 4250000.0, 6660000.0], "n_faces": 44, "n_edges": 114, "n_vertices": 67}, "params": {"outer_d": {"type": "float", "default": 35, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 21.0, "min": 6.3, "max": 52.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 15.8, "min": 2.0, "max": 24.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 59.2, "min": 45.5, "max": 105.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.7, "min": 1.1, "max": 8.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 17.8, "min": 11.8, "max": 26.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004520 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 21.0, \"min\": 6.3, \"max\": 52.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 15.8, \"min\": 2.0, \"max\": 24.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 59.2, \"min\": 45.5, \"max\": 105.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.7, \"min\": 1.1, \"max\": 8.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 17.8, \"min\": 11.8, \"max\": 26.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6a2a_0820", "family": "block", "tier": 2, "seed": 1234004522, "symmetry": "none", "op_count": 3, "ir_hash": "366b67d6cf6dd3bb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 148000.0, "surface_area": 21900.0, "principal_moments": [60499999.99999999, 94199999.99999999, 136000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 28.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 83.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004522 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 28.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 83.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.11473538814338366)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6a2c_0822", "family": "plate", "tier": 1, "seed": 1234004524, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "6f489333bee096f8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6660.0, "surface_area": 3770.0, "principal_moments": [291000.0, 2070000.0, 2330000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 61.48, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 22.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004524 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 61.48, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 22.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6a2d_0823", "family": "profiled", "tier": 1, "seed": 1234004525, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "dda448b533e18d9b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4860.0, "surface_area": 3240.0, "principal_moments": [147000.0, 679000.0, 679000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 14.23, "min": 7.1, "max": 28.5, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 45.8, "min": 13.7, "max": 137.4, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004525 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 14.23, \"min\": 7.1, \"max\": 28.5, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 45.8, \"min\": 13.7, \"max\": 137.4, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a2f_0825", "family": "revolved", "tier": 0, "seed": 1234004527, "symmetry": "radial", "op_count": 1, "ir_hash": "8b79b562f42b86a9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19500.0, "surface_area": 6670.0, "principal_moments": [2630000.0, 3280000.0, 3280000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 30, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 41.3, "min": 12.4, "max": 123.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004527 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 41.3, \"min\": 12.4, \"max\": 123.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6a30_0826", "family": "enclosure", "tier": 2, "seed": 1234004528, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "8166761babd51912", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30900.0, "surface_area": 14100.0, "principal_moments": [9930000.0, 10900000.0, 13499999.999999998], "n_faces": 27, "n_edges": 84, "n_vertices": 56}, "params": {"enc_w": {"type": "float", "default": 45, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 41.3, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 35.4, "min": 14.2, "max": 70.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 9.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004528 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 45, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 41.3, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 35.4, \"min\": 14.2, \"max\": 70.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 9.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.06498994301069547)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6a31_0827", "family": "block", "tier": 2, "seed": 1234004529, "symmetry": "radial", "op_count": 3, "ir_hash": "ef9acc6ca854fa00", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4010.0, "surface_area": 2710.0, "principal_moments": [138000.0, 377000.0, 414000.0], "n_faces": 36, "n_edges": 102, "n_vertices": 68}, "params": {"block_w": {"type": "float", "default": 30, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 12.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 16.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 9.0, "min": 6.0, "max": 13.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004529 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 12.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 16.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 9.0, \"min\": 6.0, \"max\": 13.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.057091526871710735)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a32_0828", "family": "revolved", "tier": 2, "seed": 1234004530, "symmetry": "none", "op_count": 1, "ir_hash": "4167d20cd6a60f8c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1090000.0, "surface_area": 94700.0, "principal_moments": [919000000.0, 6660000000.0, 6660000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 77.63, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 261.9, "min": 78.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 27.4, "min": 2.0, "max": 54.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004530 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 77.63, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 261.9, \"min\": 78.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 27.4, \"min\": 2.0, \"max\": 54.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6a34_0830", "family": "gear", "tier": 0, "seed": 1234004532, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "06e05685be99b372", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 965000.0, "surface_area": 93100.0, "principal_moments": [2080000000.0, 2080000000.0, 3930000000.0], "n_faces": 182, "n_edges": 540, "n_vertices": 360}, "params": {"module": {"type": "float", "default": 6.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 30, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 38.3, "min": 15.3, "max": 95.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004532 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 6.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 30, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 38.3, \"min\": 15.3, \"max\": 95.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a35_0831", "family": "bracket", "tier": 2, "seed": 1234004533, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ebc1a86e32d7c44c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9270.0, "surface_area": 7200.0, "principal_moments": [1470000.0, 6430000.0, 7090000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 75, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 49.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 23.69, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 9.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 2.4, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004533 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 49.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 23.69, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 9.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.4, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6a36_0832", "family": "block", "tier": 1, "seed": 1234004534, "symmetry": "none", "op_count": 2, "ir_hash": "019c54093cf4da3a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4890.0, "surface_area": 4150.0, "principal_moments": [203000.0, 502000.0, 642000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 20, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 8.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 34.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 0.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004534 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 8.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 34.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 0.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 3.8\n _ssy = 4.2\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6a38_0834", "family": "enclosure", "tier": 2, "seed": 1234004536, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "b269aec4b5ac9710", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 46900.0, "surface_area": 35600.0, "principal_moments": [28899999.999999996, 48799999.99999999, 59699999.99999999], "n_faces": 19, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 85.76, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 34.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 65.6, "min": 26.2, "max": 131.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.7, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 7.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004536 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 85.76, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 34.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 65.6, \"min\": 26.2, \"max\": 131.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.7, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 7.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a39_0835", "family": "revolved", "tier": 1, "seed": 1234004537, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "5fee9b574348f0ae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 594000.0, "surface_area": 76000.0, "principal_moments": [493000000.0, 1730000000.0, 1730000000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 74.4, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 205.1, "min": 61.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.1, "min": 0.1, "max": 3.3, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004537 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 74.4, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 205.1, \"min\": 61.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.1, \"min\": 0.1, \"max\": 3.3, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6a3c_0838", "family": "gear", "tier": 0, "seed": 1234004540, "symmetry": "none", "op_count": 1, "ir_hash": "d3b1e717040ac477", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3920.0, "surface_area": 2310.0, "principal_moments": [202000.0, 202000.0, 375000.0], "n_faces": 134, "n_edges": 396, "n_vertices": 264}, "params": {"module": {"type": "float", "default": 1.25, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 22, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.7, "min": 2.7, "max": 16.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004540 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.25, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 22, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.7, \"min\": 2.7, \"max\": 16.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a3d_0839", "family": "compound", "tier": 1, "seed": 1234004541, "symmetry": "none", "op_count": 2, "ir_hash": "7191ff083c16a26b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 81700.0, "surface_area": 13500.0, "principal_moments": [20400000.0, 31999999.999999996, 37300000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 60, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 31.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 43.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 16.1, "min": 6.4, "max": 30.4, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 13.7, "min": 4.8, "max": 64.4, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 8.5, "min": 2.0, "max": 11.6, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004541 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 60, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 31.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 43.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 16.1, \"min\": 6.4, \"max\": 30.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 13.7, \"min\": 4.8, \"max\": 64.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 8.5, \"min\": 2.0, \"max\": 11.6, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6a40_0842", "family": "enclosure", "tier": 1, "seed": 1234004544, "symmetry": "none", "op_count": 2, "ir_hash": "e1f739c5f4c78f10", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 62400.0, "surface_area": 48700.0, "principal_moments": [59399999.99999999, 79700000.0, 102000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 90, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 43.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 81.2, "min": 32.5, "max": 162.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004544 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 90, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 43.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 81.2, \"min\": 32.5, \"max\": 162.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6a41_0843", "family": "plate", "tier": 1, "seed": 1234004545, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "1a2610b8f5e08c15", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7700.0, "surface_area": 3480.0, "principal_moments": [300000.0, 1600000.0, 1820000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 20.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004545 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 20.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a42_0844", "family": "bracket", "tier": 2, "seed": 1234004546, "symmetry": "none", "op_count": 1, "ir_hash": "fdf4261ef05f197c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6440.0, "surface_area": 4940.0, "principal_moments": [715000.0, 2490000.0, 2820000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 43.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.5, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004546 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 43.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a43_0845", "family": "revolved", "tier": 1, "seed": 1234004547, "symmetry": "none", "op_count": 1, "ir_hash": "5ce8c606d6148c39", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12600.0, "surface_area": 5580.0, "principal_moments": [1210000.0, 1960000.0, 1960000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 19.02, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 43.3, "min": 13.0, "max": 129.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 32.0, "min": 22.8, "max": 57.1, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.5, "min": 2.5, "max": 21.6, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004547 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 19.02, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 43.3, \"min\": 13.0, \"max\": 129.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 32.0, \"min\": 22.8, \"max\": 57.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.5, \"min\": 2.5, \"max\": 21.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a44_0846", "family": "bracket", "tier": 2, "seed": 1234004548, "symmetry": "none", "op_count": 1, "ir_hash": "091dd4eea015c1fe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38100.0, "surface_area": 15000.0, "principal_moments": [13299999.999999998, 27999999.999999996, 29799999.999999996], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 62.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.5, "min": 3.0, "max": 18.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004548 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 62.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.5, \"min\": 3.0, \"max\": 18.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6a45_0847", "family": "threaded", "tier": 1, "seed": 1234004549, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "9ef330afe6075a7d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 509.0, "surface_area": 646.0, "principal_moments": [1890.0, 21800.0, 21800.0], "n_faces": 230, "n_edges": 588, "n_vertices": 360}, "params": {"major_d": {"type": "float", "default": 6.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.0, "min": 0.5, "max": 2.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 22.3, "min": 8.9, "max": 44.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004549 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.5, \"max\": 2.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 22.3, \"min\": 8.9, \"max\": 44.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6a46_0848", "family": "threaded", "tier": 1, "seed": 1234004550, "symmetry": "none", "op_count": 1, "ir_hash": "1f62b88161bfbb26", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2740.0, "surface_area": 2050.0, "principal_moments": [28800.0, 417000.0, 417000.0], "n_faces": 290, "n_edges": 744, "n_vertices": 456}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 42.2, "min": 16.9, "max": 84.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004550 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 42.2, \"min\": 16.9, \"max\": 84.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6a47_0849", "family": "plate", "tier": 2, "seed": 1234004551, "symmetry": "radial", "op_count": 3, "ir_hash": "d3813171abcdb227", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 40300.0, "surface_area": 11900.0, "principal_moments": [7340000.0, 28599999.999999996, 35200000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 91.38, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 46.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 27.4, "min": 18.3, "max": 41.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004551 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 91.38, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 46.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 27.4, \"min\": 18.3, \"max\": 41.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08218981456606059)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a48_0850", "family": "revolved", "tier": 2, "seed": 1234004552, "symmetry": "none", "op_count": 2, "ir_hash": "66c9eb7a49704afe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6490.0, "surface_area": 2980.0, "principal_moments": [546000.0, 546000.0, 672000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 25, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 20.2, "min": 6.1, "max": 60.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 14.3, "min": 2.0, "max": 17.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 1.2, "min": 0.1, "max": 3.6, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004552 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 20.2, \"min\": 6.1, \"max\": 60.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 14.3, \"min\": 2.0, \"max\": 17.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.2, \"min\": 0.1, \"max\": 3.6, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a4a_0852", "family": "flanged", "tier": 2, "seed": 1234004554, "symmetry": "none", "op_count": 3, "ir_hash": "c88db199a2c88f9c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 174000.0, "surface_area": 37000.0, "principal_moments": [130000000.0, 180000000.0, 180000000.0], "n_faces": 44, "n_edges": 114, "n_vertices": 67}, "params": {"outer_d": {"type": "float", "default": 55, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 81.4, "min": 24.4, "max": 203.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 30.1, "min": 2.0, "max": 38.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 97.5, "min": 71.5, "max": 165.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.4, "min": 2.5, "max": 32.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 29.2, "min": 19.5, "max": 43.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004554 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 81.4, \"min\": 24.4, \"max\": 203.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 30.1, \"min\": 2.0, \"max\": 38.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 97.5, \"min\": 71.5, \"max\": 165.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.5, \"max\": 32.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 29.2, \"min\": 19.5, \"max\": 43.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"head_sides\"], p[\"head_r\"] * 2).extrude(p[\"head_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a4e_0856", "family": "flanged", "tier": 1, "seed": 1234004558, "symmetry": "none", "op_count": 2, "ir_hash": "05946f05fd6bf785", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 81000.0, "surface_area": 21000.0, "principal_moments": [34900000.0, 46699999.99999999, 46699999.99999999], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 40, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 60.0, "min": 18.0, "max": 150.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 18.2, "min": 2.0, "max": 28.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 77.4, "min": 52.0, "max": 120.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.4, "min": 1.9, "max": 24.0, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 23.2, "min": 15.5, "max": 34.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004558 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 60.0, \"min\": 18.0, \"max\": 150.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 18.2, \"min\": 2.0, \"max\": 28.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 77.4, \"min\": 52.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.4, \"min\": 1.9, \"max\": 24.0, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 23.2, \"min\": 15.5, \"max\": 34.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6a4f_0857", "family": "plate", "tier": 1, "seed": 1234004559, "symmetry": "none", "op_count": 2, "ir_hash": "0f632ff913a32dc6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2390.0, "surface_area": 2460.0, "principal_moments": [64500.0, 497000.0, 558000.0], "n_faces": 70, "n_edges": 204, "n_vertices": 136}, "params": {"plate_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 17.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.4, "min": 2.0, "max": 2.8, "step": 0.1, "group": "Holes", "label": "Square hole size (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004559 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 17.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 2.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(13.3, 4.7, p[\"hole_nx\"], p[\"hole_ny\"])\n .rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6a50_0858", "family": "block", "tier": 2, "seed": 1234004560, "symmetry": "none", "op_count": 3, "ir_hash": "b8d1d5467d89d47d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18200.0, "surface_area": 8890.0, "principal_moments": [1720000.0, 5070000.0, 6270000.0], "n_faces": 27, "n_edges": 72, "n_vertices": 48}, "params": {"block_w": {"type": "float", "default": 30, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 12.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 57.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.4, "min": 2.0, "max": 3.7, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "pocket_w": {"type": "float", "default": 15.2, "min": 7.6, "max": 24.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 7.0, "min": 3.5, "max": 10.2, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 23.0, "min": 9.2, "max": 49.1, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004560 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 12.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 57.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 3.7, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 15.2, \"min\": 7.6, \"max\": 24.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 7.0, \"min\": 3.5, \"max\": 10.2, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 23.0, \"min\": 9.2, \"max\": 49.1, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a51_0859", "family": "flanged", "tier": 2, "seed": 1234004561, "symmetry": "none", "op_count": 2, "ir_hash": "5a46411f636830bc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1150000.0, "surface_area": 131000.0, "principal_moments": [2870000000.0, 3730000000.0, 3730000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 98.8, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 139.8, "min": 41.9, "max": 349.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 37.3, "min": 2.0, "max": 69.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 209.9, "min": 128.4, "max": 296.4, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.8, "min": 2.6, "max": 55.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 63.0, "min": 42.0, "max": 94.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004561 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 98.8, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 139.8, \"min\": 41.9, \"max\": 349.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 37.3, \"min\": 2.0, \"max\": 69.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 209.9, \"min\": 128.4, \"max\": 296.4, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.8, \"min\": 2.6, \"max\": 55.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 63.0, \"min\": 42.0, \"max\": 94.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a52_0860", "family": "compound", "tier": 2, "seed": 1234004562, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "45560185f421f4cd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31200.0, "surface_area": 9070.0, "principal_moments": [7140000.0, 7140000.0, 7500000.0], "n_faces": 21, "n_edges": 54, "n_vertices": 36}, "params": {"base_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 24.09, "min": 14.5, "max": 38.5, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 15.8, "min": 6.3, "max": 39.5, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 24.4, "min": 12.2, "max": 35.6, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 25.4, "min": 7.6, "max": 63.5, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 14.3, "min": 2.0, "max": 17.6, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004562 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 24.09, \"min\": 14.5, \"max\": 38.5, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 15.8, \"min\": 6.3, \"max\": 39.5, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 24.4, \"min\": 12.2, \"max\": 35.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 25.4, \"min\": 7.6, \"max\": 63.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 14.3, \"min\": 2.0, \"max\": 17.6, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_r\"], p[\"base_r\"]) * 0.10098298132895267)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6a53_0861", "family": "plate", "tier": 1, "seed": 1234004563, "symmetry": "radial", "op_count": 2, "ir_hash": "7eacffc0b92ef2e9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29800.0, "surface_area": 12100.0, "principal_moments": [7820000.0, 20300000.0, 27999999.999999996], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 90, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 55.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 27.0, "min": 18.0, "max": 40.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004563 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 55.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 27.0, \"min\": 18.0, \"max\": 40.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a54_0862", "family": "revolved", "tier": 0, "seed": 1234004564, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "d4455a8de2e2771b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 107000.0, "surface_area": 25400.0, "principal_moments": [25699999.999999996, 116000000.0, 116000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 40, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 127.7, "min": 38.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004564 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 127.7, \"min\": 38.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6a55_0863", "family": "block", "tier": 2, "seed": 1234004565, "symmetry": "none", "op_count": 3, "ir_hash": "41a2233a1c1e6412", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 395000.0, "surface_area": 48000.0, "principal_moments": [327000000.0, 393000000.0, 542000000.0], "n_faces": 21, "n_edges": 57, "n_vertices": 36}, "params": {"block_w": {"type": "float", "default": 95.14, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 51.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 84.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "boss_d": {"type": "float", "default": 22.2, "min": 11.1, "max": 44.4, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 9.0, "min": 3.6, "max": 22.5, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 15.5, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004565 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 95.14, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 51.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 84.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"boss_d\": {\"type\": 'float', \"default\": 22.2, \"min\": 11.1, \"max\": 44.4, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 9.0, \"min\": 3.6, \"max\": 22.5, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 15.5, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 17.8\n _ssy = 19.2\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6a56_0864", "family": "gear", "tier": 1, "seed": 1234004566, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "d94f2286320f1ec8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3520.0, "surface_area": 2260.0, "principal_moments": [178000.0, 178000.0, 332000.0], "n_faces": 165, "n_edges": 489, "n_vertices": 326}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 27, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.4, "min": 2.6, "max": 16.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 4.5, "min": 2.0, "max": 14.7, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004566 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 27, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.6, \"max\": 16.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 4.5, \"min\": 2.0, \"max\": 14.7, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a57_0865", "family": "bracket", "tier": 1, "seed": 1234004567, "symmetry": "none", "op_count": 1, "ir_hash": "2c74aaea95fc4797", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 63700.0, "surface_area": 19500.0, "principal_moments": [30699999.999999996, 71700000.0, 73300000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 74.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004567 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 74.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a5a_0868", "family": "revolved", "tier": 2, "seed": 1234004570, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "c0e20c8a67f0e1d1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 47300.0, "surface_area": 13800.0, "principal_moments": [6680000.0, 35200000.0, 35200000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 30, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 90.0, "min": 27.0, "max": 270.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 15.2, "min": 2.0, "max": 21.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 1.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004570 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 90.0, \"min\": 27.0, \"max\": 270.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 15.2, \"min\": 2.0, \"max\": 21.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 1.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6a5d_0871", "family": "block", "tier": 1, "seed": 1234004573, "symmetry": "none", "op_count": 2, "ir_hash": "df479d0db6fe3c91", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 73100.0, "surface_area": 15000.0, "principal_moments": [20100000.0, 24299999.999999996, 36800000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 52.32, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 25.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 58.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 7.4, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004573 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 52.32, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 25.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 58.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 7.4, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a5e_0872", "family": "flanged", "tier": 1, "seed": 1234004574, "symmetry": "none", "op_count": 2, "ir_hash": "93653f8269a8ae87", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 347000.0, "surface_area": 58900.0, "principal_moments": [474000000.0, 474000000.0, 517000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 65.82, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 78.4, "min": 23.5, "max": 196.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 22.5, "min": 2.0, "max": 46.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 149.5, "min": 85.6, "max": 197.5, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.0, "min": 2.4, "max": 31.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 44.9, "min": 29.9, "max": 67.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004574 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65.82, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 78.4, \"min\": 23.5, \"max\": 196.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 22.5, \"min\": 2.0, \"max\": 46.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 149.5, \"min\": 85.6, \"max\": 197.5, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.4, \"max\": 31.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 44.9, \"min\": 29.9, \"max\": 67.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a5f_0873", "family": "compound", "tier": 1, "seed": 1234004575, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "0cd5b833b2836bfa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38000.0, "surface_area": 8180.0, "principal_moments": [5980000.0, 8610000.0, 11100000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 35.62, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 46.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 23.2, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 10.6, "min": 4.2, "max": 16.2, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 9.4, "min": 3.2, "max": 42.4, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 5.7, "min": 2.0, "max": 7.6, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004575 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35.62, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 46.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 23.2, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 10.6, \"min\": 4.2, \"max\": 16.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 9.4, \"min\": 3.2, \"max\": 42.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.0, \"max\": 7.6, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6a60_0874", "family": "block", "tier": 2, "seed": 1234004576, "symmetry": "none", "op_count": 3, "ir_hash": "f76a2d5514a17ebc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 88400.0, "surface_area": 16900.0, "principal_moments": [26199999.999999996, 33499999.999999996, 46499999.99999999], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 60.53, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 29.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 51.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 11.5, "min": 5.8, "max": 23.0, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 7.7, "min": 3.1, "max": 19.2, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 8.0, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004576 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 60.53, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 29.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 51.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 11.5, \"min\": 5.8, \"max\": 23.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 7.7, \"min\": 3.1, \"max\": 19.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a61_0875", "family": "flanged", "tier": 1, "seed": 1234004577, "symmetry": "radial", "op_count": 2, "ir_hash": "9b36eacbf3cedd60", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 786000.0, "surface_area": 106000.0, "principal_moments": [1960000000.0, 1960000000.0, 2560000000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 90, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 95.2, "min": 28.6, "max": 238.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 43.8, "min": 2.0, "max": 63.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 202.2, "min": 117.0, "max": 270.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 12.6, "min": 3.8, "max": 38.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 60.7, "min": 40.4, "max": 91.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004577 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 95.2, \"min\": 28.6, \"max\": 238.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 43.8, \"min\": 2.0, \"max\": 63.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 202.2, \"min\": 117.0, \"max\": 270.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 12.6, \"min\": 3.8, \"max\": 38.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 60.7, \"min\": 40.4, \"max\": 91.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a62_0876", "family": "bracket", "tier": 2, "seed": 1234004578, "symmetry": "none", "op_count": 1, "ir_hash": "10692780a71f38e5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 46900.0, "surface_area": 24900.0, "principal_moments": [19400000.0, 89500000.0, 90300000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 70.43, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 75.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 52.52, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 70.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004578 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70.43, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 75.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 52.52, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 70.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6a63_0877", "family": "profiled", "tier": 1, "seed": 1234004579, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "36329f9b558a4236", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35700.0, "surface_area": 6670.0, "principal_moments": [3350000.0, 12799999.999999998, 12799999.999999998], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"circ_r": {"type": "float", "default": 15, "min": 7.5, "max": 30.0, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 61.1, "min": 18.3, "max": 183.3, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004579 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 15, \"min\": 7.5, \"max\": 30.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 61.1, \"min\": 18.3, \"max\": 183.3, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a64_0878", "family": "bracket", "tier": 2, "seed": 1234004580, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "a3bd2c3daca4b33a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26800.0, "surface_area": 12400.0, "principal_moments": [8880000.0, 11599999.999999998, 13599999.999999998], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 36.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 49.54, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.7, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004580 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 36.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 49.54, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.7, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a65_0879", "family": "revolved", "tier": 1, "seed": 1234004581, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "51aa776644baea8e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 184000.0, "surface_area": 35900.0, "principal_moments": [65899999.99999999, 270000000.0, 270000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 48.85, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 147.3, "min": 44.2, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004581 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 48.85, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 147.3, \"min\": 44.2, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a66_0880", "family": "compound", "tier": 1, "seed": 1234004582, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "0f2112bea5f892f5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 84500.0, "surface_area": 13500.0, "principal_moments": [26299999.999999996, 27299999.999999996, 29999999.999999996], "n_faces": 24, "n_edges": 63, "n_vertices": 41}, "params": {"block_w": {"type": "float", "default": 46.44, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 40.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 45.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 5.5, "min": 2.8, "max": 9.1, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 8.1, "min": 2.4, "max": 28.6, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 4.8, "min": 2.0, "max": 6.9, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004582 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 46.44, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 40.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 45.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.8, \"max\": 9.1, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 8.1, \"min\": 2.4, \"max\": 28.6, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 4.8, \"min\": 2.0, \"max\": 6.9, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a68_0882", "family": "bracket", "tier": 2, "seed": 1234004584, "symmetry": "none", "op_count": 1, "ir_hash": "7721abc50ee872d1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14100.0, "surface_area": 8430.0, "principal_moments": [2640000.0, 11399999.999999998, 12799999.999999998], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 82.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 55.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 24.15, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 9.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.8, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004584 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 82.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 55.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 24.15, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 9.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6a69_0883", "family": "block", "tier": 1, "seed": 1234004585, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "44ea8f751ba7129a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 109000.0, "surface_area": 17400.0, "principal_moments": [33700000.0, 47699999.99999999, 59399999.99999999], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 34.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 63.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004585 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 34.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 63.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 18.8\n _ssy = 20.1\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6a6a_0884", "family": "block", "tier": 1, "seed": 1234004586, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "d835c5f7be0054c3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 168000.0, "surface_area": 20500.0, "principal_moments": [69100000.0, 98299999.99999999, 104000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 69.05, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 51.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 47.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 11.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004586 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 69.05, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 51.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 47.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 11.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a6c_0886", "family": "flanged", "tier": 1, "seed": 1234004588, "symmetry": "none", "op_count": 2, "ir_hash": "7ae67d28ee34b25d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 56400.0, "surface_area": 16000.0, "principal_moments": [18000000.0, 22899999.999999996, 22899999.999999996], "n_faces": 17, "n_edges": 60, "n_vertices": 40}, "params": {"outer_d": {"type": "float", "default": 37.16, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 49.8, "min": 14.9, "max": 124.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 13.0, "min": 2.0, "max": 26.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 67.5, "min": 48.3, "max": 111.5, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.8, "min": 1.7, "max": 19.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 20.2, "min": 13.5, "max": 30.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004588 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 37.16, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 49.8, \"min\": 14.9, \"max\": 124.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 13.0, \"min\": 2.0, \"max\": 26.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 67.5, \"min\": 48.3, \"max\": 111.5, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.8, \"min\": 1.7, \"max\": 19.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 20.2, \"min\": 13.5, \"max\": 30.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a6d_0887", "family": "bracket", "tier": 1, "seed": 1234004589, "symmetry": "none", "op_count": 1, "ir_hash": "cb774cb618abfa3b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21600.0, "surface_area": 15600.0, "principal_moments": [8960000.0, 17400000.0, 21400000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 75.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 47.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 60.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004589 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 47.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 60.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.04756541360473409)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a72_0892", "family": "revolved", "tier": 2, "seed": 1234004594, "symmetry": "none", "op_count": 1, "ir_hash": "bd39a3128eb9f2c1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 135000.0, "surface_area": 20800.0, "principal_moments": [73700000.0, 73700000.0, 86700000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 65, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 52.0, "min": 15.6, "max": 156.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 30.5, "min": 2.0, "max": 45.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004594 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 52.0, \"min\": 15.6, \"max\": 156.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 30.5, \"min\": 2.0, \"max\": 45.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a73_0893", "family": "compound", "tier": 1, "seed": 1234004595, "symmetry": "none", "op_count": 3, "ir_hash": "fa1fd4dbe36925ff", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 57400.0, "surface_area": 10300.0, "principal_moments": [10400000.0, 18600000.0, 20900000.0], "n_faces": 14, "n_edges": 34, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 36.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 28.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 6.0, "min": 2.4, "max": 13.0, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 5.2, "min": 1.5, "max": 18.0, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 2.7, "min": 2.0, "max": 4.3, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004595 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 36.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 28.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.4, \"max\": 13.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 5.2, \"min\": 1.5, \"max\": 18.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 2.7, \"min\": 2.0, \"max\": 4.3, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6a77_0897", "family": "enclosure", "tier": 1, "seed": 1234004599, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "6c152176e6f752b5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35500.0, "surface_area": 26800.0, "principal_moments": [17500000.0, 25699999.999999996, 33299999.999999996], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 71.27, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 29.9, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 60.2, "min": 24.1, "max": 120.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.7, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004599 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 71.27, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 29.9, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 60.2, \"min\": 24.1, \"max\": 120.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.7, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6a78_0898", "family": "block", "tier": 2, "seed": 1234004600, "symmetry": "radial", "op_count": 3, "ir_hash": "71510197215d642d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 144000.0, "surface_area": 24800.0, "principal_moments": [75600000.0, 81100000.0, 134000000.0], "n_faces": 21, "n_edges": 54, "n_vertices": 36}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 29.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 78.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 21.0, "min": 14.0, "max": 31.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "pocket_w": {"type": "float", "default": 34.6, "min": 17.3, "max": 56.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 16.7, "min": 8.3, "max": 23.8, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 28.6, "min": 11.4, "max": 66.6, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004600 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 29.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 78.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 21.0, \"min\": 14.0, \"max\": 31.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"pocket_w\": {\"type\": 'float', \"default\": 34.6, \"min\": 17.3, \"max\": 56.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 16.7, \"min\": 8.3, \"max\": 23.8, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 28.6, \"min\": 11.4, \"max\": 66.6, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6a79_0899", "family": "ribbed", "tier": 1, "seed": 1234004601, "symmetry": "none", "op_count": 2, "ir_hash": "784b05dec5117785", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 47200.0, "surface_area": 17300.0, "principal_moments": [12299999.999999998, 27899999.999999996, 37000000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 49.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.5, "min": 6.6, "max": 33.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.4, "min": 1.0, "max": 6.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004601 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 49.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.5, \"min\": 6.6, \"max\": 33.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.4, \"min\": 1.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6a7b_0901", "family": "block", "tier": 1, "seed": 1234004603, "symmetry": "none", "op_count": 2, "ir_hash": "51fcaef8fde9f51e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 120000.0, "surface_area": 19200.0, "principal_moments": [38300000.0, 68200000.0, 90000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 28.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 77.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004603 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 28.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 77.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6a7c_0902", "family": "profiled", "tier": 2, "seed": 1234004604, "symmetry": "none", "op_count": 1, "ir_hash": "fc992943caf898c5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4110.0, "surface_area": 3280.0, "principal_moments": [63200.0, 1620000.0, 1620000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 10, "min": 5.0, "max": 20.0, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 68.0, "min": 20.4, "max": 204.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 4.8, "min": 2.0, "max": 8.0, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004604 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 10, \"min\": 5.0, \"max\": 20.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 68.0, \"min\": 20.4, \"max\": 204.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 4.8, \"min\": 2.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a7d_0903", "family": "flanged", "tier": 1, "seed": 1234004605, "symmetry": "none", "op_count": 2, "ir_hash": "3f055c945f0c5311", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 207000.0, "surface_area": 42200.0, "principal_moments": [182000000.0, 209000000.0, 209000000.0], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 65, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 76.0, "min": 22.8, "max": 190.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 35.2, "min": 2.0, "max": 45.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 108.9, "min": 84.5, "max": 195.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.3, "min": 1.6, "max": 30.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 32.7, "min": 21.8, "max": 49.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004605 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 76.0, \"min\": 22.8, \"max\": 190.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 35.2, \"min\": 2.0, \"max\": 45.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 108.9, \"min\": 84.5, \"max\": 195.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.3, \"min\": 1.6, \"max\": 30.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 32.7, \"min\": 21.8, \"max\": 49.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6a7e_0904", "family": "threaded", "tier": 2, "seed": 1234004606, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "2fe92a011a88eed4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4930.0, "surface_area": 3030.0, "principal_moments": [251000.0, 403000.0, 403000.0], "n_faces": 143, "n_edges": 515, "n_vertices": 374}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 26.1, "min": 10.4, "max": 52.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004606 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 26.1, \"min\": 10.4, \"max\": 52.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6a7f_0905", "family": "ribbed", "tier": 2, "seed": 1234004607, "symmetry": "none", "op_count": 2, "ir_hash": "28fe8aaf8f4d80f8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25500.0, "surface_area": 10500.0, "principal_moments": [4530000.0, 7330000.0, 10500000.0], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 41.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 11.6, "min": 4.6, "max": 23.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.8, "min": 1.0, "max": 14.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004607 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 41.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 11.6, \"min\": 4.6, \"max\": 23.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.8, \"min\": 1.0, \"max\": 14.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a81_0907", "family": "compound", "tier": 2, "seed": 1234004609, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "aa476d6189c30b5d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29100.0, "surface_area": 9780.0, "principal_moments": [8180000.0, 11200000.0, 11599999.999999998], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"base_w": {"type": "float", "default": 60, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 46.0, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 10.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 9.8, "min": 3.9, "max": 23.0, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 49.6, "min": 14.9, "max": 148.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 10.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004609 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 60, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 46.0, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 10.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 9.8, \"min\": 3.9, \"max\": 23.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 49.6, \"min\": 14.9, \"max\": 148.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 10.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6a82_0908", "family": "block", "tier": 1, "seed": 1234004610, "symmetry": "none", "op_count": 2, "ir_hash": "5ca2e6c70d77d3db", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 60000.0, "surface_area": 15000.0, "principal_moments": [11599999.999999998, 28599999.999999996, 36600000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 45, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 19.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 73.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004610 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 19.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 73.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6a83_0909", "family": "threaded", "tier": 1, "seed": 1234004611, "symmetry": "none", "op_count": 1, "ir_hash": "1eddd7e48999bf3c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2420.0, "surface_area": 1830.0, "principal_moments": [25400.0, 290000.0, 290000.0], "n_faces": 255, "n_edges": 655, "n_vertices": 402}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 37.3, "min": 14.9, "max": 74.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004611 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 37.3, \"min\": 14.9, \"max\": 74.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6a84_0910", "family": "enclosure", "tier": 2, "seed": 1234004612, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "fe0593484baa2d27", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 69100.0, "surface_area": 63800.0, "principal_moments": [97899999.99999999, 146000000.0, 203000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 120.0, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 89.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 52.9, "min": 21.2, "max": 105.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004612 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 120.0, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 89.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 52.9, \"min\": 21.2, \"max\": 105.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a85_0911", "family": "compound", "tier": 1, "seed": 1234004613, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "99d7ea495c59a96c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 70600.0, "surface_area": 13200.0, "principal_moments": [20700000.0, 22000000.0, 23199999.999999996], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 40, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 40.7, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 43.2, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 15.6, "min": 6.2, "max": 28.5, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 24.9, "min": 4.7, "max": 62.4, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 9.4, "min": 2.0, "max": 11.2, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004613 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 40.7, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 43.2, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 15.6, \"min\": 6.2, \"max\": 28.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 24.9, \"min\": 4.7, \"max\": 62.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 9.4, \"min\": 2.0, \"max\": 11.2, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a87_0913", "family": "compound", "tier": 1, "seed": 1234004615, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "911189f2c65e0d55", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 203000.0, "surface_area": 29200.0, "principal_moments": [84700000.0, 163000000.0, 171000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 80.0, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 52.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 47.7, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 45.1, "min": 18.0, "max": 72.2, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 37.7, "min": 15.1, "max": 60.3, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 8.3, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004615 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80.0, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 52.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 47.7, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 45.1, \"min\": 18.0, \"max\": 72.2, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 37.7, \"min\": 15.1, \"max\": 60.3, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 8.3, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6a89_0915", "family": "plate", "tier": 1, "seed": 1234004617, "symmetry": "none", "op_count": 2, "ir_hash": "92f285ae131c24c0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14400.0, "surface_area": 5080.0, "principal_moments": [838000.0, 4460000.0, 5060000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 24.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.3, "min": 2.0, "max": 2.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004617 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 24.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.3, \"min\": 2.0, \"max\": 2.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 15.0\n _ssy = 15.6\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6a8a_0916", "family": "threaded", "tier": 2, "seed": 1234004618, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "257e5f453c72703b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21500.0, "surface_area": 6130.0, "principal_moments": [2310000.0, 2990000.0, 3000000.0], "n_faces": 70, "n_edges": 172, "n_vertices": 104}, "params": {"thread_size": {"type": "enum", "default": "1 1/4", "choices": ["1/4", "5/16", "3/8", "1/2", "5/8", "3/4", "7/8", "1", "1 1/4", "1 1/2"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 32.6, "min": 13.0, "max": 65.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004618 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '1 1/4', \"choices\": ['1/4', '5/16', '3/8', '1/2', '5/8', '3/4', '7/8', '1', '1 1/4', '1 1/2'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 32.6, \"min\": 13.0, \"max\": 65.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.AcmeThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a8b_0917", "family": "revolved", "tier": 1, "seed": 1234004619, "symmetry": "radial", "op_count": 1, "ir_hash": "54d4d23b55840bbf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 417000.0, "surface_area": 40700.0, "principal_moments": [319000000.0, 552000000.0, 552000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 74.56, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 106.3, "min": 31.9, "max": 318.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 23.7, "min": 2.0, "max": 52.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004619 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 74.56, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 106.3, \"min\": 31.9, \"max\": 318.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 23.7, \"min\": 2.0, \"max\": 52.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a8c_0918", "family": "flanged", "tier": 1, "seed": 1234004620, "symmetry": "none", "op_count": 2, "ir_hash": "99e73572c94b2c04", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 48200.0, "surface_area": 17000.0, "principal_moments": [20600000.0, 20600000.0, 23799999.999999996], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 33.26, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 43.7, "min": 13.1, "max": 109.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.7, "min": 2.0, "max": 23.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 78.1, "min": 43.2, "max": 99.8, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.4, "min": 1.6, "max": 17.5, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 23.4, "min": 15.6, "max": 35.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004620 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 33.26, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 43.7, \"min\": 13.1, \"max\": 109.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.7, \"min\": 2.0, \"max\": 23.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 78.1, \"min\": 43.2, \"max\": 99.8, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.4, \"min\": 1.6, \"max\": 17.5, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 23.4, \"min\": 15.6, \"max\": 35.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6a8d_0919", "family": "threaded", "tier": 1, "seed": 1234004621, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "05813d03d12a008f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21900.0, "surface_area": 8480.0, "principal_moments": [2870000.0, 5250000.0, 5250000.0], "n_faces": 356, "n_edges": 1024, "n_vertices": 670}, "params": {"major_d": {"type": "float", "default": 16.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.0, "min": 1.0, "max": 4.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 45.8, "min": 18.3, "max": 91.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004621 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 4.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 45.8, \"min\": 18.3, \"max\": 91.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6a8e_0920", "family": "enclosure", "tier": 1, "seed": 1234004622, "symmetry": "none", "op_count": 2, "ir_hash": "b0625828b9332b32", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6930.0, "surface_area": 6520.0, "principal_moments": [849000.0, 1150000.0, 1560000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 35, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 15.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 31.0, "min": 12.4, "max": 62.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004622 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 35, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 15.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 31.0, \"min\": 12.4, \"max\": 62.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6a8f_0921", "family": "compound", "tier": 2, "seed": 1234004623, "symmetry": "mirror_x", "op_count": 5, "ir_hash": "b61eddcd93721c86", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 72700.0, "surface_area": 15500.0, "principal_moments": [18000000.0, 25399999.999999996, 32299999.999999996], "n_faces": 21, "n_edges": 49, "n_vertices": 31}, "params": {"block_w": {"type": "float", "default": 56.22, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 45.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 30.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 9.9, "min": 4.0, "max": 13.5, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 10.4, "min": 2.5, "max": 29.7, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 5.3, "min": 2.0, "max": 7.1, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 10.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004623 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 56.22, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 45.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 30.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 9.9, \"min\": 4.0, \"max\": 13.5, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 10.4, \"min\": 2.5, \"max\": 29.7, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 7.1, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 10.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6a90_0922", "family": "threaded", "tier": 1, "seed": 1234004624, "symmetry": "none", "op_count": 1, "ir_hash": "736299bc59c611ae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1920.0, "surface_area": 1780.0, "principal_moments": [12900.0, 352000.0, 352000.0], "n_faces": 380, "n_edges": 978, "n_vertices": 600}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 46.6, "min": 18.6, "max": 93.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004624 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 46.6, \"min\": 18.6, \"max\": 93.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6a91_0923", "family": "gear", "tier": 0, "seed": 1234004625, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "7bdd27439b5ada10", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2910.0, "surface_area": 1900.0, "principal_moments": [123000.0, 123000.0, 229000.0], "n_faces": 152, "n_edges": 450, "n_vertices": 300}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 25, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.0, "min": 2.4, "max": 15.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004625 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 25, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.4, \"max\": 15.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a92_0924", "family": "bracket", "tier": 1, "seed": 1234004626, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "a4968fb3b05edf9a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14500.0, "surface_area": 8810.0, "principal_moments": [4930000.0, 6870000.0, 10300000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 52.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004626 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 52.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a93_0925", "family": "bracket", "tier": 2, "seed": 1234004627, "symmetry": "none", "op_count": 1, "ir_hash": "16e8e3f3adc66819", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31800.0, "surface_area": 14800.0, "principal_moments": [13999999.999999998, 16499999.999999998, 18100000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 49.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 48.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.4, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004627 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 49.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 48.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.4, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6a94_0926", "family": "threaded", "tier": 2, "seed": 1234004628, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ae42731ed83ae457", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 244.0, "surface_area": 375.0, "principal_moments": [634.0, 5020.0, 5020.0], "n_faces": 200, "n_edges": 510, "n_vertices": 312}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 15.3, "min": 6.1, "max": 30.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004628 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 15.3, \"min\": 6.1, \"max\": 30.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a95_0927", "family": "flanged", "tier": 2, "seed": 1234004629, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "60a1ea436f8531b6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 227000.0, "surface_area": 46000.0, "principal_moments": [230000000.0, 230000000.0, 344000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 60, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 51.9, "min": 15.6, "max": 129.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 18.9, "min": 2.0, "max": 42.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 140.9, "min": 78.0, "max": 180.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.5, "min": 2.2, "max": 20.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 42.3, "min": 28.2, "max": 63.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004629 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 51.9, \"min\": 15.6, \"max\": 129.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 18.9, \"min\": 2.0, \"max\": 42.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 140.9, \"min\": 78.0, \"max\": 180.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.5, \"min\": 2.2, \"max\": 20.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 42.3, \"min\": 28.2, \"max\": 63.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6a96_0928", "family": "profiled", "tier": 2, "seed": 1234004630, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "23715fd7b582f67f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42700.0, "surface_area": 19000.0, "principal_moments": [2720000.0, 94699999.99999999, 94699999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 20.6, "min": 10.3, "max": 41.2, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 192.0, "min": 57.6, "max": 576.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004630 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 20.6, \"min\": 10.3, \"max\": 41.2, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 192.0, \"min\": 57.6, \"max\": 576.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6a97_0929", "family": "bracket", "tier": 1, "seed": 1234004631, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "05843e6f4bc98fca", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 40000.0, "surface_area": 22000.0, "principal_moments": [15899999.999999998, 67500000.0, 70200000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 79.15, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 61.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 52.82, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 56.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004631 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 79.15, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 61.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 52.82, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 56.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6a98_0930", "family": "plate", "tier": 2, "seed": 1234004632, "symmetry": "none", "op_count": 3, "ir_hash": "0c125406ab7035eb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10800.0, "surface_area": 5880.0, "principal_moments": [1080000.0, 3790000.0, 4830000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"plate_w": {"type": "float", "default": 65.04, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 34.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004632 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 65.04, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 34.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(17.3, 13.8, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.055001856297831365)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6a99_0931", "family": "flanged", "tier": 2, "seed": 1234004633, "symmetry": "none", "op_count": 2, "ir_hash": "a50418220f3d6d91", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 322000.0, "surface_area": 55600.0, "principal_moments": [411000000.0, 411000000.0, 660000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 80.61, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 52.8, "min": 15.8, "max": 132.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 42.3, "min": 2.0, "max": 56.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 149.0, "min": 104.8, "max": 241.8, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 10.4, "min": 3.1, "max": 21.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 44.7, "min": 29.8, "max": 67.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004633 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 80.61, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 52.8, \"min\": 15.8, \"max\": 132.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 42.3, \"min\": 2.0, \"max\": 56.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 149.0, \"min\": 104.8, \"max\": 241.8, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 10.4, \"min\": 3.1, \"max\": 21.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 44.7, \"min\": 29.8, \"max\": 67.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6a9a_0932", "family": "threaded", "tier": 1, "seed": 1234004634, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "4df3b2b7536d160d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7690.0, "surface_area": 4530.0, "principal_moments": [391000.0, 1250000.0, 1250000.0], "n_faces": 223, "n_edges": 815, "n_vertices": 594}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 40.7, "min": 16.3, "max": 81.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004634 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 40.7, \"min\": 16.3, \"max\": 81.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6a9b_0933", "family": "profiled", "tier": 1, "seed": 1234004635, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "357ae9376b371840", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15400.0, "surface_area": 9290.0, "principal_moments": [530000.0, 15099999.999999998, 15099999.999999998], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 15.17, "min": 7.6, "max": 30.3, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 127.4, "min": 38.2, "max": 382.2, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004635 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 15.17, \"min\": 7.6, \"max\": 30.3, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 127.4, \"min\": 38.2, \"max\": 382.2, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6a9d_0935", "family": "revolved", "tier": 2, "seed": 1234004637, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3869334b63d0d470", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1790000.0, "surface_area": 163000.0, "principal_moments": [3970000000.0, 15600000000.0, 15600000000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 79.47, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 298.0, "min": 89.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 46.2, "min": 2.0, "max": 55.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 150.0, "min": 95.4, "max": 238.4, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 64.1, "min": 19.2, "max": 149.0, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.1, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004637 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 79.47, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 298.0, \"min\": 89.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 46.2, \"min\": 2.0, \"max\": 55.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 150.0, \"min\": 95.4, \"max\": 238.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 64.1, \"min\": 19.2, \"max\": 149.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.1, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6a9f_0937", "family": "gear", "tier": 2, "seed": 1234004639, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ce80ec7b36d3b0ab", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4740.0, "surface_area": 2570.0, "principal_moments": [240000.0, 240000.0, 411000.0], "n_faces": 139, "n_edges": 411, "n_vertices": 274}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 17, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 9.4, "min": 3.8, "max": 23.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": 0.1, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.36, "min": 0.0, "max": 0.75, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 3.3, "min": 2.0, "max": 13.0, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004639 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 17, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 9.4, \"min\": 3.8, \"max\": 23.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.1, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.36, \"min\": 0.0, \"max\": 0.75, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 3.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6aa0_0938", "family": "revolved", "tier": 2, "seed": 1234004640, "symmetry": "none", "op_count": 2, "ir_hash": "26d11818966cbdc2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 132000.0, "surface_area": 25000.0, "principal_moments": [52699999.99999999, 122000000.0, 122000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 50, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 93.1, "min": 27.9, "max": 279.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 26.3, "min": 2.0, "max": 35.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.5, "min": 0.1, "max": 1.5, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004640 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 93.1, \"min\": 27.9, \"max\": 279.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 26.3, \"min\": 2.0, \"max\": 35.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.5, \"min\": 0.1, \"max\": 1.5, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6aa4_0942", "family": "plate", "tier": 1, "seed": 1234004644, "symmetry": "radial", "op_count": 2, "ir_hash": "3f4390d35971db45", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 46100.0, "surface_area": 12600.0, "principal_moments": [8890000.0, 38800000.0, 46899999.99999999], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 100, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 46.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 30.0, "min": 20.0, "max": 45.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004644 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 100, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 46.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 30.0, \"min\": 20.0, \"max\": 45.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6aa5_0943", "family": "flanged", "tier": 1, "seed": 1234004645, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "0b9beb0425939667", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 63800.0, "surface_area": 22500.0, "principal_moments": [32399999.999999996, 32399999.999999996, 49099999.99999999], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 44.49, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 35.7, "min": 10.7, "max": 89.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 24.4, "min": 2.0, "max": 31.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 97.3, "min": 57.8, "max": 133.5, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.5, "min": 1.3, "max": 14.3, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 29.2, "min": 19.5, "max": 43.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004645 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 44.49, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 35.7, \"min\": 10.7, \"max\": 89.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 24.4, \"min\": 2.0, \"max\": 31.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 97.3, \"min\": 57.8, \"max\": 133.5, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.3, \"max\": 14.3, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 29.2, \"min\": 19.5, \"max\": 43.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6aa7_0945", "family": "revolved", "tier": 2, "seed": 1234004647, "symmetry": "radial", "op_count": 2, "ir_hash": "341e9e4a05d5c0a4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 72600.0, "surface_area": 18400.0, "principal_moments": [21200000.0, 61499999.99999999, 61499999.99999999], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 30.2, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 86.5, "min": 25.9, "max": 259.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 15.5, "min": 2.0, "max": 21.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 58.5, "min": 36.2, "max": 90.6, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 13.8, "min": 4.1, "max": 43.2, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.2, "min": 0.1, "max": 3.6, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004647 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30.2, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 86.5, \"min\": 25.9, \"max\": 259.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 15.5, \"min\": 2.0, \"max\": 21.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 58.5, \"min\": 36.2, \"max\": 90.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 13.8, \"min\": 4.1, \"max\": 43.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.2, \"min\": 0.1, \"max\": 3.6, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cskHole(p[\"hole_d\"], p[\"hole_d\"] * 2, p[\"cs_angle\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.1059982634221816)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6aaa_0948", "family": "block", "tier": 2, "seed": 1234004650, "symmetry": "none", "op_count": 3, "ir_hash": "ec84c341bedc2be1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25100.0, "surface_area": 7330.0, "principal_moments": [2850000.0, 4780000.0, 6240000.0], "n_faces": 42, "n_edges": 120, "n_vertices": 80}, "params": {"block_w": {"type": "float", "default": 45, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 18.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 32.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 5.4, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004650 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 18.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 32.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 5.4, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.05308582438092925)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6aab_0949", "family": "revolved", "tier": 0, "seed": 1234004651, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "d743649fdb8b9f2e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 185000.0, "surface_area": 38800.0, "principal_moments": [56299999.99999999, 365000000.0, 365000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 45, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 174.9, "min": 52.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004651 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 174.9, \"min\": 52.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6aac_0950", "family": "ribbed", "tier": 1, "seed": 1234004652, "symmetry": "none", "op_count": 2, "ir_hash": "135d0de4b997ec98", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8750.0, "surface_area": 5070.0, "principal_moments": [847000.0, 1130000.0, 1340000.0], "n_faces": 21, "n_edges": 48, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 31.61, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 27.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 15.3, "min": 6.1, "max": 30.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.0, "min": 1.0, "max": 7.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004652 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 31.61, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 27.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 15.3, \"min\": 6.1, \"max\": 30.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 7.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6aad_0951", "family": "plate", "tier": 1, "seed": 1234004653, "symmetry": "radial", "op_count": 2, "ir_hash": "63b5e0af9b26edd1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6050.0, "surface_area": 3840.0, "principal_moments": [419000.0, 1310000.0, 1710000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 49.21, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 29.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 14.8, "min": 9.8, "max": 22.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004653 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 49.21, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 29.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 14.8, \"min\": 9.8, \"max\": 22.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6aae_0952", "family": "block", "tier": 2, "seed": 1234004654, "symmetry": "radial", "op_count": 3, "ir_hash": "e8ecd7ca4b8f0504", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 402000.0, "surface_area": 56100.0, "principal_moments": [441000000.0, 456000000.0, 676000000.0], "n_faces": 31, "n_edges": 102, "n_vertices": 68}, "params": {"block_w": {"type": "float", "default": 94.32, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 53.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 28.3, "min": 18.9, "max": 42.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "pocket_w": {"type": "float", "default": 57.4, "min": 28.7, "max": 75.5, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 30.7, "min": 15.3, "max": 42.8, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 54.9, "min": 22.0, "max": 85.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004654 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 94.32, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 53.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 28.3, \"min\": 18.9, \"max\": 42.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"pocket_w\": {\"type\": 'float', \"default\": 57.4, \"min\": 28.7, \"max\": 75.5, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 30.7, \"min\": 15.3, \"max\": 42.8, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 54.9, \"min\": 22.0, \"max\": 85.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6aaf_0953", "family": "compound", "tier": 1, "seed": 1234004655, "symmetry": "none", "op_count": 3, "ir_hash": "8bb9b09ee1586354", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 83900.0, "surface_area": 14900.0, "principal_moments": [25499999.999999996, 26099999.999999996, 35100000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 49.86, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 46.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 34.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 44.3, "min": 17.7, "max": 70.9, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 22.9, "min": 9.2, "max": 36.6, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.0, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004655 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 49.86, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 46.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 34.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 44.3, \"min\": 17.7, \"max\": 70.9, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 22.9, \"min\": 9.2, \"max\": 36.6, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.0, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6ab1_0955", "family": "bracket", "tier": 1, "seed": 1234004657, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "511f082dc2e60847", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23200.0, "surface_area": 11400.0, "principal_moments": [5330000.0, 33099999.999999996, 35900000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 69.89, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 72.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25.61, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 48.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004657 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 69.89, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 72.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25.61, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 48.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6ab2_0956", "family": "plate", "tier": 1, "seed": 1234004658, "symmetry": "none", "op_count": 2, "ir_hash": "1d75e391059472f3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41300.0, "surface_area": 10500.0, "principal_moments": [6430000.0, 24499999.999999996, 29899999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 83.87, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 41.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 9.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004658 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 83.87, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 41.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 9.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6ab3_0957", "family": "revolved", "tier": 1, "seed": 1234004659, "symmetry": "none", "op_count": 1, "ir_hash": "398534eb083890a7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 105000.0, "surface_area": 21200.0, "principal_moments": [39600000.0, 59999999.99999999, 59999999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 50.07, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 80.2, "min": 24.1, "max": 240.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004659 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50.07, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 80.2, \"min\": 24.1, \"max\": 240.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6ab4_0958", "family": "block", "tier": 1, "seed": 1234004660, "symmetry": "radial", "op_count": 2, "ir_hash": "791a87ee2f31d6a1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 249000.0, "surface_area": 27100.0, "principal_moments": [157000000.0, 169000000.0, 256000000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 80.18, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 40.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 76.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.1, "min": 16.0, "max": 36.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004660 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80.18, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 40.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 76.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.1, \"min\": 16.0, \"max\": 36.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6ab7_0961", "family": "threaded", "tier": 1, "seed": 1234004663, "symmetry": "none", "op_count": 1, "ir_hash": "3c753188c62f37e9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 366.0, "surface_area": 545.0, "principal_moments": [2960.0, 5840.0, 5840.0], "n_faces": 143, "n_edges": 387, "n_vertices": 246}, "params": {"major_d": {"type": "float", "default": 4.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.7, "min": 0.35, "max": 1.4, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 12.0, "min": 5.0, "max": 24.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004663 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.35, \"max\": 1.4, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 12.0, \"min\": 5.0, \"max\": 24.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6ab8_0962", "family": "revolved", "tier": 1, "seed": 1234004664, "symmetry": "none", "op_count": 2, "ir_hash": "a963cdba9eb50ae0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 703000.0, "surface_area": 63000.0, "principal_moments": [507000000.0, 2300000000.0, 2300000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 72.68, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 186.8, "min": 56.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 22.2, "min": 2.0, "max": 50.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.1, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004664 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 72.68, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 186.8, \"min\": 56.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 22.2, \"min\": 2.0, \"max\": 50.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.1, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6abb_0965", "family": "compound", "tier": 2, "seed": 1234004667, "symmetry": "none", "op_count": 3, "ir_hash": "e6b03934940fe815", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6810.0, "surface_area": 3110.0, "principal_moments": [453000.0, 643000.0, 643000.0], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 13.46, "min": 8.1, "max": 21.5, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 12.1, "min": 4.8, "max": 30.2, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 10.6, "min": 5.3, "max": 18.7, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 20.9, "min": 6.3, "max": 52.2, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 5.3, "min": 2.0, "max": 7.6, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004667 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 13.46, \"min\": 8.1, \"max\": 21.5, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 12.1, \"min\": 4.8, \"max\": 30.2, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 10.6, \"min\": 5.3, \"max\": 18.7, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 20.9, \"min\": 6.3, \"max\": 52.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 7.6, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_r\"], p[\"base_r\"]) * 0.05965997285509247)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6abc_0966", "family": "ribbed", "tier": 2, "seed": 1234004668, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "ca57fe201954200a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25000.0, "surface_area": 14900.0, "principal_moments": [7650000.0, 19400000.0, 25899999.999999996], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 85.39, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 54.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 15.3, "min": 6.1, "max": 30.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.1, "min": 1.0, "max": 7.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004668 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 85.39, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 54.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 15.3, \"min\": 6.1, \"max\": 30.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.1, \"min\": 1.0, \"max\": 7.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6abd_0967", "family": "plate", "tier": 1, "seed": 1234004669, "symmetry": "radial", "op_count": 2, "ir_hash": "cc7ee843ec087a98", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61300.0, "surface_area": 16100.0, "principal_moments": [14199999.999999998, 74000000.0, 87200000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"plate_w": {"type": "float", "default": 120.0, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 51.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 36.0, "min": 24.0, "max": 54.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004669 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 120.0, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 51.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 36.0, \"min\": 24.0, \"max\": 54.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6abf_0969", "family": "bracket", "tier": 1, "seed": 1234004671, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "3819ad385a5e739d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38000.0, "surface_area": 12800.0, "principal_moments": [12999999.999999998, 44100000.0, 51399999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 77.74, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004671 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 77.74, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.07237619740052864)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6ac3_0973", "family": "plate", "tier": 2, "seed": 1234004675, "symmetry": "none", "op_count": 3, "ir_hash": "f4aef21386dcb86b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 76300.0, "surface_area": 17300.0, "principal_moments": [36800000.0, 47299999.99999999, 82200000.0], "n_faces": 17, "n_edges": 45, "n_vertices": 30}, "params": {"plate_w": {"type": "float", "default": 85.81, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 75.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004675 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 85.81, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 75.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 21.5\n _ssy = 18.2\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09539374720635595)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6ac6_0976", "family": "bracket", "tier": 2, "seed": 1234004678, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "9ae3f881c9afd232", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19500.0, "surface_area": 11800.0, "principal_moments": [14599999.999999998, 20000000.0, 33299999.999999996], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 74.88, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 83.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.5, "min": 2.0, "max": 10.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004678 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 74.88, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 83.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.5, \"min\": 2.0, \"max\": 10.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6ac7_0977", "family": "ribbed", "tier": 1, "seed": 1234004679, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "26ae76963c960e93", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 44800.0, "surface_area": 19600.0, "principal_moments": [12399999.999999998, 20300000.0, 27899999.999999996], "n_faces": 46, "n_edges": 112, "n_vertices": 68}, "params": {"base_w": {"type": "float", "default": 70, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 41.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 19.3, "min": 7.7, "max": 38.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.6, "min": 1.0, "max": 14.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004679 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 41.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 19.3, \"min\": 7.7, \"max\": 38.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 1.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6ac8_0978", "family": "bracket", "tier": 1, "seed": 1234004680, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "1ef4255de3cb3996", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28400.0, "surface_area": 16100.0, "principal_moments": [15599999.999999998, 20500000.0, 28099999.999999996], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 57.91, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 62.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40.94, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004680 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 57.91, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 62.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40.94, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6aca_0980", "family": "gear", "tier": 0, "seed": 1234004682, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "607c6de09f6a448c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9270.0, "surface_area": 3950.0, "principal_moments": [776000.0, 776000.0, 1360000.0], "n_faces": 68, "n_edges": 198, "n_vertices": 132}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 11, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 11.3, "min": 4.5, "max": 28.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004682 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 11, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 11.3, \"min\": 4.5, \"max\": 28.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6acb_0981", "family": "plate", "tier": 0, "seed": 1234004683, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "24bb7012a3e9e54b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1020.0, "surface_area": 1210.0, "principal_moments": [25900.0, 75300.0, 100000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 29.62, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 17.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004683 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 29.62, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 17.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6ace_0984", "family": "flanged", "tier": 1, "seed": 1234004686, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "2150602c30661637", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23400.0, "surface_area": 9620.0, "principal_moments": [5050000.0, 5050000.0, 7450000.0], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 34.34, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 24.5, "min": 7.3, "max": 61.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.9, "min": 2.0, "max": 24.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 59.3, "min": 44.6, "max": 103.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.3, "min": 1.3, "max": 9.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 17.8, "min": 11.9, "max": 26.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004686 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 34.34, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 24.5, \"min\": 7.3, \"max\": 61.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.9, \"min\": 2.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 59.3, \"min\": 44.6, \"max\": 103.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.3, \"min\": 1.3, \"max\": 9.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 17.8, \"min\": 11.9, \"max\": 26.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_498d6acf_0985", "family": "flanged", "tier": 1, "seed": 1234004687, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "74cc5b05f62eccd9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 71900.0, "surface_area": 23200.0, "principal_moments": [37600000.0, 37600000.0, 65399999.99999999], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 45, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 27.9, "min": 8.4, "max": 69.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.5, "min": 2.0, "max": 31.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 104.6, "min": 58.5, "max": 135.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.8, "min": 1.4, "max": 11.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 31.4, "min": 20.9, "max": 47.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004687 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 27.9, \"min\": 8.4, \"max\": 69.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.5, \"min\": 2.0, \"max\": 31.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 104.6, \"min\": 58.5, \"max\": 135.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.8, \"min\": 1.4, \"max\": 11.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 31.4, \"min\": 20.9, \"max\": 47.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6ad2_0988", "family": "plate", "tier": 1, "seed": 1234004690, "symmetry": "none", "op_count": 2, "ir_hash": "bd2bffcdb7935db0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5260.0, "surface_area": 3060.0, "principal_moments": [167000.0, 1420000.0, 1560000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 57.04, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 19.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004690 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 57.04, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 19.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6ad3_0989", "family": "plate", "tier": 0, "seed": 1234004691, "symmetry": "radial", "op_count": 1, "ir_hash": "90ab9c83aef23d46", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42100.0, "surface_area": 11300.0, "principal_moments": [5850000.0, 39900000.0, 45100000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 106.25, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 39.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004691 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 106.25, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 39.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6ad4_0990", "family": "block", "tier": 1, "seed": 1234004692, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "8a48a8f0e40c8ea2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 414000.0, "surface_area": 36800.0, "principal_moments": [307000000.0, 439000000.0, 489000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 95, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 61.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 71.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004692 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 95, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 61.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 71.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6ad5_0991", "family": "bracket", "tier": 1, "seed": 1234004693, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "84270dfee91bbd59", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42100.0, "surface_area": 13500.0, "principal_moments": [15399999.999999998, 18700000.0, 21000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 45.41, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 46.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 43.03, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004693 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45.41, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 46.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 43.03, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6ad6_0992", "family": "bracket", "tier": 2, "seed": 1234004694, "symmetry": "none", "op_count": 1, "ir_hash": "04915e9673ed1842", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12700.0, "surface_area": 6570.0, "principal_moments": [2320000.0, 3560000.0, 4460000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 38.79, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 35.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25.72, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 6.7, "min": 2.5, "max": 12.9, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004694 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 38.79, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 35.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25.72, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.7, \"min\": 2.5, \"max\": 12.9, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6ad7_0993", "family": "revolved", "tier": 0, "seed": 1234004695, "symmetry": "radial", "op_count": 1, "ir_hash": "2e847720704cb345", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14700.0, "surface_area": 6430.0, "principal_moments": [1070000.0, 3470000.0, 3470000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 22.0, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 58.0, "min": 17.4, "max": 174.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004695 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 22.0, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 58.0, \"min\": 17.4, \"max\": 174.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6ad8_0994", "family": "bracket", "tier": 2, "seed": 1234004696, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "dfd8bde2678a64a3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22800.0, "surface_area": 11300.0, "principal_moments": [4950000.0, 30399999.999999996, 32999999.999999996], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 69.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 47.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 4.1, "min": 2.5, "max": 12.5, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004696 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 69.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 47.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.1, \"min\": 2.5, \"max\": 12.5, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6ad9_0995", "family": "plate", "tier": 2, "seed": 1234004697, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "108214bf4999fcee", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37400.0, "surface_area": 12200.0, "principal_moments": [5470000.0, 40500000.0, 45599999.99999999], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 114.6, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 41.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 9.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004697 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 114.6, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 41.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 9.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.10873049820791014)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6ada_0996", "family": "revolved", "tier": 0, "seed": 1234004698, "symmetry": "none", "op_count": 1, "ir_hash": "c4c53f679dbb0fb1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11200.0, "surface_area": 5390.0, "principal_moments": [674000.0, 2250000.0, 2250000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 20, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 53.6, "min": 16.1, "max": 160.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004698 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 20, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 53.6, \"min\": 16.1, \"max\": 160.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6adb_0997", "family": "ribbed", "tier": 1, "seed": 1234004699, "symmetry": "none", "op_count": 2, "ir_hash": "9ff4a153a2c1d0f5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19500.0, "surface_area": 9520.0, "principal_moments": [3490000.0, 7890000.0, 10600000.0], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 62.96, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 42.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 13.5, "min": 5.4, "max": 27.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.6, "min": 1.0, "max": 6.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004699 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 62.96, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 42.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 13.5, \"min\": 5.4, \"max\": 27.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.6, \"min\": 1.0, \"max\": 6.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6adc_0998", "family": "block", "tier": 2, "seed": 1234004700, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "a1b8a1d572caf235", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 56800.0, "surface_area": 12600.0, "principal_moments": [13699999.999999998, 13899999.999999998, 16299999.999999998], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 43.45, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 35.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 35.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 8.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 24.1, "min": 12.1, "max": 48.2, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 10.9, "min": 4.4, "max": 27.2, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 16.9, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004700 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 43.45, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 35.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 35.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 8.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 24.1, \"min\": 12.1, \"max\": 48.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 10.9, \"min\": 4.4, \"max\": 27.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 16.9, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6add_0999", "family": "plate", "tier": 2, "seed": 1234004701, "symmetry": "radial", "op_count": 3, "ir_hash": "88519e451c140a70", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 40600.0, "surface_area": 13100.0, "principal_moments": [11999999.999999998, 26699999.999999996, 38300000.0], "n_faces": 18, "n_edges": 46, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 88.03, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 59.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 26.4, "min": 17.6, "max": 39.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004701 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 88.03, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 59.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 26.4, \"min\": 17.6, \"max\": 39.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.04005476464823746)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6adf_1001", "family": "revolved", "tier": 0, "seed": 1234004703, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "60f2a4d204b0d7db", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 396000.0, "surface_area": 61700.0, "principal_moments": [219000000.0, 1090000000.0, 1090000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 60.8, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 204.5, "min": 61.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004703 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60.8, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 204.5, \"min\": 61.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6ae0_1002", "family": "bracket", "tier": 1, "seed": 1234004704, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "115a69ab5502bfd2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27900.0, "surface_area": 20000.0, "principal_moments": [10500000.0, 37400000.0, 41300000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 75, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 49.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55.68, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 48.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004704 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 49.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55.68, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 48.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6ae1_1003", "family": "compound", "tier": 2, "seed": 1234004705, "symmetry": "none", "op_count": 3, "ir_hash": "2f820c53b73ab5fa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 106000.0, "surface_area": 16300.0, "principal_moments": [32599999.999999996, 45300000.0, 56699999.99999999], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 62.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 34.7, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 4.7, "min": 2.4, "max": 12.2, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 14.8, "min": 2.6, "max": 34.7, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 3.6, "min": 2.0, "max": 6.3, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 11.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004705 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 62.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 34.7, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 4.7, \"min\": 2.4, \"max\": 12.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 14.8, \"min\": 2.6, \"max\": 34.7, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 3.6, \"min\": 2.0, \"max\": 6.3, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 11.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6ae2_1004", "family": "enclosure", "tier": 2, "seed": 1234004706, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "0c99a29c1de54854", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45200.0, "surface_area": 28500.0, "principal_moments": [28499999.999999996, 39700000.0, 51699999.99999999], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 75, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 57.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 42.3, "min": 16.9, "max": 84.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004706 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 75, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 57.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 42.3, \"min\": 16.9, \"max\": 84.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.09482635105974843)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6ae3_1005", "family": "plate", "tier": 2, "seed": 1234004707, "symmetry": "radial", "op_count": 3, "ir_hash": "2c7d27a960924fe5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42200.0, "surface_area": 17300.0, "principal_moments": [23699999.999999996, 28699999.999999996, 52099999.99999999], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"plate_w": {"type": "float", "default": 90, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 81.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 27.0, "min": 18.0, "max": 40.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004707 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 81.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 27.0, \"min\": 18.0, \"max\": 40.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.10752094811968521)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6ae4_1006", "family": "block", "tier": 1, "seed": 1234004708, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "11eb75fe51c7894b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 405000.0, "surface_area": 38100.0, "principal_moments": [309000000.0, 411000000.0, 442000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 90, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 64.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 71.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004708 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 90, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 64.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 71.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6ae5_1007", "family": "gear", "tier": 2, "seed": 1234004709, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "3ebc935f156deb7a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 148000.0, "surface_area": 32400.0, "principal_moments": [137000000.0, 137000000.0, 269000000.0], "n_faces": 611, "n_edges": 1523, "n_vertices": 914}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 38, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 13.9, "min": 5.6, "max": 34.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 17.1, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": -0.11, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.33, "min": 0.0, "max": 1.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 19.9, "min": 2.0, "max": 63.9, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004709 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 38, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 13.9, \"min\": 5.6, \"max\": 34.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 17.1, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.11, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.33, \"min\": 0.0, \"max\": 1.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 19.9, \"min\": 2.0, \"max\": 63.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=True, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6ae6_1008", "family": "profiled", "tier": 1, "seed": 1234004710, "symmetry": "none", "op_count": 1, "ir_hash": "baf3f9269cdb2300", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 95300.0, "surface_area": 15800.0, "principal_moments": [9960000.0, 215000000.0, 219000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 33.47, "min": 16.7, "max": 66.9, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 20, "min": 10.0, "max": 40.0, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 163.3, "min": 49.0, "max": 489.9, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004710 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 33.47, \"min\": 16.7, \"max\": 66.9, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 20, \"min\": 10.0, \"max\": 40.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 163.3, \"min\": 49.0, \"max\": 489.9, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6ae8_1010", "family": "revolved", "tier": 0, "seed": 1234004712, "symmetry": "none", "op_count": 1, "ir_hash": "8a313d0a0b3957f6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 123000.0, "surface_area": 22900.0, "principal_moments": [55799999.99999999, 71800000.0, 71800000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 55, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 77.6, "min": 23.3, "max": 232.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004712 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 77.6, \"min\": 23.3, \"max\": 232.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6aea_1012", "family": "plate", "tier": 2, "seed": 1234004714, "symmetry": "none", "op_count": 3, "ir_hash": "0d907e52e49d8ad2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17900.0, "surface_area": 9020.0, "principal_moments": [2870000.0, 11000000.0, 13799999.999999998], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"plate_w": {"type": "float", "default": 85.72, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 43.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004714 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 85.72, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 43.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 16.1\n _ssy = 16.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07122959641414962)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6aeb_1013", "family": "bracket", "tier": 2, "seed": 1234004715, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "0d459a300043f87f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24700.0, "surface_area": 17300.0, "principal_moments": [10200000.0, 22600000.0, 23699999.999999996], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 66.37, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 74.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 54.76, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.2, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004715 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 66.37, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 74.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 54.76, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.2, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6aed_1015", "family": "compound", "tier": 1, "seed": 1234004717, "symmetry": "none", "op_count": 3, "ir_hash": "601c616ca89cc122", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 610000.0, "surface_area": 52200.0, "principal_moments": [718000000.0, 780000000.0, 781000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 21}, "params": {"block_w": {"type": "float", "default": 90.0, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 82.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 83.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 20.7, "min": 8.3, "max": 37.3, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 14.6, "min": 5.2, "max": 62.1, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 12.0, "min": 2.0, "max": 14.9, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004717 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 90.0, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 82.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 83.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 20.7, \"min\": 8.3, \"max\": 37.3, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 14.6, \"min\": 5.2, \"max\": 62.1, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 14.9, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6af1_1019", "family": "bracket", "tier": 2, "seed": 1234004721, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "a7f4ea3b6271cbab", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 55800.0, "surface_area": 17100.0, "principal_moments": [20500000.0, 53799999.99999999, 56699999.99999999], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 74.99, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 76.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 7.8, "min": 4.0, "max": 22.5, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004721 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 74.99, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 76.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 7.8, \"min\": 4.0, \"max\": 22.5, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6af2_1020", "family": "bracket", "tier": 1, "seed": 1234004722, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "a9d17c83ba777f39", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19600.0, "surface_area": 8110.0, "principal_moments": [4880000.0, 4900000.0, 7730000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 36.03, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 38.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 48.42, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004722 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 36.03, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 38.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 48.42, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6af5_1023", "family": "ribbed", "tier": 1, "seed": 1234004725, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "e7df7e2807144ff8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13900.0, "surface_area": 6280.0, "principal_moments": [1800000.0, 3620000.0, 5070000.0], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 36.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 8.5, "min": 3.4, "max": 17.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.2, "min": 1.0, "max": 10.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004725 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 36.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 8.5, \"min\": 3.4, \"max\": 17.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.2, \"min\": 1.0, \"max\": 10.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6af6_1024", "family": "revolved", "tier": 2, "seed": 1234004726, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "01b820020fa0eaa5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 238000.0, "surface_area": 44600.0, "principal_moments": [95999999.99999999, 468000000.0, 468000000.0], "n_faces": 9, "n_edges": 14, "n_vertices": 9}, "params": {"outer_d": {"type": "float", "default": 52.24, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 171.0, "min": 51.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "groove_depth": {"type": "float", "default": 2.51, "min": 1.0, "max": 7.53, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 16.28, "min": 6.51, "max": 48.84, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 87.8, "min": 25.6, "max": 145.3, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004726 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 52.24, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 171.0, \"min\": 51.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 2.51, \"min\": 1.0, \"max\": 7.53, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 16.28, \"min\": 6.51, \"max\": 48.84, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 87.8, \"min\": 25.6, \"max\": 145.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6af8_1026", "family": "revolved", "tier": 0, "seed": 1234004728, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "028f188503983730", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 49800.0, "surface_area": 13900.0, "principal_moments": [9160000.0, 22400000.0, 22400000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 35, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 77.7, "min": 23.3, "max": 233.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004728 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 77.7, \"min\": 23.3, \"max\": 233.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6af9_1027", "family": "block", "tier": 1, "seed": 1234004729, "symmetry": "radial", "op_count": 2, "ir_hash": "9af130ee8453f852", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 252000.0, "surface_area": 29100.0, "principal_moments": [153000000.0, 200000000.0, 293000000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 90, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 37.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 76.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 27.0, "min": 18.0, "max": 40.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004729 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 90, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 37.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 76.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 27.0, \"min\": 18.0, \"max\": 40.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_498d6afa_1028", "family": "ribbed", "tier": 2, "seed": 1234004730, "symmetry": "none", "op_count": 2, "ir_hash": "79d4af345fd15aa0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 51900.0, "surface_area": 25400.0, "principal_moments": [25299999.999999996, 38400000.0, 59399999.99999999], "n_faces": 26, "n_edges": 60, "n_vertices": 40}, "params": {"base_w": {"type": "float", "default": 90, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 74.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 17.5, "min": 7.0, "max": 35.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.0, "min": 1.0, "max": 12.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004730 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 74.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 17.5, \"min\": 7.0, \"max\": 35.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 1.0, \"max\": 12.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6afb_1029", "family": "gear", "tier": 0, "seed": 1234004731, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "3fd7f10c825ca083", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1520.0, "surface_area": 1180.0, "principal_moments": [36200.0, 36200.0, 63000.0], "n_faces": 110, "n_edges": 324, "n_vertices": 216}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 18, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.1, "min": 2.4, "max": 15.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004731 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 18, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.1, \"min\": 2.4, \"max\": 15.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6afe_1032", "family": "compound", "tier": 2, "seed": 1234004734, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "a4352f8258356d56", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 115000.0, "surface_area": 29500.0, "principal_moments": [87000000.0, 139000000.0, 143000000.0], "n_faces": 32, "n_edges": 87, "n_vertices": 58}, "params": {"base_w": {"type": "float", "default": 110, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 74.8, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 12.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 11.7, "min": 5.8, "max": 18.7, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 75.7, "min": 22.7, "max": 227.1, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 12.3, "min": 2.0, "max": 15.6, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004734 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 110, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 74.8, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 12.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 11.7, \"min\": 5.8, \"max\": 18.7, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 75.7, \"min\": 22.7, \"max\": 227.1, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 12.3, \"min\": 2.0, \"max\": 15.6, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_w\"], p[\"base_d\"]) * 0.10828157726694951)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6aff_1033", "family": "bracket", "tier": 2, "seed": 1234004735, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "e8d8fa604858f1ae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14400.0, "surface_area": 5390.0, "principal_moments": [1500000.0, 4530000.0, 5010000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 40.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20.9, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 8.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 9.9, "min": 4.0, "max": 10.4, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004735 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 40.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20.9, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 8.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 9.9, \"min\": 4.0, \"max\": 10.4, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6b01_1035", "family": "revolved", "tier": 2, "seed": 1234004737, "symmetry": "radial", "op_count": 2, "ir_hash": "781cc7963c496c24", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 527000.0, "surface_area": 68400.0, "principal_moments": [456000000.0, 1270000000.0, 1270000000.0], "n_faces": 11, "n_edges": 17, "n_vertices": 11}, "params": {"outer_d": {"type": "float", "default": 55, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 196.7, "min": 59.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 92.2, "min": 66.0, "max": 165.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 51.6, "min": 15.5, "max": 98.3, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "groove_depth": {"type": "float", "default": 1.77, "min": 0.71, "max": 5.31, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 21.81, "min": 8.72, "max": 65.43, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 109.5, "min": 29.5, "max": 167.2, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.3, "min": 0.1, "max": 0.9, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004737 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 196.7, \"min\": 59.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 92.2, \"min\": 66.0, \"max\": 165.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 51.6, \"min\": 15.5, \"max\": 98.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 1.77, \"min\": 0.71, \"max\": 5.31, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 21.81, \"min\": 8.72, \"max\": 65.43, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 109.5, \"min\": 29.5, \"max\": 167.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.3, \"min\": 0.1, \"max\": 0.9, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_r\"], p[\"base_r\"]) * 0.11711548230344176)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6b04_1038", "family": "gear", "tier": 1, "seed": 1234004740, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "cd438a5f6ce644a1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1080000.0, "surface_area": 110000.0, "principal_moments": [2980000000.0, 2980000000.0, 5750000000.0], "n_faces": 207, "n_edges": 615, "n_vertices": 410}, "params": {"module": {"type": "float", "default": 6.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 34, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 34.0, "min": 13.6, "max": 85.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 30.3, "min": 2.0, "max": 113.4, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004740 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 6.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 34, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 34.0, \"min\": 13.6, \"max\": 85.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 30.3, \"min\": 2.0, \"max\": 113.4, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6b06_1040", "family": "compound", "tier": 2, "seed": 1234004742, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "d91f9800da680f52", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 299000.0, "surface_area": 30200.0, "principal_moments": [214000000.0, 223000000.0, 252000000.0], "n_faces": 20, "n_edges": 51, "n_vertices": 34}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 58.7, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 72.5, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 9.4, "min": 4.7, "max": 24.5, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 23.1, "min": 5.2, "max": 69.5, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 8.3, "min": 2.0, "max": 12.5, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004742 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 58.7, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 72.5, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 9.4, \"min\": 4.7, \"max\": 24.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 23.1, \"min\": 5.2, \"max\": 69.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 8.3, \"min\": 2.0, \"max\": 12.5, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6b07_1041", "family": "revolved", "tier": 1, "seed": 1234004743, "symmetry": "none", "op_count": 2, "ir_hash": "957cd3e170066b14", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3240.0, "surface_area": 2150.0, "principal_moments": [158000.0, 158000.0, 249000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 14.06, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 15.0, "min": 4.5, "max": 45.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 27.8, "min": 16.9, "max": 42.2, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.8, "min": 1.1, "max": 7.5, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004743 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 14.06, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 15.0, \"min\": 4.5, \"max\": 45.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 27.8, \"min\": 16.9, \"max\": 42.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.8, \"min\": 1.1, \"max\": 7.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6b09_1043", "family": "threaded", "tier": 0, "seed": 1234004745, "symmetry": "none", "op_count": 1, "ir_hash": "61fb7649534f8e31", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4490.0, "surface_area": 2810.0, "principal_moments": [68200.0, 881000.0, 881000.0], "n_faces": 280, "n_edges": 718, "n_vertices": 440}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 47.8, "min": 19.1, "max": 95.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004745 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 47.8, \"min\": 19.1, \"max\": 95.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6b0a_1044", "family": "compound", "tier": 2, "seed": 1234004746, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "c259336133da6cff", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 173000.0, "surface_area": 28100.0, "principal_moments": [69800000.0, 125000000.0, 157000000.0], "n_faces": 17, "n_edges": 54, "n_vertices": 36}, "params": {"block_w": {"type": "float", "default": 60, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 77.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 36.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 58.5, "min": 23.4, "max": 93.6, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 28.3, "min": 11.3, "max": 45.3, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.2, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}, "block_hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004746 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 60, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 77.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 36.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 58.5, \"min\": 23.4, \"max\": 93.6, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 28.3, \"min\": 11.3, \"max\": 45.3, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.2, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n \"block_hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"block_hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6b0c_1046", "family": "plate", "tier": 2, "seed": 1234004748, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "b334a6a065fc8efd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 48100.0, "surface_area": 14700.0, "principal_moments": [8700000.0, 49999999.99999999, 57899999.99999999], "n_faces": 42, "n_edges": 120, "n_vertices": 80}, "params": {"plate_w": {"type": "float", "default": 115, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 47.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 12.6, "min": 2.0, "max": 13.8, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004748 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 115, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 47.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 12.6, \"min\": 2.0, \"max\": 13.8, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.05504981042715907)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6b0f_1049", "family": "enclosure", "tier": 1, "seed": 1234004751, "symmetry": "none", "op_count": 2, "ir_hash": "11be63bcbcb1cbaf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 59600.0, "surface_area": 50400.0, "principal_moments": [53699999.99999999, 88700000.0, 105000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 99.26, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 43.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 76.5, "min": 30.6, "max": 153.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.4, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004751 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 99.26, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 43.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 76.5, \"min\": 30.6, \"max\": 153.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6b10_1050", "family": "gear", "tier": 2, "seed": 1234004752, "symmetry": "none", "op_count": 1, "ir_hash": "cd479690ca113e0c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 277.0, "surface_area": 420.0, "principal_moments": [2750.0, 2750.0, 5060.0], "n_faces": 83, "n_edges": 203, "n_vertices": 122}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 10, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 3.1, "min": 1.2, "max": 7.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 25.4, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.09, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.15, "min": 0.0, "max": 0.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 3.0, "min": 2.0, "max": 4.5, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004752 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 10, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 3.1, \"min\": 1.2, \"max\": 7.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 25.4, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.09, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.15, \"min\": 0.0, \"max\": 0.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 4.5, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6b11_1051", "family": "revolved", "tier": 2, "seed": 1234004753, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "c6f158f23a19b016", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 273.0, "surface_area": 349.0, "principal_moments": [2290.0, 2290.0, 2970.0], "n_faces": 9, "n_edges": 14, "n_vertices": 9}, "params": {"outer_d": {"type": "float", "default": 8.71, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 7.5, "min": 2.2, "max": 22.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "groove_depth": {"type": "float", "default": 0.46, "min": 0.18, "max": 1.38, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 0.46, "min": 0.18, "max": 1.38, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 4.0, "min": 1.1, "max": 6.4, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004753 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 8.71, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 7.5, \"min\": 2.2, \"max\": 22.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 0.46, \"min\": 0.18, \"max\": 1.38, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 0.46, \"min\": 0.18, \"max\": 1.38, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.1, \"max\": 6.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 3.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6b13_1053", "family": "bracket", "tier": 2, "seed": 1234004755, "symmetry": "none", "op_count": 1, "ir_hash": "47d15f4c1bc59da6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23000.0, "surface_area": 12800.0, "principal_moments": [7710000.0, 12099999.999999998, 15599999.999999998], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 60, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 44.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.6, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004755 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 60, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 44.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.6, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_498d6b14_1054", "family": "enclosure", "tier": 2, "seed": 1234004756, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "29c347a475fe4fbc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 141000.0, "surface_area": 102000.0, "principal_moments": [363000000.0, 367000000.0, 448000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 106.47, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 105.4, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 97.8, "min": 39.1, "max": 195.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004756 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 106.47, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 105.4, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 97.8, \"min\": 39.1, \"max\": 195.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6b15_1055", "family": "revolved", "tier": 1, "seed": 1234004757, "symmetry": "none", "op_count": 1, "ir_hash": "11272f7921d86106", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 661.0, "surface_area": 569.0, "principal_moments": [8010.0, 11200.0, 11200.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 9.24, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 11.4, "min": 3.4, "max": 34.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 3.4, "min": 2.0, "max": 6.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004757 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 9.24, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 11.4, \"min\": 3.4, \"max\": 34.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 3.4, \"min\": 2.0, \"max\": 6.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6b16_1056", "family": "bracket", "tier": 1, "seed": 1234004758, "symmetry": "none", "op_count": 1, "ir_hash": "740a5cf8887536c8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42000.0, "surface_area": 23100.0, "principal_moments": [26899999.999999996, 47099999.99999999, 48699999.99999999], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 57.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 60.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004758 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 57.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 60.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6b17_1057", "family": "revolved", "tier": 2, "seed": 1234004759, "symmetry": "radial", "op_count": 2, "ir_hash": "6febeea4e5bf0f86", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14900.0, "surface_area": 5870.0, "principal_moments": [1960000.0, 1960000.0, 2790000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 21.31, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 29.0, "min": 8.7, "max": 87.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 43.4, "min": 25.6, "max": 63.9, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.2, "min": 2.2, "max": 14.5, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.1, "min": 0.1, "max": 3.3, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004759 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 21.31, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 29.0, \"min\": 8.7, \"max\": 87.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 43.4, \"min\": 25.6, \"max\": 63.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.2, \"min\": 2.2, \"max\": 14.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.1, \"min\": 0.1, \"max\": 3.3, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6b1e_1064", "family": "gear", "tier": 1, "seed": 1234004766, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "0dedaff21ad60ba9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6420.0, "surface_area": 3690.0, "principal_moments": [619000.0, 619000.0, 1200000.0], "n_faces": 231, "n_edges": 687, "n_vertices": 458}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 38, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.9, "min": 2.4, "max": 14.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 6.9, "min": 2.0, "max": 21.3, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004766 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 38, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.9, \"min\": 2.4, \"max\": 14.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 6.9, \"min\": 2.0, \"max\": 21.3, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6b1f_1065", "family": "bracket", "tier": 1, "seed": 1234004767, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "5df0985a61b16214", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24200.0, "surface_area": 18000.0, "principal_moments": [23199999.999999996, 32199999.999999996, 51199999.99999999], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 82.08, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 31.75, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004767 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 82.08, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 31.75, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_498d6b20_1066", "family": "profiled", "tier": 1, "seed": 1234004768, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "90206519343b4bf0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 142000.0, "surface_area": 19300.0, "principal_moments": [22500000.0, 260000000.0, 260000000.0], "n_faces": 7, "n_edges": 15, "n_vertices": 10}, "params": {"circ_r": {"type": "float", "default": 20.29, "min": 10.1, "max": 40.6, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 145.1, "min": 43.5, "max": 435.3, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004768 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 20.29, \"min\": 10.1, \"max\": 40.6, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 145.1, \"min\": 43.5, \"max\": 435.3, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6b21_1067", "family": "revolved", "tier": 1, "seed": 1234004769, "symmetry": "radial", "op_count": 1, "ir_hash": "922d3adc653c8e36", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 411000.0, "surface_area": 53100.0, "principal_moments": [220000000.0, 1210000000.0, 1210000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 60, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 179.2, "min": 53.8, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 26.1, "min": 2.0, "max": 42.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004769 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 179.2, \"min\": 53.8, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 26.1, \"min\": 2.0, \"max\": 42.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_498d6b22_1068", "family": "threaded", "tier": 2, "seed": 1234004770, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "0cdc945f8aac5fa5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 392.0, "surface_area": 588.0, "principal_moments": [1020.0, 20000.0, 20000.0], "n_faces": 310, "n_edges": 796, "n_vertices": 488}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 24.5, "min": 9.8, "max": 49.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004770 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 24.5, \"min\": 9.8, \"max\": 49.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6b23_1069", "family": "plate", "tier": 0, "seed": 1234004771, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "795b5d2c7f131f58", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29000.0, "surface_area": 8020.0, "principal_moments": [4510000.0, 11799999.999999998, 15799999.999999998], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 69.08, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 42.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004771 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 69.08, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 42.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6b25_1071", "family": "plate", "tier": 0, "seed": 1234004773, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "0d6222731f2552a9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16500.0, "surface_area": 9270.0, "principal_moments": [4130000.0, 7780000.0, 11899999.999999998], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 75.21, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 54.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004773 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 75.21, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 54.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6b27_1073", "family": "plate", "tier": 2, "seed": 1234004775, "symmetry": "none", "op_count": 3, "ir_hash": "66b14ca229807640", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5800.0, "surface_area": 3430.0, "principal_moments": [386000.0, 926000.0, 1290000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 28.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 6.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004775 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 28.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 6.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.10350366018994164)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_498d6b28_1074", "family": "gear", "tier": 1, "seed": 1234004776, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "f453ad2c97af419a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6480.0, "surface_area": 4210.0, "principal_moments": [815000.0, 815000.0, 1610000.0], "n_faces": 213, "n_edges": 633, "n_vertices": 422}, "params": {"module": {"type": "float", "default": 1.25, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 35, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 4.5, "min": 1.8, "max": 11.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 8.1, "min": 2.0, "max": 24.4, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004776 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.25, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 35, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.8, \"max\": 11.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 8.1, \"min\": 2.0, \"max\": 24.4, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6b2a_1076", "family": "plate", "tier": 2, "seed": 1234004778, "symmetry": "radial", "op_count": 3, "ir_hash": "674ba8d0b4a86385", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 57000.0, "surface_area": 21900.0, "principal_moments": [37600000.0, 56299999.99999999, 93499999.99999999], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 108.74, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 88.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 32.6, "min": 21.7, "max": 48.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004778 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 108.74, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 88.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 32.6, \"min\": 21.7, \"max\": 48.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07112617184986642)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6b2b_1077", "family": "plate", "tier": 1, "seed": 1234004779, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "8a20c326675da98f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2780.0, "surface_area": 1720.0, "principal_moments": [69200.0, 210000.0, 262000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 30, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 16.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004779 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 16.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6b2d_1079", "family": "revolved", "tier": 2, "seed": 1234004781, "symmetry": "none", "op_count": 2, "ir_hash": "1de1356a26e9fbb1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 143000.0, "surface_area": 30000.0, "principal_moments": [40900000.0, 243000000.0, 243000000.0], "n_faces": 12, "n_edges": 20, "n_vertices": 12}, "params": {"outer_d": {"type": "float", "default": 43.06, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 135.0, "min": 40.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 21.5, "min": 2.0, "max": 30.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 3.41, "min": 1.36, "max": 10.23, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 10.63, "min": 4.25, "max": 31.89, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 53.5, "min": 20.2, "max": 114.8, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004781 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 43.06, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 135.0, \"min\": 40.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 21.5, \"min\": 2.0, \"max\": 30.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 3.41, \"min\": 1.36, \"max\": 10.23, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 10.63, \"min\": 4.25, \"max\": 31.89, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 53.5, \"min\": 20.2, \"max\": 114.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6b30_1082", "family": "compound", "tier": 2, "seed": 1234004784, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "b16a139ab2c48b47", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 127000.0, "surface_area": 17500.0, "principal_moments": [50399999.99999999, 56099999.99999999, 58599999.99999999], "n_faces": 20, "n_edges": 51, "n_vertices": 34}, "params": {"block_w": {"type": "float", "default": 46.39, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 55.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 50.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 7.2, "min": 3.6, "max": 17.5, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 16.5, "min": 4.0, "max": 53.2, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 6.5, "min": 2.0, "max": 9.6, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 10.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004784 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 46.39, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 55.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 50.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 7.2, \"min\": 3.6, \"max\": 17.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 16.5, \"min\": 4.0, \"max\": 53.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 6.5, \"min\": 2.0, \"max\": 9.6, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 10.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6b31_1083", "family": "compound", "tier": 2, "seed": 1234004785, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "a9075185ae5eadda", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 65600.0, "surface_area": 10800.0, "principal_moments": [19300000.0, 21400000.0, 21400000.0], "n_faces": 20, "n_edges": 51, "n_vertices": 34}, "params": {"base_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 28.43, "min": 17.1, "max": 45.5, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 21.5, "min": 8.6, "max": 53.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 25.9, "min": 12.9, "max": 42.0, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 31.2, "min": 9.4, "max": 78.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004785 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 28.43, \"min\": 17.1, \"max\": 45.5, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 21.5, \"min\": 8.6, \"max\": 53.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 25.9, \"min\": 12.9, \"max\": 42.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 31.2, \"min\": 9.4, \"max\": 78.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_r\"], p[\"base_r\"]) * 0.05280602762832996)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6b32_1084", "family": "bracket", "tier": 2, "seed": 1234004786, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "f001ea846af9436a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34500.0, "surface_area": 19000.0, "principal_moments": [19000000.0, 26299999.999999996, 27699999.999999996], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 53.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55.64, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.7, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004786 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 53.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55.64, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.7, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6b33_1085", "family": "revolved", "tier": 1, "seed": 1234004787, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "0c5209592524b94d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21100.0, "surface_area": 8120.0, "principal_moments": [2000000.0, 6160000.0, 6160000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 25.1, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 64.1, "min": 19.2, "max": 192.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004787 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25.1, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 64.1, \"min\": 19.2, \"max\": 192.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_498d6b34_1086", "family": "block", "tier": 1, "seed": 1234004788, "symmetry": "radial", "op_count": 2, "ir_hash": "2080885d66b5084c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17300.0, "surface_area": 5340.0, "principal_moments": [1270000.0, 3080000.0, 3180000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"block_w": {"type": "float", "default": 41.25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 20.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 21.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 12.4, "min": 8.2, "max": 18.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004788 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 41.25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 20.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 21.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 12.4, \"min\": 8.2, \"max\": 18.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_498d6b35_1087", "family": "revolved", "tier": 1, "seed": 1234004789, "symmetry": "radial", "op_count": 2, "ir_hash": "9a3736e0f0e7ef99", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1070000.0, "surface_area": 110000.0, "principal_moments": [2080000000.0, 3350000000.0, 3350000000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 79.26, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 195.8, "min": 58.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 147.5, "min": 95.1, "max": 237.8, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 34.7, "min": 10.4, "max": 97.9, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004789 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 79.26, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 195.8, \"min\": 58.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 147.5, \"min\": 95.1, \"max\": 237.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 34.7, \"min\": 10.4, \"max\": 97.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 3.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_498d6b38_1090", "family": "plate", "tier": 2, "seed": 1234004792, "symmetry": "none", "op_count": 3, "ir_hash": "a182d5c386b92ea5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10700.0, "surface_area": 6400.0, "principal_moments": [1050000.0, 5550000.0, 6570000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 79.1, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 34.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004792 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 79.1, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 34.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.04101694720821449)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_498d6b39_1091", "family": "bracket", "tier": 1, "seed": 1234004793, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8e4548894c504199", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26300.0, "surface_area": 14800.0, "principal_moments": [9670000.0, 25199999.999999996, 26599999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 56.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004793 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 56.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cboreHole(p[\"hole_d\"], p[\"cb_d\"], p[\"cb_depth\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.10576756840328219)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6b3b_1093", "family": "compound", "tier": 2, "seed": 1234004795, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "9c053e66831c2636", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12800.0, "surface_area": 4270.0, "principal_moments": [611000.0, 2980000.0, 2980000.0], "n_faces": 13, "n_edges": 27, "n_vertices": 18}, "params": {"shaft_d": {"type": "float", "default": 20.66, "min": 10.3, "max": 37.2, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 32.7, "min": 13.1, "max": 65.4, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 10.1, "min": 5.0, "max": 18.6, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 24.5, "min": 7.3, "max": 61.2, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "head_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Head", "label": "Drive head sides"}, "head_r": {"type": "float", "default": 4.0, "min": 2.4, "max": 4.8, "step": 1.0, "group": "Head", "label": "Drive head circumradius (mm)"}, "head_len": {"type": "float", "default": 6.4, "min": 1.9, "max": 12.8, "step": 1.0, "group": "Head", "label": "Drive head length (mm)"}, "axial_bore": {"type": "float", "default": 2.8, "min": 2.0, "max": 5.0, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004795 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 20.66, \"min\": 10.3, \"max\": 37.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 32.7, \"min\": 13.1, \"max\": 65.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 10.1, \"min\": 5.0, \"max\": 18.6, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 24.5, \"min\": 7.3, \"max\": 61.2, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"head_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Head', \"label\": 'Drive head sides'},\n \"head_r\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.4, \"max\": 4.8, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head circumradius (mm)'},\n \"head_len\": {\"type\": 'float', \"default\": 6.4, \"min\": 1.9, \"max\": 12.8, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 2.8, \"min\": 2.0, \"max\": 5.0, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"head_sides\"], p[\"head_r\"] * 2).extrude(p[\"head_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_498d6b3c_1094", "family": "compound", "tier": 1, "seed": 1234004796, "symmetry": "none", "op_count": 3, "ir_hash": "6ddf76982f08e58d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 141000.0, "surface_area": 21200.0, "principal_moments": [58799999.99999999, 67700000.0, 96299999.99999999], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 60.9, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 35.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 37.1, "min": 14.8, "max": 59.4, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 19.8, "min": 7.9, "max": 31.7, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.4, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 1234004796 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 60.9, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 35.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 37.1, \"min\": 14.8, \"max\": 59.4, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 19.8, \"min\": 7.9, \"max\": 31.7, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.4, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acdef_0003", "family": "compound", "tier": 1, "seed": 2468007407, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "675a734075925697", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 331000.0, "surface_area": 37400.0, "principal_moments": [238000000.0, 288000000.0, 365000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 21}, "params": {"block_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 73.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 53.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 17.2, "min": 6.9, "max": 24.1, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 20.7, "min": 4.3, "max": 51.6, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.4, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007407 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 73.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 53.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 17.2, \"min\": 6.9, \"max\": 24.1, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 20.7, \"min\": 4.3, \"max\": 51.6, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.4, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acdf2_0006", "family": "compound", "tier": 1, "seed": 2468007410, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "315b0a2e7ca8315f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 225000.0, "surface_area": 25000.0, "principal_moments": [59999999.99999999, 443000000.0, 443000000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 50.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 90.5, "min": 36.2, "max": 181.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 27.5, "min": 13.8, "max": 45.0, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 79.1, "min": 23.7, "max": 197.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007410 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 50.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 90.5, \"min\": 36.2, \"max\": 181.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 27.5, \"min\": 13.8, \"max\": 45.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 79.1, \"min\": 23.7, \"max\": 197.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acdf3_0007", "family": "revolved", "tier": 0, "seed": 2468007411, "symmetry": "radial", "op_count": 1, "ir_hash": "1d7ba75d2ed78db5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 189000.0, "surface_area": 33300.0, "principal_moments": [87500000.0, 197000000.0, 197000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 55.57, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 116.8, "min": 35.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007411 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55.57, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 116.8, \"min\": 35.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acdf4_0008", "family": "gear", "tier": 2, "seed": 2468007412, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "95d96ed9aed71150", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12300.0, "surface_area": 5780.0, "principal_moments": [1920000.0, 1920000.0, 3730000.0], "n_faces": 259, "n_edges": 771, "n_vertices": 514}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 32, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 7.0, "min": 2.8, "max": 17.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": 0.12, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.18, "min": 0.0, "max": 0.75, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 9.4, "min": 2.0, "max": 26.6, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007412 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 32, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 7.0, \"min\": 2.8, \"max\": 17.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.12, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.18, \"min\": 0.0, \"max\": 0.75, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 9.4, \"min\": 2.0, \"max\": 26.6, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acdf5_0009", "family": "revolved", "tier": 1, "seed": 2468007413, "symmetry": "radial", "op_count": 1, "ir_hash": "d65b1327bf2b874b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8530.0, "surface_area": 4740.0, "principal_moments": [373000.0, 1770000.0, 1770000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 17.07, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 55.9, "min": 16.8, "max": 167.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007413 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 17.07, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 55.9, \"min\": 16.8, \"max\": 167.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acdf6_0010", "family": "gear", "tier": 1, "seed": 2468007414, "symmetry": "none", "op_count": 1, "ir_hash": "aba630c8f8cbc12f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4940.0, "surface_area": 3030.0, "principal_moments": [378000.0, 378000.0, 730000.0], "n_faces": 207, "n_edges": 615, "n_vertices": 410}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 34, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.6, "min": 2.2, "max": 14.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 4.9, "min": 2.0, "max": 18.9, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007414 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 34, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.6, \"min\": 2.2, \"max\": 14.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.0, \"max\": 18.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acdf7_0011", "family": "flanged", "tier": 1, "seed": 2468007415, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "840f10deb9263bc2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 87000.0, "surface_area": 24300.0, "principal_moments": [44200000.0, 44200000.0, 65699999.99999999], "n_faces": 29, "n_edges": 114, "n_vertices": 76}, "params": {"outer_d": {"type": "float", "default": 55, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 36.2, "min": 10.9, "max": 90.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 27.1, "min": 2.0, "max": 38.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 98.0, "min": 71.5, "max": 165.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.4, "min": 1.3, "max": 14.5, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 29.4, "min": 19.6, "max": 44.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007415 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 36.2, \"min\": 10.9, \"max\": 90.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 27.1, \"min\": 2.0, \"max\": 38.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 98.0, \"min\": 71.5, \"max\": 165.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.4, \"min\": 1.3, \"max\": 14.5, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 29.4, \"min\": 19.6, \"max\": 44.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931acdf8_0012", "family": "profiled", "tier": 1, "seed": 2468007416, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ca991bb84356da96", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11700.0, "surface_area": 6260.0, "principal_moments": [528000.0, 5570000.0, 5570000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 16.78, "min": 8.4, "max": 33.6, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 73.7, "min": 22.1, "max": 221.1, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 8.9, "min": 2.0, "max": 13.4, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007416 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 16.78, \"min\": 8.4, \"max\": 33.6, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 73.7, \"min\": 22.1, \"max\": 221.1, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 8.9, \"min\": 2.0, \"max\": 13.4, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acdf9_0013", "family": "compound", "tier": 1, "seed": 2468007417, "symmetry": "none", "op_count": 2, "ir_hash": "cb96bacf81925ec2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35800.0, "surface_area": 6560.0, "principal_moments": [4890000.0, 8170000.0, 8170000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 35, "min": 17.5, "max": 63.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 31.7, "min": 12.7, "max": 63.4, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 18.3, "min": 9.2, "max": 31.5, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 20.0, "min": 6.0, "max": 50.0, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007417 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 35, \"min\": 17.5, \"max\": 63.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 31.7, \"min\": 12.7, \"max\": 63.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 18.3, \"min\": 9.2, \"max\": 31.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 20.0, \"min\": 6.0, \"max\": 50.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acdfa_0014", "family": "flanged", "tier": 2, "seed": 2468007418, "symmetry": "none", "op_count": 3, "ir_hash": "3ba568614d20d728", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 562000.0, "surface_area": 81200.0, "principal_moments": [927000000.0, 927000000.0, 1320000000.0], "n_faces": 22, "n_edges": 47, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 90, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 68.9, "min": 20.7, "max": 172.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 27.1, "min": 2.0, "max": 63.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 186.6, "min": 117.0, "max": 270.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.9, "min": 2.4, "max": 27.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 56.0, "min": 37.3, "max": 84.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007418 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 68.9, \"min\": 20.7, \"max\": 172.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 27.1, \"min\": 2.0, \"max\": 63.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 186.6, \"min\": 117.0, \"max\": 270.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.9, \"min\": 2.4, \"max\": 27.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 56.0, \"min\": 37.3, \"max\": 84.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acdfc_0016", "family": "flanged", "tier": 1, "seed": 2468007420, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "5fb0d1fef0bc1b66", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 74300.0, "surface_area": 22400.0, "principal_moments": [40000000.0, 40000000.0, 52799999.99999999], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 40, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 45.1, "min": 13.5, "max": 112.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 21.7, "min": 2.0, "max": 28.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 89.9, "min": 52.0, "max": 120.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.1, "min": 2.1, "max": 18.0, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 27.0, "min": 18.0, "max": 40.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007420 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 45.1, \"min\": 13.5, \"max\": 112.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 21.7, \"min\": 2.0, \"max\": 28.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 89.9, \"min\": 52.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.1, \"min\": 2.1, \"max\": 18.0, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 27.0, \"min\": 18.0, \"max\": 40.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acdfe_0018", "family": "revolved", "tier": 0, "seed": 2468007422, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ae10555669f42c66", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 520000.0, "surface_area": 75500.0, "principal_moments": [329000000.0, 1870000000.0, 1870000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 65, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 235.0, "min": 70.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007422 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 235.0, \"min\": 70.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acdff_0019", "family": "flanged", "tier": 2, "seed": 2468007423, "symmetry": "radial", "op_count": 3, "ir_hash": "96513223a0b153f0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 334000.0, "surface_area": 53400.0, "principal_moments": [431000000.0, 431000000.0, 441000000.0], "n_faces": 18, "n_edges": 37, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 70, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 79.7, "min": 23.9, "max": 199.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 32.7, "min": 2.0, "max": 49.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 131.7, "min": 91.0, "max": 210.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.7, "min": 2.9, "max": 31.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 39.5, "min": 26.3, "max": 59.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.5, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007423 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 79.7, \"min\": 23.9, \"max\": 199.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 32.7, \"min\": 2.0, \"max\": 49.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 131.7, \"min\": 91.0, \"max\": 210.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.7, \"min\": 2.9, \"max\": 31.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 39.5, \"min\": 26.3, \"max\": 59.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.5, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace06_0026", "family": "compound", "tier": 1, "seed": 2468007430, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "560263ccb1022f6f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25900.0, "surface_area": 6620.0, "principal_moments": [3420000.0, 4230000.0, 5650000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 35.3, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 33.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 21.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 10.2, "min": 4.1, "max": 15.1, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 15.9, "min": 3.1, "max": 40.8, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 5.0, "min": 2.0, "max": 7.3, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007430 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35.3, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 33.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 21.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 10.2, \"min\": 4.1, \"max\": 15.1, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 15.9, \"min\": 3.1, \"max\": 40.8, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 7.3, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ace09_0029", "family": "profiled", "tier": 2, "seed": 2468007433, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "c49f962a743b1b57", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 58600.0, "surface_area": 20200.0, "principal_moments": [6380000.0, 85900000.0, 85900000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 26.94, "min": 13.5, "max": 53.9, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 154.2, "min": 46.3, "max": 462.6, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007433 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 26.94, \"min\": 13.5, \"max\": 53.9, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 154.2, \"min\": 46.3, \"max\": 462.6, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace0a_0030", "family": "bracket", "tier": 1, "seed": 2468007434, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "73657aaf15a9a321", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19600.0, "surface_area": 8200.0, "principal_moments": [4690000.0, 5480000.0, 7940000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 36.25, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 41.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 46.3, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007434 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 36.25, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 41.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 46.3, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ace0c_0032", "family": "flanged", "tier": 1, "seed": 2468007436, "symmetry": "radial", "op_count": 2, "ir_hash": "daf7e7ebb48ff275", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 60000.0, "surface_area": 14700.0, "principal_moments": [19400000.0, 19400000.0, 31899999.999999996], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 46.2, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 26.1, "min": 7.8, "max": 65.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 14.9, "min": 2.0, "max": 32.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 74.8, "min": 60.1, "max": 138.6, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.9, "min": 2.4, "max": 10.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 22.4, "min": 15.0, "max": 33.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007436 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 46.2, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 26.1, \"min\": 7.8, \"max\": 65.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 14.9, \"min\": 2.0, \"max\": 32.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 74.8, \"min\": 60.1, \"max\": 138.6, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.9, \"min\": 2.4, \"max\": 10.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 22.4, \"min\": 15.0, \"max\": 33.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace0d_0033", "family": "compound", "tier": 2, "seed": 2468007437, "symmetry": "mirror_xy", "op_count": 5, "ir_hash": "8c02f1eee1df0cfd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 292000.0, "surface_area": 34700.0, "principal_moments": [208000000.0, 222000000.0, 338000000.0], "n_faces": 20, "n_edges": 47, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 84.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 43.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 12.9, "min": 5.2, "max": 19.5, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 17.2, "min": 3.2, "max": 38.7, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 6.3, "min": 2.0, "max": 9.3, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007437 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 84.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 43.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 12.9, \"min\": 5.2, \"max\": 19.5, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 17.2, \"min\": 3.2, \"max\": 38.7, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 6.3, \"min\": 2.0, \"max\": 9.3, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace0e_0034", "family": "bracket", "tier": 1, "seed": 2468007438, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "a5e330af455a3ab3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12200.0, "surface_area": 5220.0, "principal_moments": [1530000.0, 5590000.0, 6570000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 60, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 47.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 16.11, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 6.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007438 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 60, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 47.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 16.11, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 6.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ace10_0036", "family": "enclosure", "tier": 1, "seed": 2468007440, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "dce183ec41e3ebce", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33500.0, "surface_area": 14800.0, "principal_moments": [10100000.0, 14499999.999999998, 14699999.999999998], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 50, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 35.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 39.4, "min": 15.8, "max": 78.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007440 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 50, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 35.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 39.4, \"min\": 15.8, \"max\": 78.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace11_0037", "family": "revolved", "tier": 2, "seed": 2468007441, "symmetry": "none", "op_count": 1, "ir_hash": "e5d46cd778ec2949", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 312000.0, "surface_area": 50500.0, "principal_moments": [291000000.0, 480000000.0, 480000000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 47.92, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 139.8, "min": 41.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 103.5, "min": 57.5, "max": 143.8, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 21.7, "min": 6.5, "max": 69.9, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007441 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 47.92, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 139.8, \"min\": 41.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 103.5, \"min\": 57.5, \"max\": 143.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 21.7, \"min\": 6.5, \"max\": 69.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ace12_0038", "family": "enclosure", "tier": 2, "seed": 2468007442, "symmetry": "none", "op_count": 3, "ir_hash": "6c13d476c23fa59c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 65500.0, "surface_area": 25100.0, "principal_moments": [26899999.999999996, 56599999.99999999, 61499999.99999999], "n_faces": 19, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 80, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 43.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 41.8, "min": 16.7, "max": 83.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.9, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007442 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 80, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 43.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 41.8, \"min\": 16.7, \"max\": 83.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.9, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace13_0039", "family": "block", "tier": 2, "seed": 2468007443, "symmetry": "radial", "op_count": 3, "ir_hash": "9c9916436969f6a7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 190000.0, "surface_area": 33000.0, "principal_moments": [80900000.0, 185000000.0, 225000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 60.36, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 35.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 18.1, "min": 12.1, "max": 27.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "boss_d": {"type": "float", "default": 24.7, "min": 12.3, "max": 49.4, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 7.5, "min": 3.0, "max": 18.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 17.3, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007443 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 60.36, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 35.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 18.1, \"min\": 12.1, \"max\": 27.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"boss_d\": {\"type\": 'float', \"default\": 24.7, \"min\": 12.3, \"max\": 49.4, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 7.5, \"min\": 3.0, \"max\": 18.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 17.3, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace15_0041", "family": "compound", "tier": 3, "seed": 2468007445, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "1320f9b609b7e542", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39900.0, "surface_area": 8340.0, "principal_moments": [7440000.0, 7910000.0, 11699999.999999998], "n_faces": 21, "n_edges": 54, "n_vertices": 36}, "params": {"block_w": {"type": "float", "default": 41.22, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 41.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 23.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 7.2, "min": 2.9, "max": 16.3, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 17.1, "min": 2.2, "max": 28.8, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 4.1, "min": 2.0, "max": 5.2, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007445 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 41.22, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 41.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 23.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 7.2, \"min\": 2.9, \"max\": 16.3, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 17.1, \"min\": 2.2, \"max\": 28.8, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 4.1, \"min\": 2.0, \"max\": 5.2, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.05159249509757508)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ace16_0042", "family": "gear", "tier": 1, "seed": 2468007446, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "3fbe23cb2340485a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 75000.0, "surface_area": 16500.0, "principal_moments": [24599999.999999996, 24599999.999999996, 42200000.0], "n_faces": 81, "n_edges": 237, "n_vertices": 158}, "params": {"module": {"type": "float", "default": 5.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 13, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 23.7, "min": 9.5, "max": 59.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 7.8, "min": 2.0, "max": 31.5, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007446 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 5.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 13, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 23.7, \"min\": 9.5, \"max\": 59.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 7.8, \"min\": 2.0, \"max\": 31.5, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace17_0043", "family": "compound", "tier": 2, "seed": 2468007447, "symmetry": "none", "op_count": 5, "ir_hash": "07107d33f705dede", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 46500.0, "surface_area": 9690.0, "principal_moments": [8610000.0, 11100000.0, 13799999.999999998], "n_faces": 35, "n_edges": 90, "n_vertices": 60}, "params": {"block_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 27.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 38.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 3.4, "min": 1.7, "max": 6.2, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 7.3, "min": 1.6, "max": 18.8, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007447 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 27.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 38.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 3.4, \"min\": 1.7, \"max\": 6.2, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 7.3, \"min\": 1.6, \"max\": 18.8, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ace18_0044", "family": "profiled", "tier": 1, "seed": 2468007448, "symmetry": "none", "op_count": 1, "ir_hash": "f44608318db28d8a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26000.0, "surface_area": 5720.0, "principal_moments": [1490000.0, 12199999.999999998, 12199999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"circ_r": {"type": "float", "default": 11.25, "min": 5.6, "max": 22.5, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 72.7, "min": 21.8, "max": 218.1, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007448 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 11.25, \"min\": 5.6, \"max\": 22.5, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 72.7, \"min\": 21.8, \"max\": 218.1, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace1a_0046", "family": "bracket", "tier": 1, "seed": 2468007450, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "3841b50ad0084d31", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9680.0, "surface_area": 5730.0, "principal_moments": [1620000.0, 2050000.0, 2830000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 32.65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 34.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 38.51, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007450 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 32.65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 34.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 38.51, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace1d_0049", "family": "block", "tier": 1, "seed": 2468007453, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "8567a815a5f68876", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 121000.0, "surface_area": 19600.0, "principal_moments": [50499999.99999999, 53899999.99999999, 88800000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 27.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 67.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.3, "min": 2.0, "max": 2.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007453 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 27.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 67.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.3, \"min\": 2.0, \"max\": 2.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 16.2\n _ssy = 18.8\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace1e_0050", "family": "bracket", "tier": 2, "seed": 2468007454, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "27a645e35c64483e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33500.0, "surface_area": 11100.0, "principal_moments": [6430000.0, 18900000.0, 21000000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 40, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 45.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 38.79, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 40.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 11.0, "min": 4.0, "max": 19.4, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007454 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 40, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 45.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 38.79, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 40.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 11.0, \"min\": 4.0, \"max\": 19.4, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace1f_0051", "family": "block", "tier": 2, "seed": 2468007455, "symmetry": "radial", "op_count": 3, "ir_hash": "b7f2c2634e0a0879", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 188000.0, "surface_area": 26200.0, "principal_moments": [107000000.0, 120000000.0, 194000000.0], "n_faces": 28, "n_edges": 78, "n_vertices": 52}, "params": {"block_w": {"type": "float", "default": 76.55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 31.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 81.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 23.0, "min": 15.3, "max": 34.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007455 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 76.55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 31.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 81.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 23.0, \"min\": 15.3, \"max\": 34.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.07859485065641958)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ace20_0052", "family": "threaded", "tier": 3, "seed": 2468007456, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "d9e4aae0f7dd412b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 532.0, "surface_area": 674.0, "principal_moments": [1980.0, 24800.0, 24800.0], "n_faces": 240, "n_edges": 614, "n_vertices": 376}, "params": {"major_d": {"type": "float", "default": 6.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.0, "min": 0.5, "max": 2.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 23.3, "min": 9.3, "max": 46.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007456 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.5, \"max\": 2.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 23.3, \"min\": 9.3, \"max\": 46.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace21_0053", "family": "block", "tier": 1, "seed": 2468007457, "symmetry": "none", "op_count": 2, "ir_hash": "2bf556fb43a9d986", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 413000.0, "surface_area": 42700.0, "principal_moments": [360000000.0, 416000000.0, 632000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 91.32, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 45.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007457 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 91.32, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 45.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 22.8\n _ssy = 22.2\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ace22_0054", "family": "flanged", "tier": 2, "seed": 2468007458, "symmetry": "none", "op_count": 3, "ir_hash": "21879522a976577a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 222000.0, "surface_area": 41800.0, "principal_moments": [217000000.0, 217000000.0, 363000000.0], "n_faces": 18, "n_edges": 37, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 59.36, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 44.4, "min": 13.3, "max": 111.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 19.3, "min": 2.0, "max": 41.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 135.8, "min": 77.2, "max": 178.1, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.7, "min": 2.9, "max": 17.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 40.7, "min": 27.2, "max": 61.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007458 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 59.36, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 44.4, \"min\": 13.3, \"max\": 111.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 19.3, \"min\": 2.0, \"max\": 41.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 135.8, \"min\": 77.2, \"max\": 178.1, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.7, \"min\": 2.9, \"max\": 17.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 40.7, \"min\": 27.2, \"max\": 61.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace26_0058", "family": "compound", "tier": 2, "seed": 2468007462, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "af0f97f5effe24e0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 123000.0, "surface_area": 15100.0, "principal_moments": [29499999.999999996, 84600000.0, 84600000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 46.1, "min": 23.1, "max": 83.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 62.4, "min": 25.0, "max": 124.8, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 27.8, "min": 13.9, "max": 41.5, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 30.9, "min": 9.3, "max": 77.2, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007462 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 46.1, \"min\": 23.1, \"max\": 83.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 62.4, \"min\": 25.0, \"max\": 124.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 27.8, \"min\": 13.9, \"max\": 41.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 30.9, \"min\": 9.3, \"max\": 77.2, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace27_0059", "family": "compound", "tier": 3, "seed": 2468007463, "symmetry": "mirror_xy", "op_count": 5, "ir_hash": "aa1374ac86e898dd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 244000.0, "surface_area": 34200.0, "principal_moments": [148000000.0, 170000000.0, 191000000.0], "n_faces": 35, "n_edges": 98, "n_vertices": 62}, "params": {"block_w": {"type": "float", "default": 57.53, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 66.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 64.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 34.9, "min": 14.0, "max": 55.8, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 56.6, "min": 22.6, "max": 90.6, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 7.7, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}, "block_hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 12.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007463 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 57.53, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 66.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 64.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 34.9, \"min\": 14.0, \"max\": 55.8, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 56.6, \"min\": 22.6, \"max\": 90.6, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 7.7, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n \"block_hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 12.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .rect(p[\"tab_a\"], p[\"tab_b\"]).extrude(p[\"tab_t\"])\n )\n result = (\n result.faces('>Y').workplane()\n .rect(p[\"tab_a\"] * 0.6, p[\"tab_b\"] * 0.6, forConstruction=True)\n .vertices().hole(p[\"tab_hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"block_hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.08316000932366371)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace28_0060", "family": "bracket", "tier": 2, "seed": 2468007464, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "f0febf393d704a58", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5340.0, "surface_area": 3330.0, "principal_moments": [493000.0, 793000.0, 1050000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 26.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 15.82, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 6.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.1, "min": 2.5, "max": 7.9, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007464 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 26.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 15.82, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 6.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.1, \"min\": 2.5, \"max\": 7.9, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace29_0061", "family": "block", "tier": 1, "seed": 2468007465, "symmetry": "radial", "op_count": 2, "ir_hash": "16692bd85f0c7235", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24700.0, "surface_area": 9010.0, "principal_moments": [2570000.0, 7580000.0, 8870000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 30, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 17.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 58.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 9.0, "min": 6.0, "max": 13.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007465 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 17.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 58.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 9.0, \"min\": 6.0, \"max\": 13.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ace2a_0062", "family": "enclosure", "tier": 2, "seed": 2468007466, "symmetry": "none", "op_count": 4, "ir_hash": "f9c8632ecb140e4a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 118000.0, "surface_area": 65700.0, "principal_moments": [147000000.0, 208000000.0, 272000000.0], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 110, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 47.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 95.6, "min": 38.2, "max": 191.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 10.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007466 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 110, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 47.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 95.6, \"min\": 38.2, \"max\": 191.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 10.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.06575514924599674)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ace2b_0063", "family": "ribbed", "tier": 3, "seed": 2468007467, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "baf25a7bdeccab06", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23400.0, "surface_area": 8980.0, "principal_moments": [3670000.0, 8360000.0, 9590000.0], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 54.63, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 32.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 18.8, "min": 7.5, "max": 37.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.5, "min": 1.0, "max": 8.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007467 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 54.63, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 32.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 18.8, \"min\": 7.5, \"max\": 37.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 1.0, \"max\": 8.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace2c_0064", "family": "compound", "tier": 2, "seed": 2468007468, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "13e91d4bfbb1c4a4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61200.0, "surface_area": 10900.0, "principal_moments": [15699999.999999998, 15899999.999999998, 24799999.999999996], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 46.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 26.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 6.2, "min": 3.1, "max": 9.1, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 16.6, "min": 3.4, "max": 45.8, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 10.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007468 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 46.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 26.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 6.2, \"min\": 3.1, \"max\": 9.1, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 16.6, \"min\": 3.4, \"max\": 45.8, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 10.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace2d_0065", "family": "revolved", "tier": 1, "seed": 2468007469, "symmetry": "none", "op_count": 2, "ir_hash": "781916699442a793", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6130.0, "surface_area": 4150.0, "principal_moments": [232000.0, 1540000.0, 1540000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 15.0, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 53.4, "min": 16.0, "max": 160.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 8.8, "min": 2.0, "max": 10.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.7, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007469 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 15.0, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 53.4, \"min\": 16.0, \"max\": 160.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 8.8, \"min\": 2.0, \"max\": 10.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.7, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ace32_0070", "family": "profiled", "tier": 2, "seed": 2468007474, "symmetry": "none", "op_count": 1, "ir_hash": "6c95f6e122c4a72b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 145000.0, "surface_area": 24600.0, "principal_moments": [24299999.999999996, 559000000.0, 577000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 45, "min": 22.5, "max": 90.0, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 16.36, "min": 8.2, "max": 32.7, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 214.2, "min": 64.3, "max": 642.6, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007474 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 45, \"min\": 22.5, \"max\": 90.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 16.36, \"min\": 8.2, \"max\": 32.7, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 214.2, \"min\": 64.3, \"max\": 642.6, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace33_0071", "family": "plate", "tier": 1, "seed": 2468007475, "symmetry": "none", "op_count": 2, "ir_hash": "a6f73469fec2129c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26500.0, "surface_area": 9980.0, "principal_moments": [2410000.0, 13999999.999999998, 15799999.999999998], "n_faces": 70, "n_edges": 204, "n_vertices": 136}, "params": {"plate_w": {"type": "float", "default": 79.02, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 30.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 4.8, "step": 0.1, "group": "Holes", "label": "Square hole size (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007475 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 79.02, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 30.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 4.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(21.1, 8.2, p[\"hole_nx\"], p[\"hole_ny\"])\n .rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace34_0072", "family": "bracket", "tier": 1, "seed": 2468007476, "symmetry": "none", "op_count": 1, "ir_hash": "62d05b5118013d28", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13300.0, "surface_area": 6280.0, "principal_moments": [2100000.0, 8220000.0, 9410000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 68.97, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 51.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007476 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 68.97, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 51.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace36_0074", "family": "block", "tier": 2, "seed": 2468007478, "symmetry": "none", "op_count": 3, "ir_hash": "2245a67d8eb2fe46", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 563000.0, "surface_area": 54500.0, "principal_moments": [544000000.0, 723000000.0, 760000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 80.17, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 74.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007478 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80.17, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 74.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.07239629105738571)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace38_0076", "family": "bracket", "tier": 1, "seed": 2468007480, "symmetry": "none", "op_count": 1, "ir_hash": "34abfc38bb9a87ee", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14500.0, "surface_area": 7160.0, "principal_moments": [2640000.0, 3550000.0, 4520000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 36.81, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 38.33, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007480 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 36.81, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 38.33, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace39_0077", "family": "revolved", "tier": 2, "seed": 2468007481, "symmetry": "radial", "op_count": 1, "ir_hash": "9a99440224f4ca1f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 604000.0, "surface_area": 63600.0, "principal_moments": [990000000.0, 990000000.0, 1150000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 65.23, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 96.4, "min": 28.9, "max": 289.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 24.5, "min": 2.0, "max": 45.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 140.5, "min": 78.3, "max": 195.7, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 26.9, "min": 8.1, "max": 48.2, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007481 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65.23, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 96.4, \"min\": 28.9, \"max\": 289.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 24.5, \"min\": 2.0, \"max\": 45.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 140.5, \"min\": 78.3, \"max\": 195.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 26.9, \"min\": 8.1, \"max\": 48.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace3b_0079", "family": "revolved", "tier": 0, "seed": 2468007483, "symmetry": "none", "op_count": 1, "ir_hash": "f9f131236eac24ea", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20100.0, "surface_area": 7190.0, "principal_moments": [4760000.0, 4760000.0, 9130000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 55, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 12.7, "min": 3.8, "max": 38.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007483 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 12.7, \"min\": 3.8, \"max\": 38.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ace3c_0080", "family": "flanged", "tier": 1, "seed": 2468007484, "symmetry": "none", "op_count": 2, "ir_hash": "c89e98861ae956a8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 194000.0, "surface_area": 38300.0, "principal_moments": [144000000.0, 177000000.0, 177000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 55, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 72.9, "min": 21.9, "max": 182.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.9, "min": 2.0, "max": 38.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 116.5, "min": 71.5, "max": 165.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.7, "min": 1.4, "max": 29.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 34.9, "min": 23.3, "max": 52.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007484 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 72.9, \"min\": 21.9, \"max\": 182.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.9, \"min\": 2.0, \"max\": 38.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 116.5, \"min\": 71.5, \"max\": 165.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.7, \"min\": 1.4, \"max\": 29.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 34.9, \"min\": 23.3, \"max\": 52.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace3d_0081", "family": "compound", "tier": 1, "seed": 2468007485, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "652a12cfebb2f616", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 132000.0, "surface_area": 21600.0, "principal_moments": [54499999.99999999, 65599999.99999999, 99599999.99999999], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 57.31, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 30.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 71.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 29.6, "min": 11.8, "max": 47.4, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 51.0, "min": 20.4, "max": 81.6, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.5, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007485 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 57.31, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 30.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 71.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 29.6, \"min\": 11.8, \"max\": 47.4, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 51.0, \"min\": 20.4, \"max\": 81.6, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.5, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .rect(p[\"tab_a\"], p[\"tab_b\"]).extrude(p[\"tab_t\"])\n )\n result = (\n result.faces('>X').workplane()\n .rect(p[\"tab_a\"] * 0.6, p[\"tab_b\"] * 0.6, forConstruction=True)\n .vertices().hole(p[\"tab_hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace3f_0083", "family": "bracket", "tier": 1, "seed": 2468007487, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "57bbd356e91e0787", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11700.0, "surface_area": 5290.0, "principal_moments": [1250000.0, 3910000.0, 3950000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 33.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25.59, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007487 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 33.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25.59, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rarray(8.0, 10.2, p[\"hole_nx\"], p[\"hole_ny\"])\n .slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.11347702535313026)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace41_0085", "family": "revolved", "tier": 1, "seed": 2468007489, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "6e477fcd4050d063", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 183000.0, "surface_area": 37800.0, "principal_moments": [68800000.0, 379000000.0, 379000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 47.75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 150.5, "min": 45.1, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 27.1, "min": 2.0, "max": 33.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007489 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 47.75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 150.5, \"min\": 45.1, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 27.1, \"min\": 2.0, \"max\": 33.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ace42_0086", "family": "flanged", "tier": 2, "seed": 2468007490, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "88e4e1479b1c7c22", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33800.0, "surface_area": 14200.0, "principal_moments": [11599999.999999998, 12399999.999999998, 12399999.999999998], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 30, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 43.7, "min": 13.1, "max": 109.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 15.6, "min": 2.0, "max": 21.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 70.1, "min": 39.0, "max": 90.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.8, "min": 1.1, "max": 17.5, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 21.0, "min": 14.0, "max": 31.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007490 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 43.7, \"min\": 13.1, \"max\": 109.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 15.6, \"min\": 2.0, \"max\": 21.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 70.1, \"min\": 39.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.8, \"min\": 1.1, \"max\": 17.5, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 21.0, \"min\": 14.0, \"max\": 31.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace43_0087", "family": "block", "tier": 1, "seed": 2468007491, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "4ae71a89e6e034b3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 257000.0, "surface_area": 34000.0, "principal_moments": [130000000.0, 229000000.0, 255000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 60, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 48.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 90.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007491 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 60, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 48.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 90.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 15.0\n _ssy = 14.2\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace44_0088", "family": "revolved", "tier": 1, "seed": 2468007492, "symmetry": "none", "op_count": 2, "ir_hash": "c2ca3ae157e3f7aa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 214000.0, "surface_area": 42900.0, "principal_moments": [200000000.0, 200000000.0, 270000000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 55.99, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 73.2, "min": 22.0, "max": 219.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 123.1, "min": 67.2, "max": 168.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.9, "min": 3.0, "max": 36.6, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.6, "min": 0.1, "max": 1.8, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007492 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55.99, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 73.2, \"min\": 22.0, \"max\": 219.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 123.1, \"min\": 67.2, \"max\": 168.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.9, \"min\": 3.0, \"max\": 36.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.6, \"min\": 0.1, \"max\": 1.8, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace46_0090", "family": "plate", "tier": 0, "seed": 2468007494, "symmetry": "none", "op_count": 1, "ir_hash": "1ee7d7c282a8d678", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 800.0, "surface_area": 640.0, "principal_moments": [7730.0, 27700.0, 33300.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 20.0, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 10.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007494 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 20.0, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ace48_0092", "family": "profiled", "tier": 1, "seed": 2468007496, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "e27b90a273d26a57", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 161000.0, "surface_area": 28800.0, "principal_moments": [26699999.999999996, 891000000.0, 912000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 45, "min": 22.5, "max": 90.0, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 15, "min": 7.5, "max": 30.0, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 257.2, "min": 77.2, "max": 771.6, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007496 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 45, \"min\": 22.5, \"max\": 90.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 15, \"min\": 7.5, \"max\": 30.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 257.2, \"min\": 77.2, \"max\": 771.6, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace49_0093", "family": "block", "tier": 1, "seed": 2468007497, "symmetry": "none", "op_count": 2, "ir_hash": "ef36461e912b8b51", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17300.0, "surface_area": 5740.0, "principal_moments": [1620000.0, 2220000.0, 2770000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 19.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 27.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007497 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 19.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 27.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ace4a_0094", "family": "flanged", "tier": 1, "seed": 2468007498, "symmetry": "radial", "op_count": 2, "ir_hash": "492e64ddb8c1f9dc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 806000.0, "surface_area": 97200.0, "principal_moments": [1660000000.0, 1850000000.0, 1850000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 95.76, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 114.2, "min": 34.3, "max": 285.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 47.4, "min": 2.0, "max": 67.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 154.0, "min": 124.5, "max": 287.3, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 16.8, "min": 5.0, "max": 45.7, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 46.2, "min": 30.8, "max": 69.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007498 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 95.76, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 114.2, \"min\": 34.3, \"max\": 285.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 47.4, \"min\": 2.0, \"max\": 67.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 154.0, \"min\": 124.5, \"max\": 287.3, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 16.8, \"min\": 5.0, \"max\": 45.7, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 46.2, \"min\": 30.8, \"max\": 69.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace4b_0095", "family": "compound", "tier": 1, "seed": 2468007499, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "9c5d7fb36a2afb56", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26900.0, "surface_area": 8160.0, "principal_moments": [3700000.0, 6070000.0, 6180000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"base_w": {"type": "float", "default": 45, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 30.0, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 20.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 4.7, "min": 2.4, "max": 7.5, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 30.8, "min": 9.2, "max": 92.4, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 4.1, "min": 2.0, "max": 5.9, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007499 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 45, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 30.0, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 20.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 4.7, \"min\": 2.4, \"max\": 7.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 30.8, \"min\": 9.2, \"max\": 92.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 4.1, \"min\": 2.0, \"max\": 5.9, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ace4c_0096", "family": "ribbed", "tier": 2, "seed": 2468007500, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "e7052c95ddcb4f94", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34300.0, "surface_area": 17000.0, "principal_moments": [8390000.0, 14099999.999999998, 20700000.0], "n_faces": 54, "n_edges": 132, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 70, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 44.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 12.3, "min": 4.9, "max": 24.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.5, "min": 1.0, "max": 11.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007500 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 44.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 12.3, \"min\": 4.9, \"max\": 24.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.0, \"max\": 11.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace4d_0097", "family": "plate", "tier": 1, "seed": 2468007501, "symmetry": "radial", "op_count": 2, "ir_hash": "bca9d8262d29935a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 954.0, "surface_area": 1050.0, "principal_moments": [20000.0, 55100.0, 73700.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 24.86, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 16.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 7.5, "min": 5.0, "max": 11.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007501 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 24.86, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 16.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 7.5, \"min\": 5.0, \"max\": 11.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace4e_0098", "family": "block", "tier": 2, "seed": 2468007502, "symmetry": "none", "op_count": 3, "ir_hash": "0270678251add966", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22400.0, "surface_area": 8940.0, "principal_moments": [3520000.0, 3570000.0, 5590000.0], "n_faces": 16, "n_edges": 38, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 38.11, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 19.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 35.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 19.8, "min": 9.9, "max": 39.6, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 6.3, "min": 2.5, "max": 15.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.9, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007502 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 38.11, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 19.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 35.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 19.8, \"min\": 9.9, \"max\": 39.6, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 6.3, \"min\": 2.5, \"max\": 15.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.9, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace4f_0099", "family": "revolved", "tier": 0, "seed": 2468007503, "symmetry": "radial", "op_count": 1, "ir_hash": "d9015e53b3c857d9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 219000.0, "surface_area": 38500.0, "principal_moments": [99399999.99999999, 300000000.0, 300000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 54.96, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 138.7, "min": 41.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007503 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 54.96, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 138.7, \"min\": 41.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ace50_0100", "family": "flanged", "tier": 2, "seed": 2468007504, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "ce506d2d26faaca7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 48200.0, "surface_area": 16000.0, "principal_moments": [14999999.999999998, 20600000.0, 20600000.0], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 35.65, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 51.9, "min": 15.6, "max": 129.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.9, "min": 2.0, "max": 25.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 68.4, "min": 46.3, "max": 106.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.8, "min": 1.1, "max": 20.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 20.5, "min": 13.7, "max": 30.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007504 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35.65, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 51.9, \"min\": 15.6, \"max\": 129.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.9, \"min\": 2.0, \"max\": 25.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 68.4, \"min\": 46.3, \"max\": 106.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.8, \"min\": 1.1, \"max\": 20.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 20.5, \"min\": 13.7, \"max\": 30.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace51_0101", "family": "revolved", "tier": 1, "seed": 2468007505, "symmetry": "none", "op_count": 1, "ir_hash": "7a1e67321d42bd0a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1150000.0, "surface_area": 109000.0, "principal_moments": [1520000000.0, 7000000000.0, 7000000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 234.2, "min": 70.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 29.3, "min": 2.0, "max": 52.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 134.9, "min": 90.0, "max": 225.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 27.5, "min": 8.2, "max": 117.1, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007505 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 234.2, \"min\": 70.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 29.3, \"min\": 2.0, \"max\": 52.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 134.9, \"min\": 90.0, \"max\": 225.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 27.5, \"min\": 8.2, \"max\": 117.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace52_0102", "family": "revolved", "tier": 1, "seed": 2468007506, "symmetry": "none", "op_count": 1, "ir_hash": "d23af7a87a5ea891", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 267.0, "surface_area": 353.0, "principal_moments": [3020.0, 3020.0, 5250.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 10.92, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 4.2, "min": 1.3, "max": 12.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 6.2, "min": 2.0, "max": 7.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007506 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 10.92, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 4.2, \"min\": 1.3, \"max\": 12.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 6.2, \"min\": 2.0, \"max\": 7.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace53_0103", "family": "revolved", "tier": 2, "seed": 2468007507, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8769a99dd3c48b59", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 74500.0, "surface_area": 20000.0, "principal_moments": [14099999.999999998, 63599999.99999999, 63599999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 35.47, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 113.1, "min": 33.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007507 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35.47, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 113.1, \"min\": 33.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ace55_0105", "family": "ribbed", "tier": 2, "seed": 2468007509, "symmetry": "none", "op_count": 3, "ir_hash": "c484e66a1534ae3a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 57800.0, "surface_area": 26600.0, "principal_moments": [24099999.999999996, 40700000.0, 59799999.99999999], "n_faces": 54, "n_edges": 148, "n_vertices": 92}, "params": {"base_w": {"type": "float", "default": 90, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 63.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.8, "min": 6.7, "max": 33.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.0, "min": 1.0, "max": 10.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007509 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 63.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.8, \"min\": 6.7, \"max\": 33.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.0, \"max\": 10.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace56_0106", "family": "revolved", "tier": 1, "seed": 2468007510, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "ff29a3d5133b0cbc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7960.0, "surface_area": 2800.0, "principal_moments": [433000.0, 737000.0, 737000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 19.97, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 28.2, "min": 8.5, "max": 84.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 6.1, "min": 2.0, "max": 14.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007510 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 19.97, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 28.2, \"min\": 8.5, \"max\": 84.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 6.1, \"min\": 2.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z or Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ace59_0109", "family": "profiled", "tier": 1, "seed": 2468007513, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "187305b31ab812e3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 251000.0, "surface_area": 57800.0, "principal_moments": [60299999.99999999, 1370000000.0, 1370000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 40, "min": 20.0, "max": 80.0, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 300.0, "min": 90.0, "max": 900.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007513 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 300.0, \"min\": 90.0, \"max\": 900.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace5a_0110", "family": "plate", "tier": 1, "seed": 2468007514, "symmetry": "none", "op_count": 2, "ir_hash": "973d7e2a2af85146", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11700.0, "surface_area": 4310.0, "principal_moments": [506000.0, 2810000.0, 3030000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"plate_w": {"type": "float", "default": 52.02, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 19.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 1.9, "min": 2.0, "max": 1.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007514 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 52.02, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 19.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.9, \"min\": 2.0, \"max\": 1.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 9.8\n _ssy = 10.6\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace5b_0111", "family": "bracket", "tier": 2, "seed": 2468007515, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "abea7b81a0655875", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24200.0, "surface_area": 17100.0, "principal_moments": [9450000.0, 25599999.999999996, 26099999.999999996], "n_faces": 14, "n_edges": 45, "n_vertices": 28}, "params": {"base_len": {"type": "float", "default": 84.78, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 62.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 51.75, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.6, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007515 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 84.78, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 62.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 51.75, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.6, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace5c_0112", "family": "revolved", "tier": 0, "seed": 2468007516, "symmetry": "none", "op_count": 1, "ir_hash": "6c6f7c5f48ba8bf0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1930.0, "surface_area": 1820.0, "principal_moments": [28900.0, 169000.0, 169000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 10, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 36.8, "min": 11.0, "max": 110.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007516 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 10, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 36.8, \"min\": 11.0, \"max\": 110.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ace5d_0113", "family": "enclosure", "tier": 1, "seed": 2468007517, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "8de7f0ecfdebb216", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38800.0, "surface_area": 18900.0, "principal_moments": [18000000.0, 18300000.0, 22899999.999999996], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 48.95, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 48.2, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 41.9, "min": 16.8, "max": 83.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007517 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 48.95, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 48.2, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 41.9, \"min\": 16.8, \"max\": 83.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace5e_0114", "family": "plate", "tier": 2, "seed": 2468007518, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "9721db81d6ed123a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13200.0, "surface_area": 5990.0, "principal_moments": [897000.0, 6940000.0, 7760000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 28.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007518 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 28.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08012463808471437)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace5f_0115", "family": "revolved", "tier": 0, "seed": 2468007519, "symmetry": "none", "op_count": 1, "ir_hash": "46293a7124552bdc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6530.0, "surface_area": 3300.0, "principal_moments": [392000.0, 574000.0, 574000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 20, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 31.2, "min": 9.4, "max": 93.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007519 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 20, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 31.2, \"min\": 9.4, \"max\": 93.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace60_0116", "family": "plate", "tier": 1, "seed": 2468007520, "symmetry": "radial", "op_count": 2, "ir_hash": "aa3e0c0e171416b2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 85600.0, "surface_area": 21700.0, "principal_moments": [39800000.0, 97599999.99999999, 136000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 116.37, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 74.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 34.9, "min": 23.3, "max": 52.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007520 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 116.37, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 74.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 34.9, \"min\": 23.3, \"max\": 52.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace61_0117", "family": "plate", "tier": 2, "seed": 2468007521, "symmetry": "radial", "op_count": 3, "ir_hash": "46fbde3174dc6d76", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16400.0, "surface_area": 5280.0, "principal_moments": [1040000.0, 5900000.0, 6670000.0], "n_faces": 28, "n_edges": 78, "n_vertices": 52}, "params": {"plate_w": {"type": "float", "default": 65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 25.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 19.5, "min": 13.0, "max": 29.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007521 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 25.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 19.5, \"min\": 13.0, \"max\": 29.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08688106012378835)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ace62_0118", "family": "gear", "tier": 1, "seed": 2468007522, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "7c967bf3014c18b5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4070.0, "surface_area": 2630.0, "principal_moments": [270000.0, 270000.0, 521000.0], "n_faces": 129, "n_edges": 381, "n_vertices": 254}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 21, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.4, "min": 2.2, "max": 13.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 4.2, "min": 2.0, "max": 16.6, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007522 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 21, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.4, \"min\": 2.2, \"max\": 13.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 4.2, \"min\": 2.0, \"max\": 16.6, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ace63_0119", "family": "threaded", "tier": 2, "seed": 2468007523, "symmetry": "none", "op_count": 1, "ir_hash": "b82d42e56233e420", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24100.0, "surface_area": 9230.0, "principal_moments": [3150000.0, 6630000.0, 6630000.0], "n_faces": 399, "n_edges": 1139, "n_vertices": 742}, "params": {"major_d": {"type": "float", "default": 16.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.0, "min": 1.0, "max": 4.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 50.3, "min": 20.1, "max": 100.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007523 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 4.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 50.3, \"min\": 20.1, \"max\": 100.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace64_0120", "family": "plate", "tier": 1, "seed": 2468007524, "symmetry": "radial", "op_count": 2, "ir_hash": "7408fc6a7a0f2758", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23500.0, "surface_area": 11000.0, "principal_moments": [7940000.0, 11100000.0, 19000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 75, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 63.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 22.5, "min": 15.0, "max": 33.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007524 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 75, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 63.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 22.5, \"min\": 15.0, \"max\": 33.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace65_0121", "family": "bracket", "tier": 2, "seed": 2468007525, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "f3d2e0f5ac2f5d9b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14000.0, "surface_area": 11000.0, "principal_moments": [9940000.0, 12999999.999999998, 22000000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 80.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 2.4, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007525 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 80.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.4, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ace66_0122", "family": "ribbed", "tier": 2, "seed": 2468007526, "symmetry": "none", "op_count": 3, "ir_hash": "4d2c5dd95f33ca10", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37400.0, "surface_area": 15800.0, "principal_moments": [8690000.0, 22200000.0, 29599999.999999996], "n_faces": 46, "n_edges": 128, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 83.1, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 45.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 9.2, "min": 3.7, "max": 18.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.3, "min": 1.0, "max": 8.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 10.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007526 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 83.1, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 45.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 9.2, \"min\": 3.7, \"max\": 18.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.3, \"min\": 1.0, \"max\": 8.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 10.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ace67_0123", "family": "gear", "tier": 1, "seed": 2468007527, "symmetry": "none", "op_count": 1, "ir_hash": "bff1f21445c3d0ff", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34400.0, "surface_area": 10200.0, "principal_moments": [7410000.0, 7410000.0, 13399999.999999998], "n_faces": 111, "n_edges": 327, "n_vertices": 218}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 18, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 16.0, "min": 6.4, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 10.9, "min": 2.0, "max": 27.9, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007527 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 18, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 16.0, \"min\": 6.4, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 10.9, \"min\": 2.0, \"max\": 27.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace68_0124", "family": "revolved", "tier": 2, "seed": 2468007528, "symmetry": "radial", "op_count": 2, "ir_hash": "af26fefb3f2a8a5e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 409000.0, "surface_area": 49300.0, "principal_moments": [157000000.0, 1560000000.0, 1560000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 52.82, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 208.2, "min": 62.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.9, "min": 2.0, "max": 37.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007528 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 52.82, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 208.2, \"min\": 62.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.9, \"min\": 2.0, \"max\": 37.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ace6a_0126", "family": "enclosure", "tier": 1, "seed": 2468007530, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "67e2c7fea313cae5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 43900.0, "surface_area": 30000.0, "principal_moments": [28099999.999999996, 40000000.0, 49999999.99999999], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 75, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 56.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 44.7, "min": 17.9, "max": 89.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007530 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 75, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 56.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 44.7, \"min\": 17.9, \"max\": 89.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ace6b_0127", "family": "gear", "tier": 2, "seed": 2468007531, "symmetry": "none", "op_count": 1, "ir_hash": "040763ad8d244bac", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14800.0, "surface_area": 8040.0, "principal_moments": [3750000.0, 3750000.0, 7430000.0], "n_faces": 323, "n_edges": 963, "n_vertices": 642}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 40, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 18.4, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": -0.25, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.19, "min": 0.0, "max": 0.75, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 10.7, "min": 2.0, "max": 33.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007531 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 40, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 18.4, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.25, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.19, \"min\": 0.0, \"max\": 0.75, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 10.7, \"min\": 2.0, \"max\": 33.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace6c_0128", "family": "block", "tier": 2, "seed": 2468007532, "symmetry": "radial", "op_count": 3, "ir_hash": "f7f4fc62df875550", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 180000.0, "surface_area": 23800.0, "principal_moments": [83500000.0, 102000000.0, 137000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 71.73, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 40.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 62.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 21.5, "min": 14.3, "max": 32.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "boss_d": {"type": "float", "default": 9.7, "min": 4.8, "max": 19.4, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 7.1, "min": 2.8, "max": 17.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007532 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 71.73, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 40.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 62.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 21.5, \"min\": 14.3, \"max\": 32.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"boss_d\": {\"type\": 'float', \"default\": 9.7, \"min\": 4.8, \"max\": 19.4, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 7.1, \"min\": 2.8, \"max\": 17.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace6d_0129", "family": "plate", "tier": 0, "seed": 2468007533, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "652d0817f37ab44f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8410.0, "surface_area": 3140.0, "principal_moments": [659000.0, 928000.0, 1500000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 35.51, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 29.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007533 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 35.51, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 29.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace6e_0130", "family": "plate", "tier": 1, "seed": 2468007534, "symmetry": "radial", "op_count": 2, "ir_hash": "9fb354671a91ad07", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 49800.0, "surface_area": 19500.0, "principal_moments": [24999999.999999996, 50999999.99999999, 75700000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 110, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 77.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 33.0, "min": 22.0, "max": 49.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007534 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 110, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 77.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 33.0, \"min\": 22.0, \"max\": 49.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace70_0132", "family": "revolved", "tier": 2, "seed": 2468007536, "symmetry": "none", "op_count": 2, "ir_hash": "5226fe9115b7898f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 204000.0, "surface_area": 26800.0, "principal_moments": [99399999.99999999, 174000000.0, 174000000.0], "n_faces": 12, "n_edges": 20, "n_vertices": 12}, "params": {"outer_d": {"type": "float", "default": 59.48, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 84.9, "min": 25.5, "max": 254.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 20.5, "min": 2.0, "max": 41.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 2.69, "min": 1.08, "max": 8.07, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 8.7, "min": 3.48, "max": 26.1, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 55.2, "min": 12.7, "max": 72.2, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007536 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 59.48, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 84.9, \"min\": 25.5, \"max\": 254.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 20.5, \"min\": 2.0, \"max\": 41.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 2.69, \"min\": 1.08, \"max\": 8.07, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 8.7, \"min\": 3.48, \"max\": 26.1, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 55.2, \"min\": 12.7, \"max\": 72.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.051033612285629984)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace72_0134", "family": "bracket", "tier": 1, "seed": 2468007538, "symmetry": "none", "op_count": 1, "ir_hash": "8adbb53fba748185", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17600.0, "surface_area": 10400.0, "principal_moments": [6120000.0, 21200000.0, 25299999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 85.92, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 83.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 26.62, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007538 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85.92, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 83.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 26.62, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ace75_0137", "family": "gear", "tier": 1, "seed": 2468007541, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "5c843e36a4f99980", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17700.0, "surface_area": 7680.0, "principal_moments": [3780000.0, 3780000.0, 7410000.0], "n_faces": 231, "n_edges": 687, "n_vertices": 458}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 38, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 7.2, "min": 2.9, "max": 18.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 9.7, "min": 2.0, "max": 31.9, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007541 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 38, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 7.2, \"min\": 2.9, \"max\": 18.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 9.7, \"min\": 2.0, \"max\": 31.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace76_0138", "family": "block", "tier": 1, "seed": 2468007542, "symmetry": "none", "op_count": 2, "ir_hash": "14b277a1647a0082", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 529000.0, "surface_area": 49000.0, "principal_moments": [530000000.0, 586000000.0, 826000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 93.96, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 57.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007542 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 93.96, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 57.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace77_0139", "family": "compound", "tier": 1, "seed": 2468007543, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "90aa22107d306c92", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 48600.0, "surface_area": 10100.0, "principal_moments": [10600000.0, 11300000.0, 17500000.0], "n_faces": 24, "n_edges": 64, "n_vertices": 42}, "params": {"block_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 47.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 23.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 3.9, "min": 1.9, "max": 5.2, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 9.1, "min": 1.7, "max": 20.3, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 3.8, "min": 2.0, "max": 4.9, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007543 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 47.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 23.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 3.9, \"min\": 1.9, \"max\": 5.2, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 9.1, \"min\": 1.7, \"max\": 20.3, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 4.9, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace7a_0142", "family": "block", "tier": 1, "seed": 2468007546, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "9a19ea81dcb7e658", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 57600.0, "surface_area": 12000.0, "principal_moments": [10600000.0, 19000000.0, 20900000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 29.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 36.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.6, "min": 2.0, "max": 3.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007546 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 29.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 36.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.6, \"min\": 2.0, \"max\": 3.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 10.3\n _ssy = 9.9\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ace7b_0143", "family": "flanged", "tier": 1, "seed": 2468007547, "symmetry": "none", "op_count": 2, "ir_hash": "7cd48afbaf4283f7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 202000.0, "surface_area": 42200.0, "principal_moments": [186000000.0, 186000000.0, 305000000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"outer_d": {"type": "float", "default": 65, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 43.0, "min": 12.9, "max": 107.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 26.4, "min": 2.0, "max": 45.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 134.5, "min": 84.5, "max": 195.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.7, "min": 2.3, "max": 17.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 40.4, "min": 26.9, "max": 60.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007547 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 43.0, \"min\": 12.9, \"max\": 107.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 26.4, \"min\": 2.0, \"max\": 45.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 134.5, \"min\": 84.5, \"max\": 195.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.7, \"min\": 2.3, \"max\": 17.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 40.4, \"min\": 26.9, \"max\": 60.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ace7c_0144", "family": "threaded", "tier": 0, "seed": 2468007548, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "106031aab42e75d9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23100.0, "surface_area": 7390.0, "principal_moments": [1440000.0, 7590000.0, 7590000.0], "n_faces": 357, "n_edges": 981, "n_vertices": 626}, "params": {"major_d": {"type": "float", "default": 24.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 3.0, "min": 1.5, "max": 6.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 60.0, "min": 24.0, "max": 120.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007548 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 24.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.5, \"max\": 6.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 60.0, \"min\": 24.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ace7d_0145", "family": "enclosure", "tier": 2, "seed": 2468007549, "symmetry": "none", "op_count": 4, "ir_hash": "8ce2358592ad375d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29900.0, "surface_area": 20800.0, "principal_moments": [10300000.0, 20200000.0, 22400000.0], "n_faces": 35, "n_edges": 108, "n_vertices": 72}, "params": {"enc_w": {"type": "float", "default": 69.23, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 30.7, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 46.0, "min": 18.4, "max": 92.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.1, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 6.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007549 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 69.23, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 30.7, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 46.0, \"min\": 18.4, \"max\": 92.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.1, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 6.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.0616690929477038)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ace7e_0146", "family": "ribbed", "tier": 2, "seed": 2468007550, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "1c64a8d2d0f45e05", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45200.0, "surface_area": 16100.0, "principal_moments": [12699999.999999998, 23499999.999999996, 30499999.999999996], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 70, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 47.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 19.8, "min": 7.9, "max": 39.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.6, "min": 1.0, "max": 14.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007550 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 47.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 19.8, \"min\": 7.9, \"max\": 39.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 1.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace7f_0147", "family": "revolved", "tier": 0, "seed": 2468007551, "symmetry": "none", "op_count": 1, "ir_hash": "10555198b27a9c52", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 52000.0, "surface_area": 12100.0, "principal_moments": [17600000.0, 17600000.0, 31399999.999999996], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 63.42, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 24.7, "min": 7.4, "max": 74.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007551 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 63.42, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 24.7, \"min\": 7.4, \"max\": 74.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace80_0148", "family": "block", "tier": 3, "seed": 2468007552, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "b645cda9030db9de", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4480.0, "surface_area": 2740.0, "principal_moments": [202000.0, 245000.0, 350000.0], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 20, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 11.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 23.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.2, "min": 2.0, "max": 2.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 10.3, "min": 5.2, "max": 16.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 5.4, "min": 2.7, "max": 9.0, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 7.8, "min": 3.1, "max": 20.1, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}, "filleted2": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007552 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 11.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 23.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 2.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 10.3, \"min\": 5.2, \"max\": 16.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 5.4, \"min\": 2.7, \"max\": 9.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 7.8, \"min\": 3.1, \"max\": 20.1, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n \"filleted2\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.07592734080107735)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace81_0149", "family": "compound", "tier": 1, "seed": 2468007553, "symmetry": "none", "op_count": 3, "ir_hash": "8daa9b054676329a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 413000.0, "surface_area": 42800.0, "principal_moments": [380000000.0, 380000000.0, 463000000.0], "n_faces": 14, "n_edges": 34, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 80.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 65.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 18.4, "min": 7.4, "max": 29.4, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 25.0, "min": 4.6, "max": 55.2, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 10.6, "min": 2.0, "max": 13.2, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007553 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 80.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 65.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 18.4, \"min\": 7.4, \"max\": 29.4, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 4.6, \"max\": 55.2, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 10.6, \"min\": 2.0, \"max\": 13.2, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ace83_0151", "family": "flanged", "tier": 2, "seed": 2468007555, "symmetry": "none", "op_count": 2, "ir_hash": "8a1fd7625197345d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39100.0, "surface_area": 14300.0, "principal_moments": [12499999.999999998, 12499999.999999998, 20000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 35, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 26.4, "min": 7.9, "max": 66.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 12.9, "min": 2.0, "max": 24.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 79.0, "min": 45.5, "max": 105.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.5, "min": 1.3, "max": 10.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 23.7, "min": 15.8, "max": 35.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007555 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 26.4, \"min\": 7.9, \"max\": 66.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 12.9, \"min\": 2.0, \"max\": 24.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 79.0, \"min\": 45.5, \"max\": 105.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.3, \"max\": 10.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 23.7, \"min\": 15.8, \"max\": 35.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace84_0152", "family": "compound", "tier": 1, "seed": 2468007556, "symmetry": "none", "op_count": 2, "ir_hash": "53e89ac7e2f1819f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32200.0, "surface_area": 6920.0, "principal_moments": [2310000.0, 17800000.0, 17800000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 25.36, "min": 12.7, "max": 45.6, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 55.0, "min": 22.0, "max": 110.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 11.5, "min": 5.8, "max": 22.8, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 42.4, "min": 12.7, "max": 106.0, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007556 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 25.36, \"min\": 12.7, \"max\": 45.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 55.0, \"min\": 22.0, \"max\": 110.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 11.5, \"min\": 5.8, \"max\": 22.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 42.4, \"min\": 12.7, \"max\": 106.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ace85_0153", "family": "ribbed", "tier": 1, "seed": 2468007557, "symmetry": "none", "op_count": 2, "ir_hash": "de6ded6cc567d57b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31400.0, "surface_area": 14700.0, "principal_moments": [7510000.0, 15099999.999999998, 21400000.0], "n_faces": 46, "n_edges": 112, "n_vertices": 68}, "params": {"base_w": {"type": "float", "default": 75, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 38.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 10.1, "min": 4.0, "max": 20.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.6, "min": 1.0, "max": 14.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007557 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 75, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 38.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 10.1, \"min\": 4.0, \"max\": 20.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 1.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace86_0154", "family": "plate", "tier": 1, "seed": 2468007558, "symmetry": "none", "op_count": 2, "ir_hash": "5d9b4790219c9120", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24600.0, "surface_area": 10300.0, "principal_moments": [3300000.0, 22400000.0, 25499999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 104.86, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 39.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 9.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007558 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 104.86, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 39.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 9.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace87_0155", "family": "compound", "tier": 2, "seed": 2468007559, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "62860ff9b9a1f595", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 194000.0, "surface_area": 32900.0, "principal_moments": [168000000.0, 205000000.0, 266000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"base_w": {"type": "float", "default": 107.59, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 93.2, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 16.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 28.8, "min": 11.5, "max": 46.6, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 57.0, "min": 17.1, "max": 171.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007559 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 107.59, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 93.2, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 16.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 28.8, \"min\": 11.5, \"max\": 46.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 57.0, \"min\": 17.1, \"max\": 171.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ace88_0156", "family": "gear", "tier": 2, "seed": 2468007560, "symmetry": "none", "op_count": 1, "ir_hash": "35d3fdb381c4e575", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12800.0, "surface_area": 5350.0, "principal_moments": [1550000.0, 1550000.0, 2900000.0], "n_faces": 203, "n_edges": 603, "n_vertices": 402}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 25, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 9.5, "min": 3.8, "max": 23.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 28.1, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": -0.16, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.32, "min": 0.0, "max": 0.75, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 20.2, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007560 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 25, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 9.5, \"min\": 3.8, \"max\": 23.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 28.1, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.16, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.32, \"min\": 0.0, \"max\": 0.75, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 20.2, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace89_0157", "family": "bracket", "tier": 2, "seed": 2468007561, "symmetry": "none", "op_count": 1, "ir_hash": "d62226e4142886b0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13000.0, "surface_area": 7560.0, "principal_moments": [1960000.0, 4370000.0, 5600000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 26.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 38.49, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 30.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 3.6, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007561 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 26.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 38.49, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 30.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.6, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace8a_0158", "family": "plate", "tier": 1, "seed": 2468007562, "symmetry": "radial", "op_count": 2, "ir_hash": "03517b56509b369a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29000.0, "surface_area": 9760.0, "principal_moments": [5260000.0, 15699999.999999998, 20700000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 46.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.0, "min": 16.0, "max": 36.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007562 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 46.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.0, \"min\": 16.0, \"max\": 36.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace8b_0159", "family": "plate", "tier": 2, "seed": 2468007563, "symmetry": "none", "op_count": 3, "ir_hash": "8418801c27c4e2b0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5240.0, "surface_area": 2860.0, "principal_moments": [153000.0, 1100000.0, 1220000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"plate_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 18.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.1, "min": 2.0, "max": 2.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007563 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 18.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.1, \"min\": 2.0, \"max\": 2.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(13.3, 14.5, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.11739933985670489)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ace8c_0160", "family": "ribbed", "tier": 1, "seed": 2468007564, "symmetry": "none", "op_count": 2, "ir_hash": "e97a5a8a6a23a1f4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22400.0, "surface_area": 8580.0, "principal_moments": [3230000.0, 4510000.0, 6400000.0], "n_faces": 26, "n_edges": 60, "n_vertices": 40}, "params": {"base_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 37.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 11.3, "min": 4.5, "max": 22.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.4, "min": 1.0, "max": 8.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007564 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 37.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 11.3, \"min\": 4.5, \"max\": 22.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.4, \"min\": 1.0, \"max\": 8.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace8d_0161", "family": "plate", "tier": 2, "seed": 2468007565, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "c426583e04429740", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19900.0, "surface_area": 8530.0, "principal_moments": [1960000.0, 16199999.999999998, 18000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 99.24, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 34.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 7.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007565 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 99.24, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 34.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 7.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.05295773231034656)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace8e_0162", "family": "compound", "tier": 2, "seed": 2468007566, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "a47bdfd86af4d3a0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 69700.0, "surface_area": 15400.0, "principal_moments": [23299999.999999996, 28499999.999999996, 28499999.999999996], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 28.77, "min": 17.3, "max": 46.0, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 28.6, "min": 11.4, "max": 71.5, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 30.3, "min": 15.2, "max": 39.9, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 33.5, "min": 10.0, "max": 83.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 18.0, "min": 2.0, "max": 21.8, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007566 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 28.77, \"min\": 17.3, \"max\": 46.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 28.6, \"min\": 11.4, \"max\": 71.5, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 30.3, \"min\": 15.2, \"max\": 39.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 33.5, \"min\": 10.0, \"max\": 83.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 18.0, \"min\": 2.0, \"max\": 21.8, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_r\"], p[\"base_r\"]) * 0.1195943095245777)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace8f_0163", "family": "revolved", "tier": 1, "seed": 2468007567, "symmetry": "none", "op_count": 1, "ir_hash": "274f2f2dca243076", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 195000.0, "surface_area": 43900.0, "principal_moments": [170000000.0, 170000000.0, 260000000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 65.74, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 57.6, "min": 17.3, "max": 172.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 131.8, "min": 78.9, "max": 197.2, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.3, "min": 1.9, "max": 28.8, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007567 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65.74, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 57.6, \"min\": 17.3, \"max\": 172.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 131.8, \"min\": 78.9, \"max\": 197.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.3, \"min\": 1.9, \"max\": 28.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ace90_0164", "family": "threaded", "tier": 0, "seed": 2468007568, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d40fa87c686ce570", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10300.0, "surface_area": 4800.0, "principal_moments": [285000.0, 3210000.0, 3210000.0], "n_faces": 537, "n_edges": 1481, "n_vertices": 946}, "params": {"major_d": {"type": "float", "default": 16.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.0, "min": 1.0, "max": 4.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 60.0, "min": 24.0, "max": 120.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007568 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 4.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 60.0, \"min\": 24.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace91_0165", "family": "block", "tier": 3, "seed": 2468007569, "symmetry": "mirror_xy", "op_count": 5, "ir_hash": "a5b049355e2ec43f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 382000.0, "surface_area": 52000.0, "principal_moments": [309000000.0, 376000000.0, 456000000.0], "n_faces": 26, "n_edges": 66, "n_vertices": 44}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 59.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 90.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 5.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "boss_d": {"type": "float", "default": 10.6, "min": 5.3, "max": 21.2, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 10.9, "min": 4.4, "max": 27.2, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 7.4, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}, "filleted2": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "side_tube_d": {"type": "float", "default": 18.0, "min": 7.2, "max": 29.6, "step": 1.0, "group": "Side Tube", "label": "Side tube diameter (mm)"}, "side_tube_len": {"type": "float", "default": 30.1, "min": 9.0, "max": 54.0, "step": 1.0, "group": "Side Tube", "label": "Side tube length (mm)"}, "side_bore_d": {"type": "float", "default": 8.7, "min": 2.0, "max": 13.5, "step": 0.5, "group": "Side Tube", "label": "Side bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007569 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 59.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 90.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 5.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"boss_d\": {\"type\": 'float', \"default\": 10.6, \"min\": 5.3, \"max\": 21.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 10.9, \"min\": 4.4, \"max\": 27.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 7.4, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n \"filleted2\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"side_tube_d\": {\"type\": 'float', \"default\": 18.0, \"min\": 7.2, \"max\": 29.6, \"step\": 1.0, \"group\": 'Side Tube', \"label\": 'Side tube diameter (mm)'},\n \"side_tube_len\": {\"type\": 'float', \"default\": 30.1, \"min\": 9.0, \"max\": 54.0, \"step\": 1.0, \"group\": 'Side Tube', \"label\": 'Side tube length (mm)'},\n \"side_bore_d\": {\"type\": 'float', \"default\": 8.7, \"min\": 2.0, \"max\": 13.5, \"step\": 0.5, \"group\": 'Side Tube', \"label\": 'Side bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 14.1\n _ssy = 16.8\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.06565858028803993)\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"side_tube_d\"] / 2).extrude(p[\"side_tube_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"side_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ace92_0166", "family": "ribbed", "tier": 2, "seed": 2468007570, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "4e991c14b68e001d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9380.0, "surface_area": 6400.0, "principal_moments": [1100000.0, 2120000.0, 2700000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 26.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 14.0, "min": 5.6, "max": 28.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.8, "min": 1.0, "max": 9.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007570 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 26.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 14.0, \"min\": 5.6, \"max\": 28.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.8, \"min\": 1.0, \"max\": 9.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace93_0167", "family": "plate", "tier": 2, "seed": 2468007571, "symmetry": "none", "op_count": 3, "ir_hash": "bc8eb4602acabe87", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 51100.0, "surface_area": 14500.0, "principal_moments": [9310000.0, 55299999.99999999, 63699999.99999999], "n_faces": 22, "n_edges": 48, "n_vertices": 32}, "params": {"plate_w": {"type": "float", "default": 115, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 46.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 10.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "cb_d": {"type": "float", "default": 10.6, "min": 7.9, "max": 15.9, "step": 0.5, "group": "Holes", "label": "Counterbore diameter (mm)"}, "cb_depth": {"type": "float", "default": 4.2, "min": 2.1, "max": 8.4, "step": 0.5, "group": "Holes", "label": "Counterbore depth (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007571 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 115, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 46.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 10.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"cb_d\": {\"type\": 'float', \"default\": 10.6, \"min\": 7.9, \"max\": 15.9, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Counterbore diameter (mm)'},\n \"cb_depth\": {\"type\": 'float', \"default\": 4.2, \"min\": 2.1, \"max\": 8.4, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Counterbore depth (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cboreHole(p[\"hole_d\"], p[\"cb_d\"], p[\"cb_depth\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.10186735980320526)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace94_0168", "family": "revolved", "tier": 2, "seed": 2468007572, "symmetry": "none", "op_count": 2, "ir_hash": "595cf75f431f4dd8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 774000.0, "surface_area": 115000.0, "principal_moments": [729000000.0, 5820000000.0, 5820000000.0], "n_faces": 12, "n_edges": 20, "n_vertices": 12}, "params": {"outer_d": {"type": "float", "default": 75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 286.7, "min": 86.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 44.9, "min": 2.0, "max": 52.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 5.55, "min": 2.22, "max": 16.65, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 31.84, "min": 12.74, "max": 95.52, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 94.3, "min": 43.0, "max": 243.7, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.7, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007572 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 286.7, \"min\": 86.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 44.9, \"min\": 2.0, \"max\": 52.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 5.55, \"min\": 2.22, \"max\": 16.65, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 31.84, \"min\": 12.74, \"max\": 95.52, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 94.3, \"min\": 43.0, \"max\": 243.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.7, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace96_0170", "family": "bracket", "tier": 2, "seed": 2468007574, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "85e22ea01203e9f3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11300.0, "surface_area": 8200.0, "principal_moments": [2500000.0, 3590000.0, 4720000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 37.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.9, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007574 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 37.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.9, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace97_0171", "family": "compound", "tier": 3, "seed": 2468007575, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "7bad16a1efb95a09", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31400.0, "surface_area": 6660.0, "principal_moments": [4950000.0, 5310000.0, 5870000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 30.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 29.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 4.3, "min": 2.1, "max": 10.2, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 16.3, "min": 2.2, "max": 29.8, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.4, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007575 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 30.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 29.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.1, \"max\": 10.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 16.3, \"min\": 2.2, \"max\": 29.8, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.4, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.11847668435308945)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace99_0173", "family": "block", "tier": 3, "seed": 2468007577, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "83e642c339a9a42b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 173000.0, "surface_area": 28100.0, "principal_moments": [72900000.0, 130000000.0, 140000000.0], "n_faces": 51, "n_edges": 144, "n_vertices": 96}, "params": {"block_w": {"type": "float", "default": 80, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 45.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 56.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.3, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "pocket_w": {"type": "float", "default": 43.8, "min": 21.9, "max": 64.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 27.5, "min": 13.8, "max": 36.3, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 18.2, "min": 7.3, "max": 47.6, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}, "filleted2": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007577 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 45.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 56.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.3, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 43.8, \"min\": 21.9, \"max\": 64.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 27.5, \"min\": 13.8, \"max\": 36.3, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 18.2, \"min\": 7.3, \"max\": 47.6, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n \"filleted2\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.051845805196480826)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace9a_0174", "family": "bracket", "tier": 1, "seed": 2468007578, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "0dbdd1d9596a5e27", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12400.0, "surface_area": 9120.0, "principal_moments": [3140000.0, 4370000.0, 6260000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 34.12, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 38.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 60.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007578 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 34.12, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 38.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 60.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ace9c_0176", "family": "gear", "tier": 2, "seed": 2468007580, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8f2249f7a89f094b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6570.0, "surface_area": 3430.0, "principal_moments": [538000.0, 538000.0, 1020000.0], "n_faces": 179, "n_edges": 531, "n_vertices": 354}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 22, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 7.2, "min": 2.9, "max": 18.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 13.6, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.24, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.26, "min": 0.0, "max": 0.75, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 5.1, "min": 2.0, "max": 17.6, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007580 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 22, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 7.2, \"min\": 2.9, \"max\": 18.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 13.6, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.24, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.26, \"min\": 0.0, \"max\": 0.75, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 5.1, \"min\": 2.0, \"max\": 17.6, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ace9d_0177", "family": "gear", "tier": 0, "seed": 2468007581, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ea3183b170e4734d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 69600.0, "surface_area": 17600.0, "principal_moments": [31799999.999999996, 31799999.999999996, 61799999.99999999], "n_faces": 170, "n_edges": 504, "n_vertices": 336}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 28, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 12.7, "min": 5.1, "max": 31.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007581 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 28, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 12.7, \"min\": 5.1, \"max\": 31.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace9e_0178", "family": "compound", "tier": 1, "seed": 2468007582, "symmetry": "none", "op_count": 2, "ir_hash": "d53ef509e881ba46", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26800.0, "surface_area": 8600.0, "principal_moments": [6060000.0, 6060000.0, 6120000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 25, "min": 15.0, "max": 40.0, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 13.2, "min": 5.3, "max": 33.0, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 22.0, "min": 11.0, "max": 34.6, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 28.3, "min": 8.5, "max": 70.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 12.9, "min": 2.0, "max": 15.8, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007582 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 13.2, \"min\": 5.3, \"max\": 33.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 22.0, \"min\": 11.0, \"max\": 34.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 28.3, \"min\": 8.5, \"max\": 70.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 12.9, \"min\": 2.0, \"max\": 15.8, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace9f_0179", "family": "revolved", "tier": 2, "seed": 2468007583, "symmetry": "none", "op_count": 1, "ir_hash": "481ea051b38c0997", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 296000.0, "surface_area": 44600.0, "principal_moments": [317000000.0, 317000000.0, 477000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 75.43, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 56.4, "min": 16.9, "max": 169.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 41.2, "min": 2.0, "max": 52.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 124.1, "min": 90.5, "max": 226.3, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 15.6, "min": 4.7, "max": 28.2, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007583 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75.43, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 56.4, \"min\": 16.9, \"max\": 169.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 41.2, \"min\": 2.0, \"max\": 52.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 124.1, \"min\": 90.5, \"max\": 226.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 15.6, \"min\": 4.7, \"max\": 28.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acea0_0180", "family": "compound", "tier": 2, "seed": 2468007584, "symmetry": "none", "op_count": 5, "ir_hash": "ddfc33db074aedf2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26200.0, "surface_area": 7280.0, "principal_moments": [3650000.0, 3980000.0, 5740000.0], "n_faces": 21, "n_edges": 49, "n_vertices": 31}, "params": {"block_w": {"type": "float", "default": 35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 37.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 20.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 5.0, "min": 2.0, "max": 9.4, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 6.6, "min": 1.2, "max": 15.0, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 2.7, "min": 2.0, "max": 3.6, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 7.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007584 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 37.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 20.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 9.4, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 6.6, \"min\": 1.2, \"max\": 15.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 2.7, \"min\": 2.0, \"max\": 3.6, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 7.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acea1_0181", "family": "gear", "tier": 0, "seed": 2468007585, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "bb466532e9dfa48f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 434.0, "surface_area": 509.0, "principal_moments": [4180.0, 4180.0, 5930.0], "n_faces": 62, "n_edges": 180, "n_vertices": 120}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 10, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.8, "min": 2.3, "max": 14.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007585 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 10, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.3, \"max\": 14.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931acea2_0182", "family": "enclosure", "tier": 1, "seed": 2468007586, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "90f8c69706d09d5a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 68900.0, "surface_area": 48300.0, "principal_moments": [73100000.0, 87800000.0, 99499999.99999999], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 80, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 54.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 78.2, "min": 31.3, "max": 156.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.9, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007586 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 80, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 54.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 78.2, \"min\": 31.3, \"max\": 156.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.9, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acea4_0184", "family": "plate", "tier": 2, "seed": 2468007588, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "211e277105272ed0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2700.0, "surface_area": 1740.0, "principal_moments": [54400.0, 153000.0, 162000.0], "n_faces": 42, "n_edges": 120, "n_vertices": 80}, "params": {"plate_w": {"type": "float", "default": 25, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 12.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.6, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007588 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 12.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.6, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.05978793223902179)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acea5_0185", "family": "bracket", "tier": 2, "seed": 2468007589, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "04ba87f7c2fe5d93", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13500.0, "surface_area": 9900.0, "principal_moments": [3230000.0, 6760000.0, 7330000.0], "n_faces": 14, "n_edges": 45, "n_vertices": 28}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 48.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 42.34, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 2.8, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007589 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 48.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 42.34, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.8, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acea7_0187", "family": "block", "tier": 1, "seed": 2468007591, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "9ffc1968d94b5f6c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 76800.0, "surface_area": 15900.0, "principal_moments": [15899999.999999998, 44200000.0, 54099999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 45.21, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 21.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 80.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007591 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45.21, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 21.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 80.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931acea8_0188", "family": "ribbed", "tier": 1, "seed": 2468007592, "symmetry": "none", "op_count": 2, "ir_hash": "21021ed9985df6b4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15900.0, "surface_area": 7870.0, "principal_moments": [1730000.0, 4620000.0, 5680000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 55.35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 28.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 11.3, "min": 4.5, "max": 22.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.1, "min": 1.0, "max": 5.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007592 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 55.35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 28.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 11.3, \"min\": 4.5, \"max\": 22.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.1, \"min\": 1.0, \"max\": 5.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931aceaa_0190", "family": "bracket", "tier": 2, "seed": 2468007594, "symmetry": "none", "op_count": 1, "ir_hash": "936e14b49260dee4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13200.0, "surface_area": 8300.0, "principal_moments": [5690000.0, 6670000.0, 11499999.999999998], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 52.36, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 62.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 19.48, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 7.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.5, "min": 2.0, "max": 9.7, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007594 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 52.36, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 62.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 19.48, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 7.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 2.0, \"max\": 9.7, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931aceab_0191", "family": "bracket", "tier": 3, "seed": 2468007595, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "eb8a792b91914290", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7730.0, "surface_area": 3390.0, "principal_moments": [478000.0, 1280000.0, 1470000.0], "n_faces": 17, "n_edges": 47, "n_vertices": 30}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 34.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 15.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 6.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 11.0, "min": 4.0, "max": 7.5, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007595 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 34.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 15.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 6.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 11.0, \"min\": 4.0, \"max\": 7.5, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931aceac_0192", "family": "gear", "tier": 3, "seed": 2468007596, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "27b2b0f3d12104a2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 668000.0, "surface_area": 80800.0, "principal_moments": [1510000000.0, 1510000000.0, 2950000000.0], "n_faces": 183, "n_edges": 543, "n_vertices": 362}, "params": {"module": {"type": "float", "default": 5.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 36, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 26.2, "min": 10.5, "max": 65.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": 0.39, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.58, "min": 0.0, "max": 2.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 36.2, "min": 2.0, "max": 100.5, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007596 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 5.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 36, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 26.2, \"min\": 10.5, \"max\": 65.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.39, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.58, \"min\": 0.0, \"max\": 2.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 36.2, \"min\": 2.0, \"max\": 100.5, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acead_0193", "family": "flanged", "tier": 1, "seed": 2468007597, "symmetry": "none", "op_count": 2, "ir_hash": "8c1a0bfecebeebea", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 188000.0, "surface_area": 39000.0, "principal_moments": [167000000.0, 167000000.0, 253000000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"outer_d": {"type": "float", "default": 57.44, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 49.1, "min": 14.7, "max": 122.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 25.2, "min": 2.0, "max": 40.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 124.7, "min": 74.7, "max": 172.3, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.0, "min": 2.7, "max": 19.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 37.4, "min": 24.9, "max": 56.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007597 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 57.44, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 49.1, \"min\": 14.7, \"max\": 122.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 25.2, \"min\": 2.0, \"max\": 40.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 124.7, \"min\": 74.7, \"max\": 172.3, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.0, \"min\": 2.7, \"max\": 19.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 37.4, \"min\": 24.9, \"max\": 56.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931aceae_0194", "family": "revolved", "tier": 2, "seed": 2468007598, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "35d86d0edfaec860", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 54800.0, "surface_area": 13400.0, "principal_moments": [16199999.999999998, 16199999.999999998, 24999999.999999996], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 45.53, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 27.1, "min": 8.1, "max": 81.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 14.0, "min": 2.0, "max": 31.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 72.8, "min": 54.6, "max": 136.6, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.9, "min": 1.8, "max": 13.6, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.6, "min": 0.1, "max": 1.8, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007598 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45.53, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 27.1, \"min\": 8.1, \"max\": 81.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 14.0, \"min\": 2.0, \"max\": 31.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 72.8, \"min\": 54.6, \"max\": 136.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.9, \"min\": 1.8, \"max\": 13.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.6, \"min\": 0.1, \"max\": 1.8, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931aceb1_0197", "family": "plate", "tier": 1, "seed": 2468007601, "symmetry": "none", "op_count": 2, "ir_hash": "28941d7880ca5f0c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5800.0, "surface_area": 2980.0, "principal_moments": [252000.0, 981000.0, 1200000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 22.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007601 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 22.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931aceb2_0198", "family": "block", "tier": 2, "seed": 2468007602, "symmetry": "none", "op_count": 3, "ir_hash": "a18b186cecc53fbc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 50900.0, "surface_area": 12000.0, "principal_moments": [11399999.999999998, 12399999.999999998, 19400000.0], "n_faces": 24, "n_edges": 63, "n_vertices": 42}, "params": {"block_w": {"type": "float", "default": 47.57, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 23.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 48.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 6.8, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "boss_d": {"type": "float", "default": 14.0, "min": 7.0, "max": 28.0, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 5.1, "min": 2.0, "max": 12.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007602 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 47.57, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 23.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 48.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 6.8, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 14.0, \"min\": 7.0, \"max\": 28.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 5.1, \"min\": 2.0, \"max\": 12.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931aceb3_0199", "family": "flanged", "tier": 2, "seed": 2468007603, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "94f4f0430cecc7a1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 64300.0, "surface_area": 18200.0, "principal_moments": [22300000.0, 30399999.999999996, 30399999.999999996], "n_faces": 32, "n_edges": 80, "n_vertices": 47}, "params": {"outer_d": {"type": "float", "default": 40, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 54.8, "min": 16.4, "max": 137.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.5, "min": 2.0, "max": 28.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 71.7, "min": 52.0, "max": 120.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.5, "min": 1.3, "max": 21.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 21.5, "min": 14.3, "max": 32.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007603 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 54.8, \"min\": 16.4, \"max\": 137.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.5, \"min\": 2.0, \"max\": 28.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 71.7, \"min\": 52.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.3, \"max\": 21.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 21.5, \"min\": 14.3, \"max\": 32.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931aceb5_0201", "family": "ribbed", "tier": 2, "seed": 2468007605, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "1f4959541b0105d4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24700.0, "surface_area": 9670.0, "principal_moments": [3230000.0, 7960000.0, 10100000.0], "n_faces": 46, "n_edges": 128, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 31.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 7.0, "min": 2.8, "max": 14.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.0, "min": 1.0, "max": 12.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 7.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007605 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 31.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 7.0, \"min\": 2.8, \"max\": 14.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 1.0, \"max\": 12.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 7.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931aceb6_0202", "family": "compound", "tier": 2, "seed": 2468007606, "symmetry": "none", "op_count": 2, "ir_hash": "1abf49a185cb1b20", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 76900.0, "surface_area": 12100.0, "principal_moments": [22100000.0, 31099999.999999996, 31199999.999999996], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"base_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 30.0, "min": 18.0, "max": 48.0, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 28.5, "min": 11.4, "max": 71.2, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 23.1, "min": 11.6, "max": 38.8, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 37.9, "min": 11.4, "max": 94.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007606 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 30.0, \"min\": 18.0, \"max\": 48.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 28.5, \"min\": 11.4, \"max\": 71.2, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 23.1, \"min\": 11.6, \"max\": 38.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 37.9, \"min\": 11.4, \"max\": 94.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931aceb7_0203", "family": "plate", "tier": 0, "seed": 2468007607, "symmetry": "radial", "op_count": 1, "ir_hash": "bd34a1580838a6d7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 55000.0, "surface_area": 12500.0, "principal_moments": [12499999.999999998, 37800000.0, 48999999.99999999], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 90, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 50.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007607 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 50.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931aceb8_0204", "family": "ribbed", "tier": 2, "seed": 2468007608, "symmetry": "none", "op_count": 2, "ir_hash": "bb189b1c22f40446", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12600.0, "surface_area": 7490.0, "principal_moments": [1410000.0, 3700000.0, 4580000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 27.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 11.7, "min": 4.7, "max": 23.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.3, "min": 1.0, "max": 5.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007608 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 27.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 11.7, \"min\": 4.7, \"max\": 23.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.3, \"min\": 1.0, \"max\": 5.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931aceb9_0205", "family": "ribbed", "tier": 1, "seed": 2468007609, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "351cb4dc07e07024", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27000.0, "surface_area": 13000.0, "principal_moments": [7050000.0, 18000000.0, 22899999.999999996], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 75.48, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 46.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 17.3, "min": 6.9, "max": 34.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.5, "min": 1.0, "max": 11.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007609 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 75.48, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 46.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 17.3, \"min\": 6.9, \"max\": 34.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.0, \"max\": 11.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931aceba_0206", "family": "enclosure", "tier": 1, "seed": 2468007610, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "934e84b30ffbe689", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 78100.0, "surface_area": 30600.0, "principal_moments": [48099999.99999999, 55799999.99999999, 81200000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 72.1, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 32.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 70.9, "min": 28.4, "max": 141.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007610 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 72.1, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 32.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 70.9, \"min\": 28.4, \"max\": 141.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acebb_0207", "family": "plate", "tier": 0, "seed": 2468007611, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "71422776f2a958ce", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3730.0, "surface_area": 2960.0, "principal_moments": [146000.0, 1040000.0, 1180000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 57.77, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 21.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007611 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 57.77, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 21.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acebc_0208", "family": "revolved", "tier": 2, "seed": 2468007612, "symmetry": "none", "op_count": 1, "ir_hash": "df9f3115ea0e2e1a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23300.0, "surface_area": 8910.0, "principal_moments": [2180000.0, 8070000.0, 8070000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 25, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 71.1, "min": 21.3, "max": 213.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007612 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 71.1, \"min\": 21.3, \"max\": 213.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acebd_0209", "family": "plate", "tier": 2, "seed": 2468007613, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "498ef02a6f1da0a5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10600.0, "surface_area": 3840.0, "principal_moments": [414000.0, 2270000.0, 2430000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 18.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007613 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 18.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.10956293274715337)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931acebe_0210", "family": "profiled", "tier": 1, "seed": 2468007614, "symmetry": "none", "op_count": 1, "ir_hash": "24a2fef087c4f00e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 133000.0, "surface_area": 29200.0, "principal_moments": [37200000.0, 162000000.0, 162000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 43.27, "min": 21.6, "max": 86.5, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 135.2, "min": 40.6, "max": 405.6, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007614 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 43.27, \"min\": 21.6, \"max\": 86.5, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 135.2, \"min\": 40.6, \"max\": 405.6, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acebf_0211", "family": "revolved", "tier": 1, "seed": 2468007615, "symmetry": "none", "op_count": 1, "ir_hash": "55ebe79cd8a2685f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 125000.0, "surface_area": 26600.0, "principal_moments": [38900000.0, 119000000.0, 119000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 45.49, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 115.6, "min": 34.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007615 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45.49, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 115.6, \"min\": 34.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acec0_0212", "family": "revolved", "tier": 0, "seed": 2468007616, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "f0d6affe03e13c16", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 536000.0, "surface_area": 65900.0, "principal_moments": [514000000.0, 1070000000.0, 1070000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 80.0, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 159.9, "min": 48.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007616 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 80.0, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 159.9, \"min\": 48.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acec1_0213", "family": "plate", "tier": 3, "seed": 2468007617, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "be137bf086623aa9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15700.0, "surface_area": 15900.0, "principal_moments": [6290000.0, 13399999.999999998, 19600000.0], "n_faces": 16, "n_edges": 39, "n_vertices": 26}, "params": {"plate_w": {"type": "float", "default": 105, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 71.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "boss_d": {"type": "float", "default": 12.3, "min": 6.2, "max": 24.6, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 8.2, "min": 3.3, "max": 20.5, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007617 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 105, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 71.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"boss_d\": {\"type\": 'float', \"default\": 12.3, \"min\": 6.2, \"max\": 24.6, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 8.2, \"min\": 3.3, \"max\": 20.5, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09246017714602653)\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acec2_0214", "family": "compound", "tier": 1, "seed": 2468007618, "symmetry": "none", "op_count": 2, "ir_hash": "01bf09e2f395b71b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1570.0, "surface_area": 1260.0, "principal_moments": [47900.0, 47900.0, 60600.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 10.0, "min": 6.0, "max": 16.0, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 4.9, "min": 2.0, "max": 12.2, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 10.5, "min": 5.2, "max": 13.9, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 7.9, "min": 2.4, "max": 19.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 6.2, "min": 2.0, "max": 7.6, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007618 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 10.0, \"min\": 6.0, \"max\": 16.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.0, \"max\": 12.2, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 5.2, \"max\": 13.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 7.9, \"min\": 2.4, \"max\": 19.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 6.2, \"min\": 2.0, \"max\": 7.6, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acec3_0215", "family": "bracket", "tier": 2, "seed": 2468007619, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "5cae5545c444af84", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 83500.0, "surface_area": 25200.0, "principal_moments": [63799999.99999999, 110000000.0, 145000000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 77.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45.56, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 8.9, "min": 4.0, "max": 22.8, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007619 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 77.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45.56, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 8.9, \"min\": 4.0, \"max\": 22.8, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acec4_0216", "family": "plate", "tier": 1, "seed": 2468007620, "symmetry": "none", "op_count": 2, "ir_hash": "6063c1c37249d07c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7240.0, "surface_area": 5550.0, "principal_moments": [1170000.0, 1850000.0, 3010000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 55.47, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 44.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 9.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007620 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 55.47, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 44.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 9.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acec5_0217", "family": "threaded", "tier": 0, "seed": 2468007621, "symmetry": "none", "op_count": 1, "ir_hash": "2b23df162296e6c8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 640.0, "surface_area": 804.0, "principal_moments": [2380.0, 42600.0, 42600.0], "n_faces": 285, "n_edges": 733, "n_vertices": 450}, "params": {"major_d": {"type": "float", "default": 6.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.0, "min": 0.5, "max": 2.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 28.0, "min": 11.2, "max": 56.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007621 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.5, \"max\": 2.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 28.0, \"min\": 11.2, \"max\": 56.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acec6_0218", "family": "bracket", "tier": 1, "seed": 2468007622, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "1c120ef4f339d104", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42600.0, "surface_area": 30400.0, "principal_moments": [47899999.99999999, 67400000.0, 93699999.99999999], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007622 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acec7_0219", "family": "bracket", "tier": 1, "seed": 2468007623, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "adbf8bfe057bf644", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39400.0, "surface_area": 28100.0, "principal_moments": [20900000.0, 92099999.99999999, 93899999.99999999], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 86.34, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 78.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 58.78, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 65.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007623 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 86.34, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 78.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 58.78, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 65.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acec8_0220", "family": "compound", "tier": 1, "seed": 2468007624, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "2fb39d189193bbce", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18500.0, "surface_area": 5650.0, "principal_moments": [1990000.0, 2960000.0, 2980000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 26.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 26.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 11.8, "min": 4.7, "max": 18.2, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 23.3, "min": 3.5, "max": 47.2, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 5.6, "min": 2.0, "max": 8.5, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007624 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 26.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 26.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 11.8, \"min\": 4.7, \"max\": 18.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 23.3, \"min\": 3.5, \"max\": 47.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 5.6, \"min\": 2.0, \"max\": 8.5, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acecc_0224", "family": "block", "tier": 3, "seed": 2468007628, "symmetry": "none", "op_count": 5, "ir_hash": "766f25f1138fbbd1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18100.0, "surface_area": 7910.0, "principal_moments": [1270000.0, 4280000.0, 4750000.0], "n_faces": 49, "n_edges": 138, "n_vertices": 92}, "params": {"block_w": {"type": "float", "default": 25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 16.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 47.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 4.9, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "boss_d": {"type": "float", "default": 14.7, "min": 7.3, "max": 29.4, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 5.5, "min": 2.2, "max": 13.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 10.3, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}, "filleted2": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "side_tube_d": {"type": "float", "default": 4.0, "min": 1.6, "max": 8.4, "step": 1.0, "group": "Side Tube", "label": "Side tube diameter (mm)"}, "side_tube_len": {"type": "float", "default": 5.4, "min": 1.6, "max": 12.0, "step": 1.0, "group": "Side Tube", "label": "Side tube length (mm)"}, "side_bore_d": {"type": "float", "default": 2.4, "min": 2.0, "max": 3.0, "step": 0.5, "group": "Side Tube", "label": "Side bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007628 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 16.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 47.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 4.9, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 14.7, \"min\": 7.3, \"max\": 29.4, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.2, \"max\": 13.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 10.3, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n \"filleted2\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"side_tube_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.6, \"max\": 8.4, \"step\": 1.0, \"group\": 'Side Tube', \"label\": 'Side tube diameter (mm)'},\n \"side_tube_len\": {\"type\": 'float', \"default\": 5.4, \"min\": 1.6, \"max\": 12.0, \"step\": 1.0, \"group\": 'Side Tube', \"label\": 'Side tube length (mm)'},\n \"side_bore_d\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 3.0, \"step\": 0.5, \"group\": 'Side Tube', \"label\": 'Side bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.10851578315822072)\n result = (\n result.faces('Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acecf_0227", "family": "bracket", "tier": 2, "seed": 2468007631, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "152596f609ef0982", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26400.0, "surface_area": 9570.0, "principal_moments": [2900000.0, 32799999.999999996, 33900000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 43.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 69.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 8.2, "min": 4.0, "max": 10.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007631 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 43.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 69.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 8.2, \"min\": 4.0, \"max\": 10.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931aced0_0228", "family": "revolved", "tier": 2, "seed": 2468007632, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "af9ca4203454d521", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 89500.0, "surface_area": 17800.0, "principal_moments": [38000000.0, 38400000.0, 38400000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 53.2, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 60.4, "min": 18.1, "max": 181.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007632 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 53.2, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 60.4, \"min\": 18.1, \"max\": 181.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931aced2_0230", "family": "profiled", "tier": 1, "seed": 2468007634, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "c0d6fb6ef9fae877", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 122000.0, "surface_area": 14900.0, "principal_moments": [25699999.999999996, 101000000.0, 101000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"circ_r": {"type": "float", "default": 21.58, "min": 10.8, "max": 43.2, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 93.0, "min": 27.9, "max": 279.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007634 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 21.58, \"min\": 10.8, \"max\": 43.2, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 93.0, \"min\": 27.9, \"max\": 279.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931aced3_0231", "family": "revolved", "tier": 1, "seed": 2468007635, "symmetry": "none", "op_count": 2, "ir_hash": "b4a00ff6c985716e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 54100.0, "surface_area": 13100.0, "principal_moments": [15399999.999999998, 23299999.999999996, 23299999.999999996], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 29.31, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 55.8, "min": 16.7, "max": 167.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 9.6, "min": 2.0, "max": 20.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 60.0, "min": 35.2, "max": 87.9, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.6, "min": 2.9, "max": 27.9, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007635 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 29.31, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 55.8, \"min\": 16.7, \"max\": 167.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 9.6, \"min\": 2.0, \"max\": 20.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 60.0, \"min\": 35.2, \"max\": 87.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.6, \"min\": 2.9, \"max\": 27.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 3.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931aced6_0234", "family": "plate", "tier": 1, "seed": 2468007638, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3a5a05099462df54", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19200.0, "surface_area": 9300.0, "principal_moments": [2670000.0, 14499999.999999998, 17100000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 95.6, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 40.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 9.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007638 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 95.6, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 40.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 9.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931aced7_0235", "family": "gear", "tier": 0, "seed": 2468007639, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "21f05d6094dad1a6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33600.0, "surface_area": 11300.0, "principal_moments": [10300000.0, 10300000.0, 20200000.0], "n_faces": 140, "n_edges": 414, "n_vertices": 276}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 23, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 9.1, "min": 3.6, "max": 22.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007639 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 23, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 9.1, \"min\": 3.6, \"max\": 22.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931aced8_0236", "family": "threaded", "tier": 1, "seed": 2468007640, "symmetry": "none", "op_count": 1, "ir_hash": "69334d0bdcf10842", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1900.0, "surface_area": 1760.0, "principal_moments": [12700.0, 338000.0, 338000.0], "n_faces": 375, "n_edges": 967, "n_vertices": 594}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 46.0, "min": 18.4, "max": 92.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007640 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 46.0, \"min\": 18.4, \"max\": 92.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931aced9_0237", "family": "profiled", "tier": 1, "seed": 2468007641, "symmetry": "none", "op_count": 1, "ir_hash": "8c409e9d1b136366", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 116000.0, "surface_area": 22500.0, "principal_moments": [10500000.0, 673000000.0, 680000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 32.44, "min": 16.2, "max": 64.9, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 15, "min": 7.5, "max": 30.0, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 263.9, "min": 79.2, "max": 791.7, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007641 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 32.44, \"min\": 16.2, \"max\": 64.9, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 15, \"min\": 7.5, \"max\": 30.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 263.9, \"min\": 79.2, \"max\": 791.7, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931aceda_0238", "family": "bracket", "tier": 2, "seed": 2468007642, "symmetry": "none", "op_count": 1, "ir_hash": "a1b32e10529a596d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 92500.0, "surface_area": 28300.0, "principal_moments": [91299999.99999999, 137000000.0, 198000000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 89.73, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 6.8, "min": 4.0, "max": 22.5, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007642 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 89.73, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.8, \"min\": 4.0, \"max\": 22.5, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acedc_0240", "family": "block", "tier": 2, "seed": 2468007644, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "9efe2e1857c227f5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20100.0, "surface_area": 10200.0, "principal_moments": [2180000.0, 6750000.0, 8300000.0], "n_faces": 15, "n_edges": 48, "n_vertices": 32}, "params": {"block_w": {"type": "float", "default": 31.9, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 12.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 63.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.6, "min": 2.0, "max": 2.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 21.2, "min": 10.6, "max": 25.5, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 6.8, "min": 3.4, "max": 10.3, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 31.7, "min": 12.7, "max": 53.7, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007644 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 31.9, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 12.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 63.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.6, \"min\": 2.0, \"max\": 2.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 21.2, \"min\": 10.6, \"max\": 25.5, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 6.8, \"min\": 3.4, \"max\": 10.3, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 31.7, \"min\": 12.7, \"max\": 53.7, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acedd_0241", "family": "revolved", "tier": 1, "seed": 2468007645, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "bf10e171fe2494e1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2160.0, "surface_area": 1690.0, "principal_moments": [68400.0, 110000.0, 110000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 10, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 25.2, "min": 7.6, "max": 75.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 19.4, "min": 12.0, "max": 30.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.2, "min": 1.3, "max": 12.6, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.5, "min": 0.1, "max": 4.5, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007645 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 10, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 25.2, \"min\": 7.6, \"max\": 75.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 19.4, \"min\": 12.0, \"max\": 30.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.2, \"min\": 1.3, \"max\": 12.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.1, \"max\": 4.5, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acedf_0243", "family": "revolved", "tier": 2, "seed": 2468007647, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "dea2b6f9099541ae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 421000.0, "surface_area": 48600.0, "principal_moments": [219000000.0, 1100000000.0, 1100000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 60.65, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 167.7, "min": 50.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 22.0, "min": 2.0, "max": 42.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007647 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60.65, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 167.7, \"min\": 50.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 22.0, \"min\": 2.0, \"max\": 42.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acee0_0244", "family": "revolved", "tier": 1, "seed": 2468007648, "symmetry": "none", "op_count": 1, "ir_hash": "2a9583dc6cb6039f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 105000.0, "surface_area": 22700.0, "principal_moments": [31899999.999999996, 76800000.0, 76800000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 45, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 98.9, "min": 29.7, "max": 296.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007648 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 98.9, \"min\": 29.7, \"max\": 296.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931acee1_0245", "family": "enclosure", "tier": 3, "seed": 2468007649, "symmetry": "none", "op_count": 4, "ir_hash": "fa7597aaa1de7e46", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 40300.0, "surface_area": 32500.0, "principal_moments": [28699999.999999996, 38300000.0, 39100000.0], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 68.35, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 48.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 60.1, "min": 24.0, "max": 120.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.5, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 10.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007649 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 68.35, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 48.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 60.1, \"min\": 24.0, \"max\": 120.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.5, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 10.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.052069638668545616)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acee2_0246", "family": "revolved", "tier": 1, "seed": 2468007650, "symmetry": "none", "op_count": 1, "ir_hash": "7cfc679087404a20", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11700.0, "surface_area": 5570.0, "principal_moments": [907000.0, 2650000.0, 2650000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 21.61, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 47.5, "min": 14.2, "max": 142.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 12.4, "min": 2.0, "max": 15.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007650 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 21.61, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 47.5, \"min\": 14.2, \"max\": 142.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 12.4, \"min\": 2.0, \"max\": 15.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acee3_0247", "family": "plate", "tier": 0, "seed": 2468007651, "symmetry": "none", "op_count": 1, "ir_hash": "85c9e28417cac4a2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9690.0, "surface_area": 7140.0, "principal_moments": [2470000.0, 2770000.0, 5220000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 58.51, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 55.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007651 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 58.51, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 55.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acee4_0248", "family": "bracket", "tier": 2, "seed": 2468007652, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "2bb0eb3dbb0df6e0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19700.0, "surface_area": 9350.0, "principal_moments": [3990000.0, 6170000.0, 7860000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 32.41, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.8, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007652 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 32.41, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.8, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acee5_0249", "family": "compound", "tier": 2, "seed": 2468007653, "symmetry": "none", "op_count": 5, "ir_hash": "c9333b7e8475cdf1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 93000.0, "surface_area": 15700.0, "principal_moments": [29499999.999999996, 32499999.999999996, 37500000.0], "n_faces": 41, "n_edges": 110, "n_vertices": 72}, "params": {"block_w": {"type": "float", "default": 51.11, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 46.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 39.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 3.6, "min": 1.8, "max": 8.9, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 8.0, "min": 1.7, "max": 20.0, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 3.7, "min": 2.0, "max": 4.8, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 10.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007653 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 51.11, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 46.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 39.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 3.6, \"min\": 1.8, \"max\": 8.9, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 8.0, \"min\": 1.7, \"max\": 20.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 3.7, \"min\": 2.0, \"max\": 4.8, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 10.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acee6_0250", "family": "revolved", "tier": 0, "seed": 2468007654, "symmetry": "radial", "op_count": 1, "ir_hash": "d659ee11e2364f30", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8170.0, "surface_area": 4800.0, "principal_moments": [315000.0, 1950000.0, 1950000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 16.02, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 60.8, "min": 18.2, "max": 182.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007654 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 16.02, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 60.8, \"min\": 18.2, \"max\": 182.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acee7_0251", "family": "threaded", "tier": 0, "seed": 2468007655, "symmetry": "none", "op_count": 1, "ir_hash": "7fc5d3818a20ef4c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1370.0, "surface_area": 1080.0, "principal_moments": [14300.0, 57600.0, 57600.0], "n_faces": 150, "n_edges": 380, "n_vertices": 232}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 21.2, "min": 8.5, "max": 42.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007655 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 21.2, \"min\": 8.5, \"max\": 42.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acee8_0252", "family": "threaded", "tier": 0, "seed": 2468007656, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "4ea22eb0a57b826c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 233.0, "surface_area": 359.0, "principal_moments": [605.0, 4380.0, 4390.0], "n_faces": 190, "n_edges": 484, "n_vertices": 296}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 14.6, "min": 5.8, "max": 29.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007656 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 14.6, \"min\": 5.8, \"max\": 29.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acee9_0253", "family": "bracket", "tier": 1, "seed": 2468007657, "symmetry": "none", "op_count": 1, "ir_hash": "ab6c1343f85ea52d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12300.0, "surface_area": 5520.0, "principal_moments": [1660000.0, 2970000.0, 3440000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 33.07, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 39.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 31.73, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007657 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 33.07, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 39.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 31.73, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931aceeb_0255", "family": "bracket", "tier": 1, "seed": 2468007659, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "fd9b32540162b98e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10800.0, "surface_area": 6430.0, "principal_moments": [2020000.0, 2730000.0, 3650000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 34.28, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 38.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007659 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 34.28, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 38.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07100591802908611)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931aceed_0257", "family": "enclosure", "tier": 2, "seed": 2468007661, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "a158a88b32a79dc6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 151000.0, "surface_area": 54400.0, "principal_moments": [150000000.0, 211000000.0, 283000000.0], "n_faces": 19, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 101.67, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 42.5, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 88.1, "min": 35.2, "max": 176.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 9.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007661 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 101.67, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 42.5, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 88.1, \"min\": 35.2, \"max\": 176.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 9.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931aceee_0258", "family": "compound", "tier": 3, "seed": 2468007662, "symmetry": "mirror_x", "op_count": 7, "ir_hash": "21e5a6b215e8ec4d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 220000.0, "surface_area": 29700.0, "principal_moments": [110000000.0, 157000000.0, 186000000.0], "n_faces": 34, "n_edges": 84, "n_vertices": 54}, "params": {"block_w": {"type": "float", "default": 76.85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 59.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 47.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 15.9, "min": 6.4, "max": 21.3, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 18.7, "min": 4.0, "max": 47.7, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 6.7, "min": 2.0, "max": 11.4, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007662 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 76.85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 59.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 47.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 15.9, \"min\": 6.4, \"max\": 21.3, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 18.7, \"min\": 4.0, \"max\": 47.7, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 6.7, \"min\": 2.0, \"max\": 11.4, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.07405335647528799)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931aceef_0259", "family": "gear", "tier": 1, "seed": 2468007663, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "66190534f6d30c78", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3200.0, "surface_area": 2150.0, "principal_moments": [159000.0, 159000.0, 301000.0], "n_faces": 165, "n_edges": 489, "n_vertices": 326}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 27, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.8, "min": 2.3, "max": 14.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 14.7, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007663 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 27, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.3, \"max\": 14.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 14.7, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acef0_0260", "family": "bracket", "tier": 2, "seed": 2468007664, "symmetry": "none", "op_count": 1, "ir_hash": "c50bbc6233dcfa1e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20400.0, "surface_area": 11300.0, "principal_moments": [5390000.0, 11799999.999999998, 12899999.999999998], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 62.29, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 48.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.9, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007664 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 62.29, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 48.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931acef1_0261", "family": "ribbed", "tier": 2, "seed": 2468007665, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f9126c3782da60f0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23200.0, "surface_area": 12000.0, "principal_moments": [5270000.0, 15099999.999999998, 19400000.0], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 78.22, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 44.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 13.5, "min": 5.4, "max": 27.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.5, "min": 1.0, "max": 8.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007665 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 78.22, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 44.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 13.5, \"min\": 5.4, \"max\": 27.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 1.0, \"max\": 8.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acef2_0262", "family": "revolved", "tier": 0, "seed": 2468007666, "symmetry": "none", "op_count": 1, "ir_hash": "4b25d2a712ff1258", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 508.0, "surface_area": 745.0, "principal_moments": [3160.0, 18100.0, 18100.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 6.44, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 23.4, "min": 7.0, "max": 70.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007666 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 6.44, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 23.4, \"min\": 7.0, \"max\": 70.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acef3_0263", "family": "block", "tier": 1, "seed": 2468007667, "symmetry": "none", "op_count": 2, "ir_hash": "e378e6b60d59c64e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 184000.0, "surface_area": 27200.0, "principal_moments": [78000000.0, 153000000.0, 203000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 64.98, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 30.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 95.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007667 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 64.98, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 30.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 95.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acef4_0264", "family": "block", "tier": 1, "seed": 2468007668, "symmetry": "none", "op_count": 2, "ir_hash": "2f1f2ed6f62bb9c5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13700.0, "surface_area": 5040.0, "principal_moments": [1070000.0, 1650000.0, 2120000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 25.85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 16.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 34.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.8, "min": 2.0, "max": 1.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007668 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25.85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 16.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 34.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.8, \"min\": 2.0, \"max\": 1.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 6.5\n _ssy = 6.1\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acef5_0265", "family": "bracket", "tier": 1, "seed": 2468007669, "symmetry": "none", "op_count": 1, "ir_hash": "3ffe76f82677f9d2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29900.0, "surface_area": 16700.0, "principal_moments": [12399999.999999998, 32099999.999999996, 34200000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 59.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 53.72, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007669 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 59.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 53.72, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acef8_0268", "family": "bracket", "tier": 1, "seed": 2468007672, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "23331649288e872b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37900.0, "surface_area": 27200.0, "principal_moments": [37400000.0, 45200000.0, 62999999.99999999], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 71.14, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 82.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55.45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007672 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 71.14, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 82.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55.45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acef9_0269", "family": "revolved", "tier": 2, "seed": 2468007673, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "1bab4d0f4bc1a8fd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1180000.0, "surface_area": 101000.0, "principal_moments": [2460000000.0, 4100000000.0, 4100000000.0], "n_faces": 14, "n_edges": 23, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 70, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 178.3, "min": 53.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 29.4, "min": 2.0, "max": 49.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 147.1, "min": 84.0, "max": 210.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 47.4, "min": 14.2, "max": 89.2, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "groove_depth": {"type": "float", "default": 5.51, "min": 2.2, "max": 16.53, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 9.83, "min": 3.93, "max": 29.49, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 83.5, "min": 26.7, "max": 151.6, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 1.4, "min": 0.1, "max": 4.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007673 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 70, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 178.3, \"min\": 53.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 29.4, \"min\": 2.0, \"max\": 49.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 147.1, \"min\": 84.0, \"max\": 210.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 47.4, \"min\": 14.2, \"max\": 89.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 5.51, \"min\": 2.2, \"max\": 16.53, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 9.83, \"min\": 3.93, \"max\": 29.49, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 83.5, \"min\": 26.7, \"max\": 151.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.4, \"min\": 0.1, \"max\": 4.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acefb_0271", "family": "plate", "tier": 3, "seed": 2468007675, "symmetry": "radial", "op_count": 4, "ir_hash": "a3360043af27abe4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13400.0, "surface_area": 8150.0, "principal_moments": [2900000.0, 6280000.0, 9130000.0], "n_faces": 35, "n_edges": 114, "n_vertices": 76}, "params": {"plate_w": {"type": "float", "default": 70, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 49.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 21.0, "min": 14.0, "max": 31.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "pocket_w": {"type": "float", "default": 46.5, "min": 23.2, "max": 56.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 22.2, "min": 11.1, "max": 39.4, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 1.7, "min": 0.7, "max": 4.2, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007675 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 49.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 21.0, \"min\": 14.0, \"max\": 31.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"pocket_w\": {\"type\": 'float', \"default\": 46.5, \"min\": 23.2, \"max\": 56.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 22.2, \"min\": 11.1, \"max\": 39.4, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 1.7, \"min\": 0.7, \"max\": 4.2, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.04364061078615968)\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acefc_0272", "family": "block", "tier": 1, "seed": 2468007676, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "49269375c7782d63", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 75700.0, "surface_area": 17600.0, "principal_moments": [15099999.999999998, 48199999.99999999, 57799999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 45, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 21.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 84.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007676 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 21.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 84.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931acefd_0273", "family": "profiled", "tier": 0, "seed": 2468007677, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "1e2e1dfd59874b37", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 110000.0, "surface_area": 21300.0, "principal_moments": [10700000.0, 535000000.0, 542000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 33.68, "min": 16.8, "max": 67.4, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 15, "min": 7.5, "max": 30.0, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 241.0, "min": 72.3, "max": 723.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007677 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 33.68, \"min\": 16.8, \"max\": 67.4, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 15, \"min\": 7.5, \"max\": 30.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 241.0, \"min\": 72.3, \"max\": 723.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acefe_0274", "family": "block", "tier": 1, "seed": 2468007678, "symmetry": "none", "op_count": 2, "ir_hash": "8915b7b5e8719268", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 578000.0, "surface_area": 50400.0, "principal_moments": [564000000.0, 741000000.0, 786000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 80, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 73.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007678 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 73.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931aceff_0275", "family": "revolved", "tier": 0, "seed": 2468007679, "symmetry": "radial", "op_count": 1, "ir_hash": "cb35252668b81de8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5240.0, "surface_area": 2940.0, "principal_moments": [248000.0, 437000.0, 437000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 17.77, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 31.7, "min": 9.5, "max": 95.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007679 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 17.77, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 31.7, \"min\": 9.5, \"max\": 95.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acf00_0276", "family": "compound", "tier": 3, "seed": 2468007680, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "1474014b5d03b1f7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28000.0, "surface_area": 5560.0, "principal_moments": [2680000.0, 7000000.0, 7000000.0], "n_faces": 6, "n_edges": 8, "n_vertices": 5}, "params": {"shaft_d": {"type": "float", "default": 30, "min": 15.0, "max": 54.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 31.5, "min": 12.6, "max": 63.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 18.1, "min": 9.1, "max": 27.0, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 23.9, "min": 7.2, "max": 59.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "chamfer_d": {"type": "float", "default": 3.0, "min": 0.5, "max": 3.0, "step": 0.5, "group": "Body", "label": "Chamfer distance (mm)"}, "chamfered": {"type": "bool", "default": true, "group": "Body", "label": "Chamfer edges"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007680 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 54.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 31.5, \"min\": 12.6, \"max\": 63.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 18.1, \"min\": 9.1, \"max\": 27.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 23.9, \"min\": 7.2, \"max\": 59.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"chamfer_d\": {\"type\": 'float', \"default\": 3.0, \"min\": 0.5, \"max\": 3.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Chamfer distance (mm)'},\n \"chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Chamfer edges'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n if p[\"chamfered\"]:\n result = result.edges('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf02_0278", "family": "revolved", "tier": 1, "seed": 2468007682, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "62848addb3d32062", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 102000.0, "surface_area": 22900.0, "principal_moments": [28799999.999999996, 80600000.0, 80600000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 43.31, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 104.3, "min": 31.3, "max": 312.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007682 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 43.31, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 104.3, \"min\": 31.3, \"max\": 312.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf03_0279", "family": "bracket", "tier": 2, "seed": 2468007683, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "740f603eadef39de", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33500.0, "surface_area": 13500.0, "principal_moments": [10300000.0, 33199999.999999996, 39200000.0], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 83.29, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 82.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 6.6, "min": 3.0, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007683 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 83.29, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 82.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.6, \"min\": 3.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acf04_0280", "family": "compound", "tier": 1, "seed": 2468007684, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f788df427ba635a5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 116000.0, "surface_area": 17200.0, "principal_moments": [39000000.0, 51899999.99999999, 60899999.99999999], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 57.69, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 50.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 39.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 7.7, "min": 3.9, "max": 13.8, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 26.6, "min": 4.0, "max": 53.3, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 6.6, "min": 2.0, "max": 9.6, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007684 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 57.69, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 50.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 39.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 7.7, \"min\": 3.9, \"max\": 13.8, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 26.6, \"min\": 4.0, \"max\": 53.3, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 6.6, \"min\": 2.0, \"max\": 9.6, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf07_0283", "family": "plate", "tier": 0, "seed": 2468007687, "symmetry": "none", "op_count": 1, "ir_hash": "0a4707e462367fb6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5760.0, "surface_area": 3550.0, "principal_moments": [284000.0, 1740000.0, 2000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 24.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007687 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 24.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf08_0284", "family": "block", "tier": 1, "seed": 2468007688, "symmetry": "none", "op_count": 2, "ir_hash": "defe075c9cb3a0ab", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10900.0, "surface_area": 5150.0, "principal_moments": [691000.0, 1500000.0, 1910000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 24.35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 12.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 38.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.6, "min": 2.0, "max": 1.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007688 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 24.35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 12.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 38.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.6, \"min\": 2.0, \"max\": 1.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 4.6\n _ssy = 3.9\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acf09_0285", "family": "flanged", "tier": 1, "seed": 2468007689, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "0903a3fecc73c4fe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 881000.0, "surface_area": 94600.0, "principal_moments": [1650000000.0, 2040000000.0, 2040000000.0], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 95, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 117.9, "min": 35.4, "max": 294.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 33.7, "min": 2.0, "max": 66.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 170.7, "min": 123.5, "max": 285.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.7, "min": 2.9, "max": 47.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 51.2, "min": 34.1, "max": 76.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007689 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 117.9, \"min\": 35.4, \"max\": 294.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 33.7, \"min\": 2.0, \"max\": 66.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 170.7, \"min\": 123.5, \"max\": 285.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.7, \"min\": 2.9, \"max\": 47.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 51.2, \"min\": 34.1, \"max\": 76.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931acf0a_0286", "family": "enclosure", "tier": 2, "seed": 2468007690, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "595e2685a81ddceb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 112000.0, "surface_area": 65400.0, "principal_moments": [138000000.0, 230000000.0, 240000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 110, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 61.4, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 80.7, "min": 32.3, "max": 161.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.5, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007690 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 110, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 61.4, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 80.7, \"min\": 32.3, \"max\": 161.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf0b_0287", "family": "plate", "tier": 0, "seed": 2468007691, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "39e9f1518514e3d7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26700.0, "surface_area": 8750.0, "principal_moments": [2880000.0, 20200000.0, 22799999.999999996], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 35.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007691 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 35.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf0c_0288", "family": "plate", "tier": 1, "seed": 2468007692, "symmetry": "radial", "op_count": 2, "ir_hash": "4def897856a50835", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9370.0, "surface_area": 3390.0, "principal_moments": [449000.0, 1600000.0, 1890000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"plate_w": {"type": "float", "default": 44.13, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 21.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 13.2, "min": 8.8, "max": 19.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007692 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 44.13, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 21.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 13.2, \"min\": 8.8, \"max\": 19.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf0d_0289", "family": "block", "tier": 2, "seed": 2468007693, "symmetry": "none", "op_count": 3, "ir_hash": "f0618f11a52a5e72", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 75400.0, "surface_area": 19400.0, "principal_moments": [19400000.0, 45300000.0, 59099999.99999999], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 20.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 84.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 26.2, "min": 13.1, "max": 40.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 9.0, "min": 4.5, "max": 16.3, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 32.0, "min": 12.8, "max": 71.4, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007693 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 20.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 84.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 26.2, \"min\": 13.1, \"max\": 40.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 9.0, \"min\": 4.5, \"max\": 16.3, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 32.0, \"min\": 12.8, \"max\": 71.4, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acf0e_0290", "family": "flanged", "tier": 2, "seed": 2468007694, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "870d83b1c127a883", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 232000.0, "surface_area": 36900.0, "principal_moments": [190000000.0, 190000000.0, 237000000.0], "n_faces": 56, "n_edges": 148, "n_vertices": 87}, "params": {"outer_d": {"type": "float", "default": 64.36, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 57.3, "min": 17.2, "max": 143.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 22.1, "min": 2.0, "max": 45.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 111.2, "min": 83.7, "max": 193.1, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 11.0, "min": 3.3, "max": 22.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 33.4, "min": 22.2, "max": 50.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007694 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 64.36, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 57.3, \"min\": 17.2, \"max\": 143.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 22.1, \"min\": 2.0, \"max\": 45.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 111.2, \"min\": 83.7, \"max\": 193.1, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 11.0, \"min\": 3.3, \"max\": 22.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 33.4, \"min\": 22.2, \"max\": 50.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.11482550166397981)\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf10_0292", "family": "block", "tier": 2, "seed": 2468007696, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "3750d4891e936c9f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 63400.0, "surface_area": 13700.0, "principal_moments": [15699999.999999998, 21900000.0, 22200000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 37.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 40.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 8.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 32.8, "min": 16.4, "max": 40.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 20.8, "min": 10.4, "max": 29.7, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 14.0, "min": 5.6, "max": 34.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007696 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 37.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 40.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 8.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 32.8, \"min\": 16.4, \"max\": 40.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 20.8, \"min\": 10.4, \"max\": 29.7, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 14.0, \"min\": 5.6, \"max\": 34.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf11_0293", "family": "revolved", "tier": 2, "seed": 2468007697, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "b5a59a98eb719950", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15600.0, "surface_area": 5890.0, "principal_moments": [2020000.0, 2020000.0, 2670000.0], "n_faces": 7, "n_edges": 10, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 34.02, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 26.7, "min": 8.0, "max": 80.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "groove_depth": {"type": "float", "default": 2.38, "min": 0.95, "max": 7.14, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 2.35, "min": 0.94, "max": 7.05, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 10.1, "min": 4.0, "max": 22.7, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007697 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 34.02, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 26.7, \"min\": 8.0, \"max\": 80.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 2.38, \"min\": 0.95, \"max\": 7.14, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 2.35, \"min\": 0.94, \"max\": 7.05, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 10.1, \"min\": 4.0, \"max\": 22.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931acf12_0294", "family": "ribbed", "tier": 2, "seed": 2468007698, "symmetry": "none", "op_count": 2, "ir_hash": "b3e5d0b242525b94", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31700.0, "surface_area": 16100.0, "principal_moments": [7150000.0, 11100000.0, 16699999.999999998], "n_faces": 54, "n_edges": 132, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 37.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 13.9, "min": 5.6, "max": 27.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.6, "min": 1.0, "max": 14.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007698 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 37.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 13.9, \"min\": 5.6, \"max\": 27.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 1.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acf14_0296", "family": "gear", "tier": 2, "seed": 2468007700, "symmetry": "none", "op_count": 1, "ir_hash": "bf85f64ade2f57bb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1830.0, "surface_area": 1430.0, "principal_moments": [55500.0, 55500.0, 101000.0], "n_faces": 307, "n_edges": 763, "n_vertices": 458}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 19, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.7, "min": 2.3, "max": 14.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 24.3, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": -0.12, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.3, "min": 0.0, "max": 0.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 3.0, "min": 2.0, "max": 9.9, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007700 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 19, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.3, \"max\": 14.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 24.3, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.12, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.3, \"min\": 0.0, \"max\": 0.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 9.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=True, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf15_0297", "family": "plate", "tier": 0, "seed": 2468007701, "symmetry": "none", "op_count": 1, "ir_hash": "6d2ac62f23fdeff3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2780.0, "surface_area": 1600.0, "principal_moments": [84900.0, 214000.0, 287000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 30, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 18.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007701 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 18.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf16_0298", "family": "revolved", "tier": 1, "seed": 2468007702, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "196b0ed94e62bd97", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 911000.0, "surface_area": 97600.0, "principal_moments": [721000000.0, 6140000000.0, 6140000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 72.59, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 275.8, "min": 82.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 32.6, "min": 2.0, "max": 50.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 1.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007702 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 72.59, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 275.8, \"min\": 82.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 32.6, \"min\": 2.0, \"max\": 50.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 1.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acf1b_0303", "family": "flanged", "tier": 1, "seed": 2468007707, "symmetry": "none", "op_count": 2, "ir_hash": "9fcd1e39d1dc4565", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 371000.0, "surface_area": 63800.0, "principal_moments": [541000000.0, 541000000.0, 915000000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"outer_d": {"type": "float", "default": 73.44, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 51.9, "min": 15.6, "max": 129.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 28.0, "min": 2.0, "max": 51.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 167.5, "min": 95.5, "max": 220.3, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 10.4, "min": 3.1, "max": 20.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 50.2, "min": 33.5, "max": 75.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007707 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 73.44, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 51.9, \"min\": 15.6, \"max\": 129.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 28.0, \"min\": 2.0, \"max\": 51.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 167.5, \"min\": 95.5, \"max\": 220.3, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 10.4, \"min\": 3.1, \"max\": 20.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 50.2, \"min\": 33.5, \"max\": 75.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf1c_0304", "family": "revolved", "tier": 1, "seed": 2468007708, "symmetry": "none", "op_count": 1, "ir_hash": "c67067e96877eef7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 47500.0, "surface_area": 14600.0, "principal_moments": [11499999.999999998, 27099999.999999996, 27099999.999999996], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 30, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 68.9, "min": 20.7, "max": 206.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.5, "min": 2.0, "max": 21.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 50.7, "min": 36.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 11.7, "min": 3.5, "max": 34.5, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007708 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 68.9, \"min\": 20.7, \"max\": 206.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.5, \"min\": 2.0, \"max\": 21.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 50.7, \"min\": 36.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 11.7, \"min\": 3.5, \"max\": 34.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf1d_0305", "family": "revolved", "tier": 0, "seed": 2468007709, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "36fa1080fed17649", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29400.0, "surface_area": 8690.0, "principal_moments": [5400000.0, 6360000.0, 6360000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 35, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 45.8, "min": 13.7, "max": 137.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007709 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 45.8, \"min\": 13.7, \"max\": 137.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf1e_0306", "family": "bracket", "tier": 2, "seed": 2468007710, "symmetry": "none", "op_count": 1, "ir_hash": "ca3dc92c0850db67", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 47800.0, "surface_area": 21700.0, "principal_moments": [15599999.999999998, 80800000.0, 84900000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 70.19, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 51.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 76.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 4.2, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007710 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70.19, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 51.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 76.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.2, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf1f_0307", "family": "revolved", "tier": 1, "seed": 2468007711, "symmetry": "none", "op_count": 1, "ir_hash": "9b4a4d8c69aaad7e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 691.0, "surface_area": 847.0, "principal_moments": [4570.0, 41500.0, 41500.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 6.58, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 26.1, "min": 7.8, "max": 78.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 3.1, "min": 2.0, "max": 4.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007711 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 6.58, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 26.1, \"min\": 7.8, \"max\": 78.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 3.1, \"min\": 2.0, \"max\": 4.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf20_0308", "family": "plate", "tier": 0, "seed": 2468007712, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "e8bd560eb12696c4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27300.0, "surface_area": 8870.0, "principal_moments": [3380000.0, 18800000.0, 21900000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 90.49, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 37.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007712 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 90.49, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 37.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf23_0311", "family": "block", "tier": 2, "seed": 2468007715, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "cb1c490401c34aff", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4890.0, "surface_area": 3330.0, "principal_moments": [228000.0, 370000.0, 499000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 20, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 10.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 28.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.1, "min": 2.0, "max": 2.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 9.0, "min": 4.5, "max": 16.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 6.7, "min": 3.4, "max": 8.6, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 13.5, "min": 5.4, "max": 24.2, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007715 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 10.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 28.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.1, \"min\": 2.0, \"max\": 2.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 9.0, \"min\": 4.5, \"max\": 16.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 6.7, \"min\": 3.4, \"max\": 8.6, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 13.5, \"min\": 5.4, \"max\": 24.2, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf24_0312", "family": "block", "tier": 2, "seed": 2468007716, "symmetry": "none", "op_count": 3, "ir_hash": "029499b317996733", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 215000.0, "surface_area": 30500.0, "principal_moments": [97099999.99999999, 196000000.0, 250000000.0], "n_faces": 17, "n_edges": 45, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 34.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 98.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007716 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 34.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 98.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 16.2\n _ssy = 15.2\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.06558639008682236)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf26_0314", "family": "bracket", "tier": 2, "seed": 2468007718, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "0517c24180169234", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27500.0, "surface_area": 16100.0, "principal_moments": [23699999.999999996, 34800000.0, 55399999.99999999], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 82.36, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 87.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 26.47, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.8, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007718 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 82.36, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 87.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 26.47, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf27_0315", "family": "bracket", "tier": 2, "seed": 2468007719, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "899d64935266df1d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 79600.0, "surface_area": 24100.0, "principal_moments": [54499999.99999999, 71900000.0, 86100000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 66.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55.05, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 7.1, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007719 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 66.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55.05, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 7.1, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acf28_0316", "family": "compound", "tier": 2, "seed": 2468007720, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "2f5f3947dbc1d087", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 84500.0, "surface_area": 19800.0, "principal_moments": [39700000.0, 53299999.99999999, 57999999.99999999], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_w": {"type": "float", "default": 75, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 52.4, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 20.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 15.4, "min": 6.2, "max": 26.2, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 69.9, "min": 21.0, "max": 209.7, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 8.7, "min": 2.0, "max": 11.1, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 11.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007720 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 75, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 52.4, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 20.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 15.4, \"min\": 6.2, \"max\": 26.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 69.9, \"min\": 21.0, \"max\": 209.7, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 8.7, \"min\": 2.0, \"max\": 11.1, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 11.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf29_0317", "family": "plate", "tier": 1, "seed": 2468007721, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "fe5527209579b1cb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 64300.0, "surface_area": 15500.0, "principal_moments": [14999999.999999998, 59899999.99999999, 73400000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 105.66, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 51.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 11.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007721 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 105.66, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 51.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 11.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acf2a_0318", "family": "compound", "tier": 1, "seed": 2468007722, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f6328008b735aae3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24100.0, "surface_area": 7810.0, "principal_moments": [5100000.0, 5160000.0, 5160000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 23.59, "min": 14.2, "max": 37.7, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 12.0, "min": 4.8, "max": 30.0, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 19.4, "min": 9.7, "max": 34.9, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 29.1, "min": 8.7, "max": 72.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 10.2, "min": 2.0, "max": 14.0, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007722 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 23.59, \"min\": 14.2, \"max\": 37.7, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.8, \"max\": 30.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 19.4, \"min\": 9.7, \"max\": 34.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 29.1, \"min\": 8.7, \"max\": 72.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 10.2, \"min\": 2.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acf2b_0319", "family": "threaded", "tier": 1, "seed": 2468007723, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "6d0a3fde52eda31a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2470.0, "surface_area": 1900.0, "principal_moments": [80300.0, 125000.0, 125000.0], "n_faces": 135, "n_edges": 365, "n_vertices": 232}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 20.4, "min": 8.2, "max": 40.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007723 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 20.4, \"min\": 8.2, \"max\": 40.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf2c_0320", "family": "revolved", "tier": 2, "seed": 2468007724, "symmetry": "radial", "op_count": 2, "ir_hash": "0e85326b9aa815d5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 747000.0, "surface_area": 77300.0, "principal_moments": [771000000.0, 3100000000.0, 3100000000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 57.98, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 206.3, "min": 61.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 25.3, "min": 2.0, "max": 40.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 105.0, "min": 69.6, "max": 173.9, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 50.9, "min": 15.3, "max": 103.2, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.3, "min": 0.1, "max": 3.9, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007724 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 57.98, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 206.3, \"min\": 61.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 25.3, \"min\": 2.0, \"max\": 40.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 105.0, \"min\": 69.6, \"max\": 173.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 50.9, \"min\": 15.3, \"max\": 103.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.3, \"min\": 0.1, \"max\": 3.9, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf33_0327", "family": "block", "tier": 1, "seed": 2468007731, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "a53e87c4a163f974", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 737000.0, "surface_area": 65900.0, "principal_moments": [941000000.0, 1060000000.0, 1080000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 90, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 87.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 98.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 10.1, "min": 2.0, "max": 16.9, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007731 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 90, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 87.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 98.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.1, \"min\": 2.0, \"max\": 16.9, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931acf34_0328", "family": "ribbed", "tier": 1, "seed": 2468007732, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "dc9b81b4a8000fd8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14500.0, "surface_area": 7740.0, "principal_moments": [2040000.0, 3700000.0, 4270000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 22.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 19.4, "min": 7.8, "max": 38.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.0, "min": 1.0, "max": 12.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007732 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 22.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 19.4, \"min\": 7.8, \"max\": 38.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 1.0, \"max\": 12.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acf35_0329", "family": "gear", "tier": 1, "seed": 2468007733, "symmetry": "none", "op_count": 1, "ir_hash": "163088986fbfe773", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9460.0, "surface_area": 4340.0, "principal_moments": [736000.0, 736000.0, 999000.0], "n_faces": 69, "n_edges": 201, "n_vertices": 134}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 11, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 17.3, "min": 6.9, "max": 43.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 5.4, "min": 2.0, "max": 12.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007733 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 11, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 17.3, \"min\": 6.9, \"max\": 43.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 5.4, \"min\": 2.0, \"max\": 12.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf36_0330", "family": "revolved", "tier": 2, "seed": 2468007734, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "0196728d631e7d0e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 463000.0, "surface_area": 59000.0, "principal_moments": [254000000.0, 1590000000.0, 1590000000.0], "n_faces": 12, "n_edges": 20, "n_vertices": 12}, "params": {"outer_d": {"type": "float", "default": 61.49, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 193.5, "min": 58.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 25.7, "min": 2.0, "max": 43.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 4.89, "min": 1.96, "max": 14.67, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 12.4, "min": 4.96, "max": 37.2, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 61.1, "min": 29.0, "max": 164.5, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.7, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007734 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 61.49, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 193.5, \"min\": 58.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 25.7, \"min\": 2.0, \"max\": 43.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 4.89, \"min\": 1.96, \"max\": 14.67, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 12.4, \"min\": 4.96, \"max\": 37.2, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 61.1, \"min\": 29.0, \"max\": 164.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.7, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.09554388315977026)\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"side_tube_d\"] / 2).extrude(p[\"side_tube_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"side_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931acf38_0332", "family": "ribbed", "tier": 2, "seed": 2468007736, "symmetry": "none", "op_count": 2, "ir_hash": "7275ccd0e2f81f73", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27200.0, "surface_area": 15500.0, "principal_moments": [8780000.0, 10900000.0, 19100000.0], "n_faces": 36, "n_edges": 84, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 70.16, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 66.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 7.3, "min": 2.9, "max": 14.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.4, "min": 1.0, "max": 13.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007736 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 70.16, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 66.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 7.3, \"min\": 2.9, \"max\": 14.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.4, \"min\": 1.0, \"max\": 13.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf39_0333", "family": "plate", "tier": 2, "seed": 2468007737, "symmetry": "none", "op_count": 3, "ir_hash": "0737ef24f6e4a588", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19600.0, "surface_area": 6690.0, "principal_moments": [1740000.0, 6920000.0, 8340000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"plate_w": {"type": "float", "default": 65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 31.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007737 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 31.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(26.0, 12.6, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.10862657392394287)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf3a_0334", "family": "block", "tier": 1, "seed": 2468007738, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "60b4cab1dac35594", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 571000.0, "surface_area": 55800.0, "principal_moments": [567000000.0, 709000000.0, 809000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 71.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007738 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 71.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf3b_0335", "family": "revolved", "tier": 0, "seed": 2468007739, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ae79a48713bcbae7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9800.0, "surface_area": 4180.0, "principal_moments": [1260000.0, 1260000.0, 2350000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 40, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 11.7, "min": 3.5, "max": 35.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007739 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 11.7, \"min\": 3.5, \"max\": 35.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf3c_0336", "family": "bracket", "tier": 3, "seed": 2468007740, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "6e293a42a9c05193", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20800.0, "surface_area": 8830.0, "principal_moments": [4700000.0, 5950000.0, 6870000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"base_len": {"type": "float", "default": 37.63, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 31.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 18.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007740 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 37.63, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 31.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 18.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf3d_0337", "family": "revolved", "tier": 2, "seed": 2468007741, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "471a2000fb443fc2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 359000.0, "surface_area": 57000.0, "principal_moments": [260000000.0, 903000000.0, 903000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 65.72, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 160.7, "min": 48.2, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 38.4, "min": 2.0, "max": 46.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007741 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65.72, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 160.7, \"min\": 48.2, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 38.4, \"min\": 2.0, \"max\": 46.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acf3e_0338", "family": "threaded", "tier": 0, "seed": 2468007742, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "bdc265f2318a869b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 279.0, "surface_area": 369.0, "principal_moments": [1030.0, 3960.0, 3960.0], "n_faces": 130, "n_edges": 328, "n_vertices": 200}, "params": {"major_d": {"type": "float", "default": 6.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.0, "min": 0.5, "max": 2.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 12.3, "min": 5.0, "max": 24.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007742 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.5, \"max\": 2.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 12.3, \"min\": 5.0, \"max\": 24.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf3f_0339", "family": "bracket", "tier": 1, "seed": 2468007743, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "2be4c0acef77f0d9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21900.0, "surface_area": 8920.0, "principal_moments": [5710000.0, 6260000.0, 10300000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 28.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 54.31, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007743 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 28.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 54.31, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acf43_0343", "family": "compound", "tier": 1, "seed": 2468007747, "symmetry": "none", "op_count": 2, "ir_hash": "56315b1c2bba3d83", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61700.0, "surface_area": 11100.0, "principal_moments": [15599999.999999998, 16499999.999999998, 18400000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 40, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 41.5, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 36.7, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 12.1, "min": 4.8, "max": 25.7, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 20.2, "min": 3.6, "max": 48.4, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 5.7, "min": 2.0, "max": 8.7, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007747 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 41.5, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 36.7, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 12.1, \"min\": 4.8, \"max\": 25.7, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 20.2, \"min\": 3.6, \"max\": 48.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.0, \"max\": 8.7, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acf44_0344", "family": "flanged", "tier": 3, "seed": 2468007748, "symmetry": "radial", "op_count": 2, "ir_hash": "f6646e21aa87f956", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 135000.0, "surface_area": 31800.0, "principal_moments": [91799999.99999999, 102000000.0, 102000000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 52.17, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 64.0, "min": 19.2, "max": 160.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 24.6, "min": 2.0, "max": 36.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 102.2, "min": 67.8, "max": 156.5, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.8, "min": 1.4, "max": 25.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 30.7, "min": 20.4, "max": 46.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007748 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 52.17, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 64.0, \"min\": 19.2, \"max\": 160.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 24.6, \"min\": 2.0, \"max\": 36.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 102.2, \"min\": 67.8, \"max\": 156.5, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.8, \"min\": 1.4, \"max\": 25.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 30.7, \"min\": 20.4, \"max\": 46.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf45_0345", "family": "plate", "tier": 1, "seed": 2468007749, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "957be46456b53e3b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 574.0, "surface_area": 789.0, "principal_moments": [5410.0, 38400.0, 43400.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 28.65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 10.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.3, "min": 2.0, "max": 2.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007749 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 28.65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 10.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.3, \"min\": 2.0, \"max\": 2.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931acf46_0346", "family": "enclosure", "tier": 1, "seed": 2468007750, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "f6705f8785f0cc41", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 57700.0, "surface_area": 29700.0, "principal_moments": [34300000.0, 41700000.0, 57199999.99999999], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 70, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 33.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 67.1, "min": 26.8, "max": 134.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007750 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 70, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 33.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 67.1, \"min\": 26.8, \"max\": 134.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf47_0347", "family": "revolved", "tier": 1, "seed": 2468007751, "symmetry": "none", "op_count": 1, "ir_hash": "f03f2ad287e23785", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 119000.0, "surface_area": 27600.0, "principal_moments": [70700000.0, 70700000.0, 119000000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 60, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 40.4, "min": 12.1, "max": 121.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 104.1, "min": 72.0, "max": 180.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.6, "min": 2.3, "max": 20.2, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007751 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 40.4, \"min\": 12.1, \"max\": 121.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 104.1, \"min\": 72.0, \"max\": 180.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.6, \"min\": 2.3, \"max\": 20.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf48_0348", "family": "block", "tier": 1, "seed": 2468007752, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "be4f83f97a467cbb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 361000.0, "surface_area": 43600.0, "principal_moments": [280000000.0, 356000000.0, 526000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 87.38, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 43.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 12.6, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007752 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 87.38, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 43.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 12.6, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf4a_0350", "family": "block", "tier": 2, "seed": 2468007754, "symmetry": "radial", "op_count": 3, "ir_hash": "c88ed6091fbee8a3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 70400.0, "surface_area": 13200.0, "principal_moments": [16800000.0, 22700000.0, 26599999.999999996], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 53.54, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 42.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 29.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 16.1, "min": 10.7, "max": 24.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "boss_d": {"type": "float", "default": 20.4, "min": 10.2, "max": 40.8, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 11.3, "min": 4.5, "max": 28.2, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 14.3, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007754 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 53.54, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 42.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 29.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 16.1, \"min\": 10.7, \"max\": 24.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"boss_d\": {\"type\": 'float', \"default\": 20.4, \"min\": 10.2, \"max\": 40.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 11.3, \"min\": 4.5, \"max\": 28.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 14.3, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf4b_0351", "family": "bracket", "tier": 1, "seed": 2468007755, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "bc14c270d684e5b2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20800.0, "surface_area": 12300.0, "principal_moments": [3990000.0, 38300000.0, 40000000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 53.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 26.16, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 68.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007755 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 53.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 26.16, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 68.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf4c_0352", "family": "bracket", "tier": 1, "seed": 2468007756, "symmetry": "none", "op_count": 1, "ir_hash": "108092211454666d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32000.0, "surface_area": 12800.0, "principal_moments": [11200000.0, 17000000.0, 21600000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 48.36, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 57.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 54.09, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007756 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 48.36, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 57.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 54.09, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931acf50_0356", "family": "enclosure", "tier": 1, "seed": 2468007760, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "4385a4f2c8ee3f1c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 55300.0, "surface_area": 48800.0, "principal_moments": [62399999.99999999, 80500000.0, 112000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 95, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 77.7, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 51.8, "min": 20.7, "max": 103.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007760 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 95, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 77.7, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 51.8, \"min\": 20.7, \"max\": 103.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf51_0357", "family": "plate", "tier": 2, "seed": 2468007761, "symmetry": "radial", "op_count": 3, "ir_hash": "ab8ca3b7e32fcf5a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4330.0, "surface_area": 2630.0, "principal_moments": [123000.0, 997000.0, 1100000.0], "n_faces": 28, "n_edges": 78, "n_vertices": 52}, "params": {"plate_w": {"type": "float", "default": 52.21, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 18.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 15.7, "min": 10.4, "max": 23.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007761 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 52.21, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 18.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 15.7, \"min\": 10.4, \"max\": 23.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07513295192673956)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf53_0359", "family": "block", "tier": 1, "seed": 2468007763, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "46857f560ff953a4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12000.0, "surface_area": 4390.0, "principal_moments": [920000.0, 1130000.0, 1340000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 24.18, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 19.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 27.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007763 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 24.18, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 19.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 27.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acf54_0360", "family": "flanged", "tier": 1, "seed": 2468007764, "symmetry": "none", "op_count": 2, "ir_hash": "a4af7a479e0dbf2e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39600.0, "surface_area": 14600.0, "principal_moments": [12699999.999999998, 12699999.999999998, 21100000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 36.65, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 24.6, "min": 7.4, "max": 61.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 12.9, "min": 2.0, "max": 25.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 80.7, "min": 47.6, "max": 109.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.3, "min": 1.3, "max": 9.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.2, "min": 16.1, "max": 36.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007764 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 36.65, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 24.6, \"min\": 7.4, \"max\": 61.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 12.9, \"min\": 2.0, \"max\": 25.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 80.7, \"min\": 47.6, \"max\": 109.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.3, \"min\": 1.3, \"max\": 9.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.2, \"min\": 16.1, \"max\": 36.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931acf55_0361", "family": "enclosure", "tier": 1, "seed": 2468007765, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "b12869d9ed7fc8be", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 90300.0, "surface_area": 67800.0, "principal_moments": [118000000.0, 199000000.0, 199000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 111.12, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 64.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 79.6, "min": 31.8, "max": 159.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.7, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007765 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 111.12, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 64.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 79.6, \"min\": 31.8, \"max\": 159.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.7, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acf56_0362", "family": "compound", "tier": 1, "seed": 2468007766, "symmetry": "none", "op_count": 3, "ir_hash": "278552758e245a74", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 83300.0, "surface_area": 23300.0, "principal_moments": [39500000.0, 82600000.0, 115000000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_w": {"type": "float", "default": 110, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 74.0, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 10.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 14.0, "min": 5.6, "max": 37.0, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 38.9, "min": 11.7, "max": 116.7, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 7.0, "min": 2.0, "max": 10.1, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007766 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 110, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 74.0, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 10.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 14.0, \"min\": 5.6, \"max\": 37.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 38.9, \"min\": 11.7, \"max\": 116.7, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 7.0, \"min\": 2.0, \"max\": 10.1, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acf57_0363", "family": "flanged", "tier": 1, "seed": 2468007767, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "bc5fa3379f912948", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 298000.0, "surface_area": 54300.0, "principal_moments": [359000000.0, 359000000.0, 564000000.0], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 85, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 51.9, "min": 15.6, "max": 129.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 45.5, "min": 2.0, "max": 59.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 145.4, "min": 110.5, "max": 255.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.5, "min": 2.5, "max": 20.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 43.6, "min": 29.1, "max": 65.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007767 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 51.9, \"min\": 15.6, \"max\": 129.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 45.5, \"min\": 2.0, \"max\": 59.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 145.4, \"min\": 110.5, \"max\": 255.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.5, \"min\": 2.5, \"max\": 20.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 43.6, \"min\": 29.1, \"max\": 65.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf58_0364", "family": "revolved", "tier": 2, "seed": 2468007768, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "68d8265bec15c4f4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 264000.0, "surface_area": 32900.0, "principal_moments": [122000000.0, 359000000.0, 359000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 57.43, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 116.3, "min": 34.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 20.2, "min": 2.0, "max": 40.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007768 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 57.43, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 116.3, \"min\": 34.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 20.2, \"min\": 2.0, \"max\": 40.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931acf59_0365", "family": "ribbed", "tier": 1, "seed": 2468007769, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "e28c3f14d5a2fa7a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13100.0, "surface_area": 7280.0, "principal_moments": [1960000.0, 5410000.0, 7000000.0], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 35.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 9.5, "min": 3.8, "max": 19.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.1, "min": 1.0, "max": 12.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007769 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 35.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 9.5, \"min\": 3.8, \"max\": 19.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.1, \"min\": 1.0, \"max\": 12.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf5a_0366", "family": "plate", "tier": 0, "seed": 2468007770, "symmetry": "none", "op_count": 1, "ir_hash": "7f3bbc25857d1932", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3060.0, "surface_area": 1360.0, "principal_moments": [62200.0, 192000.0, 203000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 25.51, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 10.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007770 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 25.51, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acf5b_0367", "family": "compound", "tier": 1, "seed": 2468007771, "symmetry": "none", "op_count": 2, "ir_hash": "ea8f0f1d0eb40061", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15600.0, "surface_area": 4250.0, "principal_moments": [1580000.0, 1680000.0, 1730000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 26.61, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 22.9, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 25.2, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_w": {"type": "float", "default": 6.1, "min": 3.0, "max": 14.1, "step": 0.5, "group": "Spigot", "label": "Spigot width (mm)"}, "spig_slot_l": {"type": "float", "default": 14.5, "min": 7.3, "max": 17.6, "step": 1.0, "group": "Spigot", "label": "Spigot slot length (mm)"}, "spig_len": {"type": "float", "default": 6.7, "min": 1.8, "max": 24.4, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 3.4, "min": 2.0, "max": 4.4, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007771 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 26.61, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 22.9, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 25.2, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_w\": {\"type\": 'float', \"default\": 6.1, \"min\": 3.0, \"max\": 14.1, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Spigot width (mm)'},\n \"spig_slot_l\": {\"type\": 'float', \"default\": 14.5, \"min\": 7.3, \"max\": 17.6, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot slot length (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 6.7, \"min\": 1.8, \"max\": 24.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 3.4, \"min\": 2.0, \"max\": 4.4, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .slot2D(p[\"spig_slot_l\"], p[\"spig_w\"]).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acf5c_0368", "family": "compound", "tier": 2, "seed": 2468007772, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "cf3d6453eeffc023", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4910.0, "surface_area": 2460.0, "principal_moments": [147000.0, 503000.0, 503000.0], "n_faces": 13, "n_edges": 27, "n_vertices": 18}, "params": {"shaft_d": {"type": "float", "default": 15.87, "min": 7.9, "max": 28.6, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 20.9, "min": 8.4, "max": 41.8, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 11.0, "min": 5.5, "max": 14.3, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 9.8, "min": 2.9, "max": 24.5, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "head_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Head", "label": "Drive head sides"}, "head_r": {"type": "float", "default": 4.9, "min": 2.9, "max": 5.3, "step": 1.0, "group": "Head", "label": "Drive head circumradius (mm)"}, "head_len": {"type": "float", "default": 6.7, "min": 2.0, "max": 13.4, "step": 1.0, "group": "Head", "label": "Drive head length (mm)"}, "axial_bore": {"type": "float", "default": 4.4, "min": 2.0, "max": 6.1, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007772 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 15.87, \"min\": 7.9, \"max\": 28.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 20.9, \"min\": 8.4, \"max\": 41.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 11.0, \"min\": 5.5, \"max\": 14.3, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 9.8, \"min\": 2.9, \"max\": 24.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"head_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Head', \"label\": 'Drive head sides'},\n \"head_r\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.9, \"max\": 5.3, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head circumradius (mm)'},\n \"head_len\": {\"type\": 'float', \"default\": 6.7, \"min\": 2.0, \"max\": 13.4, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 4.4, \"min\": 2.0, \"max\": 6.1, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"head_sides\"], p[\"head_r\"] * 2).extrude(p[\"head_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acf5d_0369", "family": "threaded", "tier": 1, "seed": 2468007773, "symmetry": "none", "op_count": 1, "ir_hash": "251d5acc4c777ed4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 179.0, "surface_area": 339.0, "principal_moments": [293.0, 4810.0, 4810.0], "n_faces": 260, "n_edges": 666, "n_vertices": 408}, "params": {"major_d": {"type": "float", "default": 4.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.7, "min": 0.35, "max": 1.4, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 17.8, "min": 7.1, "max": 35.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007773 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.35, \"max\": 1.4, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 17.8, \"min\": 7.1, \"max\": 35.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf5e_0370", "family": "plate", "tier": 0, "seed": 2468007774, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "91e5fd34cbe114dd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4300.0, "surface_area": 3340.0, "principal_moments": [264000.0, 1010000.0, 1270000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 53.04, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 27.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007774 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 53.04, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 27.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf5f_0371", "family": "block", "tier": 2, "seed": 2468007775, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "92f3a78bf00f8ff8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16800.0, "surface_area": 5600.0, "principal_moments": [1860000.0, 1900000.0, 3010000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 15.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 27.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 24.5, "min": 12.2, "max": 49.0, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.5, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007775 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 15.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 27.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 24.5, \"min\": 12.2, \"max\": 49.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.5, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acf60_0372", "family": "gear", "tier": 2, "seed": 2468007776, "symmetry": "none", "op_count": 1, "ir_hash": "b2edc6843258260c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 80100.0, "surface_area": 18600.0, "principal_moments": [35200000.0, 35200000.0, 66499999.99999999], "n_faces": 211, "n_edges": 627, "n_vertices": 418}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 26, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 17.0, "min": 6.8, "max": 42.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 11.9, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": -0.03, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.38, "min": 0.0, "max": 1.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 16.2, "min": 2.0, "max": 42.3, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007776 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 26, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 17.0, \"min\": 6.8, \"max\": 42.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 11.9, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.03, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.38, \"min\": 0.0, \"max\": 1.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 16.2, \"min\": 2.0, \"max\": 42.3, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf61_0373", "family": "bracket", "tier": 3, "seed": 2468007777, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "bc04dec740863bc5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19500.0, "surface_area": 9420.0, "principal_moments": [2310000.0, 16099999.999999998, 16699999.999999998], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 52.99, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 32.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 29.87, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 53.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 5.8, "min": 2.5, "max": 14.9, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007777 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 52.99, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 32.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 29.87, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 53.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.5, \"max\": 14.9, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf62_0374", "family": "block", "tier": 1, "seed": 2468007778, "symmetry": "none", "op_count": 2, "ir_hash": "25ff294050f69ccc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 333000.0, "surface_area": 38200.0, "principal_moments": [228000000.0, 327000000.0, 456000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 80, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 42.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007778 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 42.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 20.0\n _ssy = 20.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf64_0376", "family": "bracket", "tier": 3, "seed": 2468007780, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "88bec00a0d431d83", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12100.0, "surface_area": 9100.0, "principal_moments": [2450000.0, 3820000.0, 4740000.0], "n_faces": 26, "n_edges": 76, "n_vertices": 48}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 54.71, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.4, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007780 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 54.71, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.4, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acf65_0377", "family": "compound", "tier": 1, "seed": 2468007781, "symmetry": "none", "op_count": 3, "ir_hash": "bf994c52f8950891", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15800.0, "surface_area": 6050.0, "principal_moments": [2930000.0, 2970000.0, 3800000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"base_w": {"type": "float", "default": 43.13, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 32.2, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 10.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 10.3, "min": 4.1, "max": 16.1, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 37.8, "min": 11.3, "max": 113.4, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 7.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007781 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 43.13, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 32.2, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 10.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 10.3, \"min\": 4.1, \"max\": 16.1, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 37.8, \"min\": 11.3, \"max\": 113.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 7.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf67_0379", "family": "revolved", "tier": 1, "seed": 2468007783, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "59279f863f5cf0ff", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 168000.0, "surface_area": 29000.0, "principal_moments": [107000000.0, 107000000.0, 118000000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 53.82, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 72.4, "min": 21.7, "max": 217.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 83.0, "min": 64.6, "max": 161.5, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 18.4, "min": 5.5, "max": 36.2, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007783 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 53.82, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 72.4, \"min\": 21.7, \"max\": 217.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 83.0, \"min\": 64.6, \"max\": 161.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 18.4, \"min\": 5.5, \"max\": 36.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf68_0380", "family": "block", "tier": 2, "seed": 2468007784, "symmetry": "none", "op_count": 3, "ir_hash": "51be4d677979f061", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 70100.0, "surface_area": 16600.0, "principal_moments": [19500000.0, 27699999.999999996, 39500000.0], "n_faces": 20, "n_edges": 57, "n_vertices": 38}, "params": {"block_w": {"type": "float", "default": 49.32, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 24.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 66.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.2, "min": 2.0, "max": 2.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "pocket_w": {"type": "float", "default": 26.4, "min": 13.2, "max": 39.5, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 16.3, "min": 8.2, "max": 19.8, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 22.5, "min": 9.0, "max": 56.6, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007784 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 49.32, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 24.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 66.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 2.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"pocket_w\": {\"type\": 'float', \"default\": 26.4, \"min\": 13.2, \"max\": 39.5, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 16.3, \"min\": 8.2, \"max\": 19.8, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 22.5, \"min\": 9.0, \"max\": 56.6, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 12.3\n _ssy = 11.3\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf69_0381", "family": "block", "tier": 2, "seed": 2468007785, "symmetry": "none", "op_count": 3, "ir_hash": "f99af6feae4907c8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 154000.0, "surface_area": 24900.0, "principal_moments": [49299999.99999999, 131000000.0, 134000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 89.64, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 41.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 46.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 37.5, "min": 18.8, "max": 71.7, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 22.3, "min": 11.2, "max": 33.2, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 15.3, "min": 6.1, "max": 39.4, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007785 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 89.64, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 41.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 46.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 37.5, \"min\": 18.8, \"max\": 71.7, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 22.3, \"min\": 11.2, \"max\": 33.2, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 15.3, \"min\": 6.1, \"max\": 39.4, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf6a_0382", "family": "block", "tier": 1, "seed": 2468007786, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "7fd1f3069469b961", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 320000.0, "surface_area": 49100.0, "principal_moments": [259000000.0, 303000000.0, 489000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 94.26, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 38.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 10.1, "min": 2.0, "max": 11.2, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007786 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 94.26, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 38.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.1, \"min\": 2.0, \"max\": 11.2, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf6b_0383", "family": "revolved", "tier": 0, "seed": 2468007787, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ba79dc4e78d019d0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4550.0, "surface_area": 2320.0, "principal_moments": [265000.0, 265000.0, 426000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 25, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 13.9, "min": 4.2, "max": 41.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007787 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 13.9, \"min\": 4.2, \"max\": 41.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acf6c_0384", "family": "threaded", "tier": 0, "seed": 2468007788, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "6dedd05bda166828", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11900.0, "surface_area": 4610.0, "principal_moments": [513000.0, 2200000.0, 2200000.0], "n_faces": 313, "n_edges": 857, "n_vertices": 546}, "params": {"major_d": {"type": "float", "default": 20.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.5, "min": 1.25, "max": 5.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 44.5, "min": 17.8, "max": 89.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007788 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 20.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.25, \"max\": 5.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 44.5, \"min\": 17.8, \"max\": 89.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf6d_0385", "family": "bracket", "tier": 1, "seed": 2468007789, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d2f6fc79b1b84a50", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4340.0, "surface_area": 2900.0, "principal_moments": [347000.0, 496000.0, 627000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007789 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acf71_0389", "family": "flanged", "tier": 1, "seed": 2468007793, "symmetry": "radial", "op_count": 2, "ir_hash": "bee958a1b5d1a9fe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 474000.0, "surface_area": 72200.0, "principal_moments": [829000000.0, 829000000.0, 1510000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 80.25, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 46.2, "min": 13.9, "max": 115.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 25.7, "min": 2.0, "max": 56.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 182.8, "min": 104.3, "max": 240.8, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 12.6, "min": 3.8, "max": 18.5, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 54.8, "min": 36.6, "max": 82.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007793 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 80.25, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 46.2, \"min\": 13.9, \"max\": 115.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 25.7, \"min\": 2.0, \"max\": 56.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 182.8, \"min\": 104.3, \"max\": 240.8, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 12.6, \"min\": 3.8, \"max\": 18.5, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 54.8, \"min\": 36.6, \"max\": 82.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acf72_0390", "family": "flanged", "tier": 1, "seed": 2468007794, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "ea3d0aa5b827c988", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 306000.0, "surface_area": 50800.0, "principal_moments": [338000000.0, 338000000.0, 515000000.0], "n_faces": 29, "n_edges": 114, "n_vertices": 76}, "params": {"outer_d": {"type": "float", "default": 74.99, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 54.5, "min": 16.3, "max": 136.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 33.5, "min": 2.0, "max": 52.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 135.3, "min": 97.5, "max": 225.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 12.4, "min": 3.7, "max": 21.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 40.6, "min": 27.1, "max": 60.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007794 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 74.99, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 54.5, \"min\": 16.3, \"max\": 136.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 33.5, \"min\": 2.0, \"max\": 52.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 135.3, \"min\": 97.5, \"max\": 225.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 12.4, \"min\": 3.7, \"max\": 21.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 40.6, \"min\": 27.1, \"max\": 60.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acf73_0391", "family": "gear", "tier": 1, "seed": 2468007795, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d8cec700568588a2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 117000.0, "surface_area": 24300.0, "principal_moments": [68500000.0, 68500000.0, 131000000.0], "n_faces": 189, "n_edges": 561, "n_vertices": 374}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 31, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 17.9, "min": 7.2, "max": 44.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 15.4, "min": 2.0, "max": 51.3, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007795 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 31, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 17.9, \"min\": 7.2, \"max\": 44.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 15.4, \"min\": 2.0, \"max\": 51.3, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf74_0392", "family": "bracket", "tier": 1, "seed": 2468007796, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "670be60c31c6aa4b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6670.0, "surface_area": 3520.0, "principal_moments": [666000.0, 730000.0, 1080000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007796 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('X').workplane(centerOption='CenterOfBoundBox')\n .rect(p[\"tab_a\"], p[\"tab_b\"]).extrude(p[\"tab_t\"])\n )\n result = (\n result.faces('>X').workplane()\n .rect(p[\"tab_a\"] * 0.6, p[\"tab_b\"] * 0.6, forConstruction=True)\n .vertices().hole(p[\"tab_hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acf77_0395", "family": "gear", "tier": 2, "seed": 2468007799, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "5b811873bfc08119", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8150.0, "surface_area": 3870.0, "principal_moments": [709000.0, 709000.0, 1310000.0], "n_faces": 139, "n_edges": 411, "n_vertices": 274}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 17, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 9.1, "min": 3.6, "max": 22.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": 0.19, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.32, "min": 0.0, "max": 1.0, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 6.7, "min": 2.0, "max": 17.4, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007799 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 17, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 9.1, \"min\": 3.6, \"max\": 22.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.19, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.32, \"min\": 0.0, \"max\": 1.0, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 6.7, \"min\": 2.0, \"max\": 17.4, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf78_0396", "family": "bracket", "tier": 1, "seed": 2468007800, "symmetry": "none", "op_count": 1, "ir_hash": "e2c01393dd2d4d63", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5860.0, "surface_area": 4540.0, "principal_moments": [772000.0, 1040000.0, 1460000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 34.76, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007800 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 34.76, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acf7e_0402", "family": "threaded", "tier": 1, "seed": 2468007806, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "68ba1b78cf09aeaa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4920.0, "surface_area": 3560.0, "principal_moments": [160000.0, 754000.0, 754000.0], "n_faces": 263, "n_edges": 717, "n_vertices": 456}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 40.6, "min": 16.2, "max": 81.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007806 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 40.6, \"min\": 16.2, \"max\": 81.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acf7f_0403", "family": "threaded", "tier": 1, "seed": 2468007807, "symmetry": "none", "op_count": 1, "ir_hash": "8472a36745e22b75", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21000.0, "surface_area": 8180.0, "principal_moments": [2760000.0, 4760000.0, 4760000.0], "n_faces": 348, "n_edges": 994, "n_vertices": 648}, "params": {"major_d": {"type": "float", "default": 16.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.0, "min": 1.0, "max": 4.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 44.0, "min": 17.6, "max": 88.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007807 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 4.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 44.0, \"min\": 17.6, \"max\": 88.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf80_0404", "family": "block", "tier": 2, "seed": 2468007808, "symmetry": "none", "op_count": 3, "ir_hash": "e814bf7017defa37", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 206000.0, "surface_area": 37700.0, "principal_moments": [97299999.99999999, 200000000.0, 264000000.0], "n_faces": 25, "n_edges": 66, "n_vertices": 44}, "params": {"block_w": {"type": "float", "default": 70.25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 31.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.2, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "boss_d": {"type": "float", "default": 24.8, "min": 12.4, "max": 49.6, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 11.5, "min": 4.6, "max": 28.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 17.4, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007808 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70.25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 31.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.2, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 24.8, \"min\": 12.4, \"max\": 49.6, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 11.5, \"min\": 4.6, \"max\": 28.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 17.4, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acf81_0405", "family": "gear", "tier": 0, "seed": 2468007809, "symmetry": "none", "op_count": 1, "ir_hash": "96a9f5310a0ec67c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8020.0, "surface_area": 3520.0, "principal_moments": [529000.0, 529000.0, 818000.0], "n_faces": 86, "n_edges": 252, "n_vertices": 168}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 14, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 13.4, "min": 5.4, "max": 33.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007809 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 14, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 13.4, \"min\": 5.4, \"max\": 33.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf82_0406", "family": "bracket", "tier": 2, "seed": 2468007810, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "40c1b7edc24ac23f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35000.0, "surface_area": 19100.0, "principal_moments": [16299999.999999998, 32399999.999999996, 35500000.0], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 72.25, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 69.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 59.54, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.4, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007810 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 72.25, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 69.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 59.54, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.4, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931acf83_0407", "family": "enclosure", "tier": 2, "seed": 2468007811, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "2a4c4ada38fe3c4b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 78000.0, "surface_area": 42300.0, "principal_moments": [64599999.99999999, 97699999.99999999, 104000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 85, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 50.5, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 67.6, "min": 27.0, "max": 135.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 11.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007811 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 85, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 50.5, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 67.6, \"min\": 27.0, \"max\": 135.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 11.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf84_0408", "family": "plate", "tier": 1, "seed": 2468007812, "symmetry": "radial", "op_count": 2, "ir_hash": "2463ef76fab9d251", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18100.0, "surface_area": 8710.0, "principal_moments": [2280000.0, 13599999.999999998, 15799999.999999998], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"plate_w": {"type": "float", "default": 95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 38.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 28.5, "min": 19.0, "max": 42.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007812 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 38.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 28.5, \"min\": 19.0, \"max\": 42.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf85_0409", "family": "revolved", "tier": 2, "seed": 2468007813, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "5ad735e34900be7b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 151000.0, "surface_area": 24100.0, "principal_moments": [86800000.0, 86800000.0, 111000000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 70, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 59.0, "min": 17.7, "max": 177.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.6, "min": 0.1, "max": 1.8, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007813 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 70, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 59.0, \"min\": 17.7, \"max\": 177.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.6, \"min\": 0.1, \"max\": 1.8, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931acf87_0411", "family": "profiled", "tier": 0, "seed": 2468007815, "symmetry": "none", "op_count": 1, "ir_hash": "004744d1354186a2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26400.0, "surface_area": 6870.0, "principal_moments": [1030000.0, 30199999.999999996, 30499999.999999996], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 20.0, "min": 10.0, "max": 40.0, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 13.23, "min": 6.6, "max": 26.5, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 116.4, "min": 34.9, "max": 349.2, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007815 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 20.0, \"min\": 10.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 13.23, \"min\": 6.6, \"max\": 26.5, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 116.4, \"min\": 34.9, \"max\": 349.2, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acf88_0412", "family": "flanged", "tier": 2, "seed": 2468007816, "symmetry": "none", "op_count": 2, "ir_hash": "10b6cf02206666d9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 455000.0, "surface_area": 74200.0, "principal_moments": [732000000.0, 732000000.0, 1200000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 95, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 55.3, "min": 16.6, "max": 138.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 45.1, "min": 2.0, "max": 66.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 178.9, "min": 123.5, "max": 285.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.4, "min": 2.5, "max": 22.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 53.7, "min": 35.8, "max": 80.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007816 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 55.3, \"min\": 16.6, \"max\": 138.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 45.1, \"min\": 2.0, \"max\": 66.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 178.9, \"min\": 123.5, \"max\": 285.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.5, \"max\": 22.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 53.7, \"min\": 35.8, \"max\": 80.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf89_0413", "family": "plate", "tier": 2, "seed": 2468007817, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "17737697a9c2455a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10800.0, "surface_area": 3720.0, "principal_moments": [759000.0, 1200000.0, 1700000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 26.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007817 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 26.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08942345948085798)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf8a_0414", "family": "bracket", "tier": 1, "seed": 2468007818, "symmetry": "none", "op_count": 1, "ir_hash": "ae1ab39d0c22dc91", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4420.0, "surface_area": 3800.0, "principal_moments": [583000.0, 1390000.0, 1800000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 42.62, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 33.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 15.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 6.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007818 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 42.62, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 33.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 15.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 6.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf8b_0415", "family": "revolved", "tier": 0, "seed": 2468007819, "symmetry": "none", "op_count": 1, "ir_hash": "39059c34c6cf87ba", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 137000.0, "surface_area": 24900.0, "principal_moments": [63799999.99999999, 89200000.0, 89200000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 55.76, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 84.0, "min": 25.2, "max": 252.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007819 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55.76, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 84.0, \"min\": 25.2, \"max\": 252.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf8c_0416", "family": "bracket", "tier": 2, "seed": 2468007820, "symmetry": "none", "op_count": 1, "ir_hash": "650064b18f37ef98", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6760.0, "surface_area": 4360.0, "principal_moments": [762000.0, 1240000.0, 1300000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 24.5, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 9.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007820 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 24.5, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 9.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acf8d_0417", "family": "flanged", "tier": 1, "seed": 2468007821, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f21863a335475a8b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 43100.0, "surface_area": 15400.0, "principal_moments": [15699999.999999998, 15699999.999999998, 25699999.999999996], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 37.63, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 28.0, "min": 8.4, "max": 70.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 20.4, "min": 2.0, "max": 26.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 79.8, "min": 48.9, "max": 112.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.5, "min": 1.6, "max": 11.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 23.9, "min": 16.0, "max": 35.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007821 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 37.63, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 28.0, \"min\": 8.4, \"max\": 70.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 20.4, \"min\": 2.0, \"max\": 26.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 79.8, \"min\": 48.9, \"max\": 112.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.5, \"min\": 1.6, \"max\": 11.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 23.9, \"min\": 16.0, \"max\": 35.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931acf8e_0418", "family": "ribbed", "tier": 2, "seed": 2468007822, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "19f4dfa674f91fb6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61500.0, "surface_area": 18700.0, "principal_moments": [21900000.0, 47199999.99999999, 67099999.99999999], "n_faces": 30, "n_edges": 88, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 92.33, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 63.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 9.8, "min": 3.9, "max": 19.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.6, "min": 1.0, "max": 9.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007822 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 92.33, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 63.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 9.8, \"min\": 3.9, \"max\": 19.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.6, \"min\": 1.0, \"max\": 9.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf8f_0419", "family": "plate", "tier": 2, "seed": 2468007823, "symmetry": "none", "op_count": 3, "ir_hash": "b207492b2ddba01f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10400.0, "surface_area": 4370.0, "principal_moments": [492000.0, 2200000.0, 2520000.0], "n_faces": 34, "n_edges": 96, "n_vertices": 64}, "params": {"plate_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 22.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.3, "min": 2.0, "max": 2.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}, "hole_slot_len": {"type": "float", "default": 5.9, "min": 3.4, "max": 12.5, "step": 0.5, "group": "Holes", "label": "Slot length (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007823 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 22.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.3, \"min\": 2.0, \"max\": 2.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n \"hole_slot_len\": {\"type\": 'float', \"default\": 5.9, \"min\": 3.4, \"max\": 12.5, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot length (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(20.0, 17.9, p[\"hole_nx\"], p[\"hole_ny\"])\n .slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07686845881322245)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acf90_0420", "family": "compound", "tier": 1, "seed": 2468007824, "symmetry": "none", "op_count": 2, "ir_hash": "edf3c9c136693f10", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 64000.0, "surface_area": 10800.0, "principal_moments": [12399999.999999998, 32599999.999999996, 32599999.999999996], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"base_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 26.07, "min": 15.6, "max": 41.7, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 24.9, "min": 10.0, "max": 62.2, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 25.2, "min": 12.6, "max": 33.7, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 47.7, "min": 14.3, "max": 119.2, "step": 1.0, "group": "Column", "label": "Column height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007824 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 26.07, \"min\": 15.6, \"max\": 41.7, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 24.9, \"min\": 10.0, \"max\": 62.2, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 25.2, \"min\": 12.6, \"max\": 33.7, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 47.7, \"min\": 14.3, \"max\": 119.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf91_0421", "family": "bracket", "tier": 3, "seed": 2468007825, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "0291d5298032b252", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19000.0, "surface_area": 7310.0, "principal_moments": [2750000.0, 8740000.0, 10300000.0], "n_faces": 17, "n_edges": 39, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 60, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 56.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 9.9, "min": 4.0, "max": 10.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007825 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 60, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 56.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 9.9, \"min\": 4.0, \"max\": 10.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931acf92_0422", "family": "ribbed", "tier": 1, "seed": 2468007826, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "0860c7586bc39ce4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 52000.0, "surface_area": 27300.0, "principal_moments": [37900000.0, 42500000.0, 79800000.0], "n_faces": 36, "n_edges": 84, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 100.0, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 97.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 6.2, "min": 2.5, "max": 12.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.4, "min": 1.0, "max": 11.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007826 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 100.0, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 97.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 6.2, \"min\": 2.5, \"max\": 12.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.4, \"min\": 1.0, \"max\": 11.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acf93_0423", "family": "flanged", "tier": 2, "seed": 2468007827, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "6a18c7cb619bb4c2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1030000.0, "surface_area": 115000.0, "principal_moments": [2890000000.0, 2890000000.0, 3360000000.0], "n_faces": 26, "n_edges": 57, "n_vertices": 34}, "params": {"outer_d": {"type": "float", "default": 87.83, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 111.6, "min": 33.5, "max": 279.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 29.3, "min": 2.0, "max": 61.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 207.5, "min": 114.2, "max": 263.5, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 15.5, "min": 4.6, "max": 44.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 62.2, "min": 41.5, "max": 93.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007827 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 87.83, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 111.6, \"min\": 33.5, \"max\": 279.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 29.3, \"min\": 2.0, \"max\": 61.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 207.5, \"min\": 114.2, \"max\": 263.5, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 15.5, \"min\": 4.6, \"max\": 44.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 62.2, \"min\": 41.5, \"max\": 93.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931acf95_0425", "family": "profiled", "tier": 1, "seed": 2468007829, "symmetry": "none", "op_count": 1, "ir_hash": "76c63e061da155b3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 207000.0, "surface_area": 25500.0, "principal_moments": [34000000.0, 706000000.0, 706000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"circ_r": {"type": "float", "default": 19.11, "min": 9.6, "max": 38.2, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 200.0, "min": 60.0, "max": 600.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007829 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 19.11, \"min\": 9.6, \"max\": 38.2, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 200.0, \"min\": 60.0, \"max\": 600.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf96_0426", "family": "revolved", "tier": 0, "seed": 2468007830, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "818a7a041733fbc4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 213000.0, "surface_area": 41000.0, "principal_moments": [76900000.0, 398000000.0, 398000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 49.09, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 168.6, "min": 50.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007830 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 49.09, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 168.6, \"min\": 50.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acf97_0427", "family": "gear", "tier": 0, "seed": 2468007831, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "077dcd0078c2c0fd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34100.0, "surface_area": 9810.0, "principal_moments": [7570000.0, 7570000.0, 14099999.999999998], "n_faces": 116, "n_edges": 342, "n_vertices": 228}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 19, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 13.6, "min": 5.4, "max": 34.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007831 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 19, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 13.6, \"min\": 5.4, \"max\": 34.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf98_0428", "family": "plate", "tier": 0, "seed": 2468007832, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "4ba169300c6f26ee", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 89500.0, "surface_area": 21800.0, "principal_moments": [45999999.99999999, 99199999.99999999, 144000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 114.89, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 77.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007832 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 114.89, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 77.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acf99_0429", "family": "gear", "tier": 1, "seed": 2468007833, "symmetry": "none", "op_count": 1, "ir_hash": "70f07661ae55c466", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2430.0, "surface_area": 1790.0, "principal_moments": [98900.0, 98900.0, 185000.0], "n_faces": 147, "n_edges": 435, "n_vertices": 290}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 24, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.7, "min": 2.3, "max": 14.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 5.1, "min": 2.0, "max": 12.9, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007833 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 24, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.3, \"max\": 14.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 5.1, \"min\": 2.0, \"max\": 12.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931acf9a_0430", "family": "profiled", "tier": 1, "seed": 2468007834, "symmetry": "none", "op_count": 1, "ir_hash": "88404604d9ea2c36", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 52300.0, "surface_area": 10900.0, "principal_moments": [3980000.0, 78500000.0, 80700000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 29.32, "min": 14.7, "max": 58.6, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 15, "min": 7.5, "max": 30.0, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 133.5, "min": 40.0, "max": 400.5, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007834 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 29.32, \"min\": 14.7, \"max\": 58.6, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 15, \"min\": 7.5, \"max\": 30.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 133.5, \"min\": 40.0, \"max\": 400.5, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf9b_0431", "family": "plate", "tier": 0, "seed": 2468007835, "symmetry": "none", "op_count": 1, "ir_hash": "21e390dbeda527d2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 109000.0, "surface_area": 22800.0, "principal_moments": [80500000.0, 87900000.0, 166000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 97.54, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 93.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007835 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 97.54, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 93.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf9c_0432", "family": "revolved", "tier": 2, "seed": 2468007836, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "0ff8e0866bfbc0b1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 135000.0, "surface_area": 19400.0, "principal_moments": [54099999.99999999, 79300000.0, 79300000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 53.51, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 68.2, "min": 20.5, "max": 204.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 18.6, "min": 2.0, "max": 37.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007836 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 53.51, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 68.2, \"min\": 20.5, \"max\": 204.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 18.6, \"min\": 2.0, \"max\": 37.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf9d_0433", "family": "block", "tier": 1, "seed": 2468007837, "symmetry": "none", "op_count": 2, "ir_hash": "d6cd8b8acf8ddca3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15400.0, "surface_area": 6030.0, "principal_moments": [1570000.0, 1660000.0, 2540000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 31.87, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 16.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 32.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 4.9, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007837 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 31.87, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 16.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 32.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 4.9, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf9e_0434", "family": "bracket", "tier": 1, "seed": 2468007838, "symmetry": "none", "op_count": 1, "ir_hash": "1f3a4d97f55ab97a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 62100.0, "surface_area": 23800.0, "principal_moments": [27699999.999999996, 119000000.0, 120000000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 75, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 88.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 51.96, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 48.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007838 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 88.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 51.96, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 48.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf9f_0435", "family": "revolved", "tier": 2, "seed": 2468007839, "symmetry": "none", "op_count": 2, "ir_hash": "461530efe3250ea1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 854000.0, "surface_area": 104000.0, "principal_moments": [955000000.0, 5510000000.0, 5510000000.0], "n_faces": 14, "n_edges": 23, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 68.92, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 240.7, "min": 72.2, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 34.3, "min": 2.0, "max": 48.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 118.9, "min": 82.7, "max": 206.8, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 27.6, "min": 8.3, "max": 120.3, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "groove_depth": {"type": "float", "default": 5.29, "min": 2.12, "max": 15.87, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 22.95, "min": 9.18, "max": 68.85, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 76.9, "min": 36.1, "max": 204.6, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 1.1, "min": 0.1, "max": 3.3, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007839 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 68.92, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 240.7, \"min\": 72.2, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 34.3, \"min\": 2.0, \"max\": 48.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 118.9, \"min\": 82.7, \"max\": 206.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 27.6, \"min\": 8.3, \"max\": 120.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 5.29, \"min\": 2.12, \"max\": 15.87, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 22.95, \"min\": 9.18, \"max\": 68.85, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 76.9, \"min\": 36.1, \"max\": 204.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.1, \"min\": 0.1, \"max\": 3.3, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acfa1_0437", "family": "plate", "tier": 0, "seed": 2468007841, "symmetry": "radial", "op_count": 1, "ir_hash": "8590ee9297fddcba", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2070.0, "surface_area": 1270.0, "principal_moments": [35400.0, 170000.0, 197000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 30.97, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 13.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007841 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30.97, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 13.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acfa2_0438", "family": "plate", "tier": 0, "seed": 2468007842, "symmetry": "none", "op_count": 1, "ir_hash": "77d9142f0d3b1def", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7510.0, "surface_area": 3360.0, "principal_moments": [636000.0, 1020000.0, 1610000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 40, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 31.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007842 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 31.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acfa3_0439", "family": "gear", "tier": 1, "seed": 2468007843, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "a40d271189784e00", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30000.0, "surface_area": 9380.0, "principal_moments": [6240000.0, 6240000.0, 11499999.999999998], "n_faces": 111, "n_edges": 327, "n_vertices": 218}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 18, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 13.8, "min": 5.5, "max": 34.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 9.6, "min": 2.0, "max": 27.9, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007843 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 18, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 13.8, \"min\": 5.5, \"max\": 34.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 9.6, \"min\": 2.0, \"max\": 27.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acfa4_0440", "family": "bracket", "tier": 1, "seed": 2468007844, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "717342e4b8408b40", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9870.0, "surface_area": 4870.0, "principal_moments": [1160000.0, 4020000.0, 4600000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 43.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 18.44, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 7.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007844 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 43.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 18.44, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 7.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931acfa6_0442", "family": "enclosure", "tier": 2, "seed": 2468007846, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "b6ea60cbc3e0d27f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 73900.0, "surface_area": 40000.0, "principal_moments": [63099999.99999999, 77900000.0, 88800000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 75, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 49.5, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 71.2, "min": 28.5, "max": 142.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 11.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007846 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 75, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 49.5, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 71.2, \"min\": 28.5, \"max\": 142.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 11.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acfa7_0443", "family": "compound", "tier": 1, "seed": 2468007847, "symmetry": "none", "op_count": 3, "ir_hash": "a0c9dbacea9ebf86", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24100.0, "surface_area": 6620.0, "principal_moments": [2770000.0, 3830000.0, 4240000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 33.38, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 24.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 28.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 14.3, "min": 5.7, "max": 22.9, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 24.7, "min": 9.9, "max": 39.5, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 2.8, "min": 2.0, "max": 3.1, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007847 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 33.38, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 24.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 28.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 14.3, \"min\": 5.7, \"max\": 22.9, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 24.7, \"min\": 9.9, \"max\": 39.5, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 2.8, \"min\": 2.0, \"max\": 3.1, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acfa9_0445", "family": "bracket", "tier": 1, "seed": 2468007849, "symmetry": "none", "op_count": 1, "ir_hash": "15ca0e2f5712a952", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30900.0, "surface_area": 22300.0, "principal_moments": [23899999.999999996, 32399999.999999996, 43300000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 68.07, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 72.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007849 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 68.07, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 72.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acfab_0447", "family": "compound", "tier": 1, "seed": 2468007851, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "ecc231a79d9aa3c6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9180.0, "surface_area": 4610.0, "principal_moments": [365000.0, 2370000.0, 2370000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 17.44, "min": 8.7, "max": 31.4, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 37.7, "min": 15.1, "max": 75.4, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 10.9, "min": 5.5, "max": 15.7, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 24.7, "min": 7.4, "max": 61.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 6.6, "min": 2.0, "max": 7.8, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007851 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 17.44, \"min\": 8.7, \"max\": 31.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 37.7, \"min\": 15.1, \"max\": 75.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 10.9, \"min\": 5.5, \"max\": 15.7, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 24.7, \"min\": 7.4, \"max\": 61.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 6.6, \"min\": 2.0, \"max\": 7.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acfac_0448", "family": "block", "tier": 2, "seed": 2468007852, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "953b0ec8c8b7b8c4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 198000.0, "surface_area": 35600.0, "principal_moments": [113000000.0, 144000000.0, 154000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 58.4, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 55.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 76.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 12.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 23.4, "min": 11.7, "max": 46.7, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 38.1, "min": 19.1, "max": 44.1, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 34.2, "min": 13.7, "max": 64.9, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007852 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 58.4, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 55.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 76.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 12.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 23.4, \"min\": 11.7, \"max\": 46.7, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 38.1, \"min\": 19.1, \"max\": 44.1, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 34.2, \"min\": 13.7, \"max\": 64.9, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acfad_0449", "family": "compound", "tier": 1, "seed": 2468007853, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "839ca14722e15f30", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 165000.0, "surface_area": 19500.0, "principal_moments": [36100000.0, 227000000.0, 227000000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 45, "min": 22.5, "max": 81.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 78.2, "min": 31.3, "max": 156.4, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 30.4, "min": 15.2, "max": 40.5, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 55.3, "min": 16.6, "max": 138.2, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007853 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 45, \"min\": 22.5, \"max\": 81.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 78.2, \"min\": 31.3, \"max\": 156.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 30.4, \"min\": 15.2, \"max\": 40.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 55.3, \"min\": 16.6, \"max\": 138.2, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acfae_0450", "family": "gear", "tier": 3, "seed": 2468007854, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "4fc1e61d8a1cf61e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10600.0, "surface_area": 5070.0, "principal_moments": [1220000.0, 1220000.0, 2300000.0], "n_faces": 203, "n_edges": 600, "n_vertices": 400}, "params": {"module": {"type": "float", "default": 1.25, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 33, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 7.6, "min": 3.0, "max": 19.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": 0.25, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.36, "min": 0.0, "max": 0.62, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 6.9, "min": 2.0, "max": 22.9, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}, "hub_d": {"type": "float", "default": 12.4, "min": 9.7, "max": 20.6, "step": 1.0, "group": "Hub", "label": "Hub diameter (mm)"}, "hub_h": {"type": "float", "default": 5.8, "min": 1.7, "max": 11.6, "step": 0.5, "group": "Hub", "label": "Hub height (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007854 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.25, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 33, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 7.6, \"min\": 3.0, \"max\": 19.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.25, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.36, \"min\": 0.0, \"max\": 0.62, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 6.9, \"min\": 2.0, \"max\": 22.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n \"hub_d\": {\"type\": 'float', \"default\": 12.4, \"min\": 9.7, \"max\": 20.6, \"step\": 1.0, \"group\": 'Hub', \"label\": 'Hub diameter (mm)'},\n \"hub_h\": {\"type\": 'float', \"default\": 5.8, \"min\": 1.7, \"max\": 11.6, \"step\": 0.5, \"group\": 'Hub', \"label\": 'Hub height (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"hub_d\"] / 2).extrude(p[\"hub_h\"])\n )\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931acfaf_0451", "family": "profiled", "tier": 1, "seed": 2468007855, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "619d646ab1a14c43", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 56800.0, "surface_area": 9840.0, "principal_moments": [6970000.0, 31599999.999999996, 31599999.999999996], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"circ_r": {"type": "float", "default": 19.19, "min": 9.6, "max": 38.4, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 4, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 77.1, "min": 23.1, "max": 231.3, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007855 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 19.19, \"min\": 9.6, \"max\": 38.4, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 77.1, \"min\": 23.1, \"max\": 231.3, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acfb0_0452", "family": "flanged", "tier": 1, "seed": 2468007856, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "320f608e8ff3fd35", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 584000.0, "surface_area": 73100.0, "principal_moments": [798000000.0, 1150000000.0, 1150000000.0], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 80, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 114.0, "min": 34.2, "max": 285.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 32.5, "min": 2.0, "max": 56.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 141.7, "min": 104.0, "max": 240.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 10.0, "min": 3.0, "max": 45.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 42.5, "min": 28.3, "max": 63.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007856 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 114.0, \"min\": 34.2, \"max\": 285.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 32.5, \"min\": 2.0, \"max\": 56.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 141.7, \"min\": 104.0, \"max\": 240.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 10.0, \"min\": 3.0, \"max\": 45.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 42.5, \"min\": 28.3, \"max\": 63.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acfb1_0453", "family": "threaded", "tier": 0, "seed": 2468007857, "symmetry": "none", "op_count": 1, "ir_hash": "5473bbf14f308bcf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5530.0, "surface_area": 3430.0, "principal_moments": [84100.0, 1620000.0, 1620000.0], "n_faces": 340, "n_edges": 874, "n_vertices": 536}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 58.8, "min": 23.5, "max": 117.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007857 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 58.8, \"min\": 23.5, \"max\": 117.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acfb2_0454", "family": "bracket", "tier": 3, "seed": 2468007858, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "32efb23a69b63fa1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17600.0, "surface_area": 7210.0, "principal_moments": [3150000.0, 4230000.0, 6120000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 28.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 49.89, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 7.9, "min": 3.0, "max": 18.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007858 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 28.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 49.89, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 7.9, \"min\": 3.0, \"max\": 18.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acfb3_0455", "family": "block", "tier": 2, "seed": 2468007859, "symmetry": "none", "op_count": 3, "ir_hash": "792ed12d8708d2c7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17800.0, "surface_area": 6020.0, "principal_moments": [1700000.0, 2360000.0, 2580000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 33.77, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 22.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 24.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 8.9, "min": 4.5, "max": 17.8, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 5.8, "min": 2.3, "max": 14.5, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.2, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007859 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 33.77, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 22.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 24.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 8.9, \"min\": 4.5, \"max\": 17.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.3, \"max\": 14.5, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.2, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acfb4_0456", "family": "plate", "tier": 1, "seed": 2468007860, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "0c6c3c89a311e5f4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29300.0, "surface_area": 12300.0, "principal_moments": [5470000.0, 27599999.999999996, 32899999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 107.4, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 47.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 10.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007860 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 107.4, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 47.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 10.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931acfb5_0457", "family": "profiled", "tier": 0, "seed": 2468007861, "symmetry": "none", "op_count": 1, "ir_hash": "e4f7c602361b652a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 300000.0, "surface_area": 63400.0, "principal_moments": [86100000.0, 1650000000.0, 1650000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 43.72, "min": 21.9, "max": 87.4, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 300.0, "min": 90.0, "max": 900.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007861 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 43.72, \"min\": 21.9, \"max\": 87.4, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 300.0, \"min\": 90.0, \"max\": 900.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acfb6_0458", "family": "block", "tier": 1, "seed": 2468007862, "symmetry": "none", "op_count": 2, "ir_hash": "23f33eb2a1ee3d78", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 125000.0, "surface_area": 21100.0, "principal_moments": [47399999.99999999, 54699999.99999999, 70800000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 38.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 61.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007862 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 38.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 61.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 10.3\n _ssy = 9.8\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acfb7_0459", "family": "bracket", "tier": 2, "seed": 2468007863, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "e9d00607e6a185ee", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32200.0, "surface_area": 11500.0, "principal_moments": [14099999.999999998, 32499999.999999996, 44600000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 80.08, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 65.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 19.66, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 7.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 9.0, "min": 4.0, "max": 9.8, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007863 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80.08, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 65.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 19.66, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 7.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 9.0, \"min\": 4.0, \"max\": 9.8, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931acfb8_0460", "family": "profiled", "tier": 2, "seed": 2468007864, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "d603304f7ca4c905", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 190000.0, "surface_area": 25400.0, "principal_moments": [29299999.999999996, 649000000.0, 649000000.0], "n_faces": 7, "n_edges": 15, "n_vertices": 10}, "params": {"circ_r": {"type": "float", "default": 20, "min": 10.0, "max": 40.0, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 200.0, "min": 60.0, "max": 600.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007864 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 20, \"min\": 10.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 200.0, \"min\": 60.0, \"max\": 600.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acfb9_0461", "family": "bracket", "tier": 1, "seed": 2468007865, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "e5c8d8f283fb01f8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17600.0, "surface_area": 12900.0, "principal_moments": [6100000.0, 15799999.999999998, 15899999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 71.52, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 62.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007865 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 71.52, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 62.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acfbc_0464", "family": "revolved", "tier": 1, "seed": 2468007868, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "1c6fced8f3477456", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 503000.0, "surface_area": 71600.0, "principal_moments": [534000000.0, 1560000000.0, 1560000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 65, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 162.5, "min": 48.8, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 37.2, "min": 2.0, "max": 45.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 108.2, "min": 78.0, "max": 195.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 23.9, "min": 7.2, "max": 81.2, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007868 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 162.5, \"min\": 48.8, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 37.2, \"min\": 2.0, \"max\": 45.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 108.2, \"min\": 78.0, \"max\": 195.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 23.9, \"min\": 7.2, \"max\": 81.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acfbd_0465", "family": "flanged", "tier": 2, "seed": 2468007869, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "b484c412fae4c0c1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 423000.0, "surface_area": 54000.0, "principal_moments": [410000000.0, 595000000.0, 595000000.0], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 73.1, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 97.5, "min": 29.2, "max": 243.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 22.9, "min": 2.0, "max": 51.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 120.0, "min": 95.0, "max": 219.3, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.2, "min": 2.5, "max": 39.0, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 36.0, "min": 24.0, "max": 54.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007869 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 73.1, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 97.5, \"min\": 29.2, \"max\": 243.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 22.9, \"min\": 2.0, \"max\": 51.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 120.0, \"min\": 95.0, \"max\": 219.3, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.2, \"min\": 2.5, \"max\": 39.0, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 36.0, \"min\": 24.0, \"max\": 54.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acfbe_0466", "family": "compound", "tier": 1, "seed": 2468007870, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "1b74c8b41c031102", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32500.0, "surface_area": 7950.0, "principal_moments": [4710000.0, 6750000.0, 6930000.0], "n_faces": 14, "n_edges": 34, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 39.87, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 28.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 29.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 8.9, "min": 3.6, "max": 12.6, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 8.3, "min": 2.2, "max": 26.7, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.4, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007870 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 39.87, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 28.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 29.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 8.9, \"min\": 3.6, \"max\": 12.6, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 8.3, \"min\": 2.2, \"max\": 26.7, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.4, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acfc1_0469", "family": "revolved", "tier": 1, "seed": 2468007873, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "26a7e5d85c6a1f4d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 399000.0, "surface_area": 55300.0, "principal_moments": [208000000.0, 1290000000.0, 1290000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 58.56, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 189.2, "min": 56.8, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 27.3, "min": 2.0, "max": 41.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007873 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 58.56, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 189.2, \"min\": 56.8, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 27.3, \"min\": 2.0, \"max\": 41.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acfc2_0470", "family": "block", "tier": 1, "seed": 2468007874, "symmetry": "none", "op_count": 2, "ir_hash": "c58c40553f098900", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 154000.0, "surface_area": 22700.0, "principal_moments": [58199999.99999999, 97599999.99999999, 128000000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 58.78, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 33.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 80.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007874 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 58.78, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 33.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 80.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 22.0\n _ssy = 22.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acfc3_0471", "family": "compound", "tier": 1, "seed": 2468007875, "symmetry": "none", "op_count": 2, "ir_hash": "c3f14186a55552f0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 76800.0, "surface_area": 10700.0, "principal_moments": [17300000.0, 27899999.999999996, 27899999.999999996], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 44.92, "min": 22.5, "max": 80.9, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 38.8, "min": 15.5, "max": 77.6, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 30.3, "min": 15.2, "max": 40.4, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 21.2, "min": 6.4, "max": 53.0, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007875 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 44.92, \"min\": 22.5, \"max\": 80.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 38.8, \"min\": 15.5, \"max\": 77.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 30.3, \"min\": 15.2, \"max\": 40.4, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 21.2, \"min\": 6.4, \"max\": 53.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acfc5_0473", "family": "compound", "tier": 2, "seed": 2468007877, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "5938ef47628e9489", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 205000.0, "surface_area": 26100.0, "principal_moments": [110000000.0, 138000000.0, 140000000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 57.26, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 62.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 56.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 26.4, "min": 10.6, "max": 39.5, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 26.5, "min": 7.9, "max": 105.6, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 12.6, "min": 2.0, "max": 19.0, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 12.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007877 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 57.26, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 62.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 56.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 26.4, \"min\": 10.6, \"max\": 39.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 26.5, \"min\": 7.9, \"max\": 105.6, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 12.6, \"min\": 2.0, \"max\": 19.0, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 12.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acfc6_0474", "family": "threaded", "tier": 0, "seed": 2468007878, "symmetry": "none", "op_count": 1, "ir_hash": "86b7b8b2d6af55ad", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3740.0, "surface_area": 2370.0, "principal_moments": [56900.0, 520000.0, 520000.0], "n_faces": 235, "n_edges": 603, "n_vertices": 370}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 39.9, "min": 16.0, "max": 79.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007878 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 39.9, \"min\": 16.0, \"max\": 79.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931acfc7_0475", "family": "enclosure", "tier": 2, "seed": 2468007879, "symmetry": "none", "op_count": 3, "ir_hash": "5095c8d28f498eca", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 171000.0, "surface_area": 87300.0, "principal_moments": [308000000.0, 415000000.0, 463000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 115, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 70.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 101.6, "min": 40.6, "max": 203.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007879 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 115, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 70.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 101.6, \"min\": 40.6, \"max\": 203.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acfc8_0476", "family": "revolved", "tier": 1, "seed": 2468007880, "symmetry": "radial", "op_count": 2, "ir_hash": "f44a90f94cb802f9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6620.0, "surface_area": 3220.0, "principal_moments": [396000.0, 590000.0, 590000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 20, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 31.8, "min": 9.5, "max": 95.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007880 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 20, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 31.8, \"min\": 9.5, \"max\": 95.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 3.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acfca_0478", "family": "plate", "tier": 1, "seed": 2468007882, "symmetry": "none", "op_count": 2, "ir_hash": "b5fe8b0d4b7a67c3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17700.0, "surface_area": 7800.0, "principal_moments": [1720000.0, 11899999.999999998, 13499999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 90.09, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 33.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 7.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007882 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 90.09, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 33.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 7.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931acfcb_0479", "family": "enclosure", "tier": 2, "seed": 2468007883, "symmetry": "none", "op_count": 4, "ir_hash": "1f1b19e8af96972a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 239000.0, "surface_area": 84200.0, "principal_moments": [400000000.0, 573000000.0, 651000000.0], "n_faces": 35, "n_edges": 108, "n_vertices": 72}, "params": {"enc_w": {"type": "float", "default": 120.0, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 68.2, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 100.8, "min": 40.3, "max": 201.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007883 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 120.0, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 68.2, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 100.8, \"min\": 40.3, \"max\": 201.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.06705192258397848)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acfcc_0480", "family": "plate", "tier": 3, "seed": 2468007884, "symmetry": "none", "op_count": 4, "ir_hash": "bab7ab49f5af904a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 88200.0, "surface_area": 24900.0, "principal_moments": [61199999.99999999, 93199999.99999999, 153000000.0], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"plate_w": {"type": "float", "default": 110, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 88.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 10.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "pocket_w": {"type": "float", "default": 52.1, "min": 26.1, "max": 88.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 43.5, "min": 21.8, "max": 70.6, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 3.1, "min": 1.2, "max": 8.5, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007884 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 110, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 88.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 10.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"pocket_w\": {\"type\": 'float', \"default\": 52.1, \"min\": 26.1, \"max\": 88.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 43.5, \"min\": 21.8, \"max\": 70.6, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 3.1, \"min\": 1.2, \"max\": 8.5, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(88.0, 23.5, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.04451577358777868)\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acfcd_0481", "family": "revolved", "tier": 1, "seed": 2468007885, "symmetry": "radial", "op_count": 2, "ir_hash": "569d972177ec404b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 53600.0, "surface_area": 15000.0, "principal_moments": [18100000.0, 18100000.0, 27599999.999999996], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 33.88, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 41.1, "min": 12.3, "max": 123.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 73.1, "min": 40.7, "max": 101.6, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.8, "min": 2.6, "max": 20.6, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007885 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 33.88, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 41.1, \"min\": 12.3, \"max\": 123.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 73.1, \"min\": 40.7, \"max\": 101.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.8, \"min\": 2.6, \"max\": 20.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 3.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.1157209454003369)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acfd1_0485", "family": "block", "tier": 2, "seed": 2468007889, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "faef3ad9e47a0ef0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 130000.0, "surface_area": 21100.0, "principal_moments": [40400000.0, 91299999.99999999, 116000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 27.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 87.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 8.1, "min": 4.0, "max": 16.2, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 5.3, "min": 2.1, "max": 13.2, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007889 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 27.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 87.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 8.1, \"min\": 4.0, \"max\": 16.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.1, \"max\": 13.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acfd2_0486", "family": "block", "tier": 1, "seed": 2468007890, "symmetry": "none", "op_count": 2, "ir_hash": "6cbbae533a16b383", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 439000.0, "surface_area": 42300.0, "principal_moments": [362000000.0, 465000000.0, 628000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 52.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 15.3, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007890 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 52.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 15.3, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acfd3_0487", "family": "bracket", "tier": 1, "seed": 2468007891, "symmetry": "none", "op_count": 1, "ir_hash": "4790939b1cf91b4a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 76000.0, "surface_area": 29200.0, "principal_moments": [75800000.0, 92399999.99999999, 130000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 75, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 84.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007891 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 84.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acfd4_0488", "family": "bracket", "tier": 2, "seed": 2468007892, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "29c0cf27f61f3e53", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 48400.0, "surface_area": 21100.0, "principal_moments": [22600000.0, 62199999.99999999, 66999999.99999999], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 86.37, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 6.3, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007892 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 86.37, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.3, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acfd5_0489", "family": "block", "tier": 1, "seed": 2468007893, "symmetry": "radial", "op_count": 2, "ir_hash": "5967dcfc869c32ca", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 415000.0, "surface_area": 44900.0, "principal_moments": [326000000.0, 440000000.0, 577000000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"block_w": {"type": "float", "default": 81.34, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 52.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.4, "min": 16.3, "max": 36.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007893 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 81.34, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 52.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.4, \"min\": 16.3, \"max\": 36.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acfd6_0490", "family": "threaded", "tier": 1, "seed": 2468007894, "symmetry": "none", "op_count": 1, "ir_hash": "f2cc72d1c5a66567", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18500.0, "surface_area": 7280.0, "principal_moments": [2420000.0, 3490000.0, 3490000.0], "n_faces": 303, "n_edges": 863, "n_vertices": 562}, "params": {"major_d": {"type": "float", "default": 16.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.0, "min": 1.0, "max": 4.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 38.6, "min": 15.4, "max": 77.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007894 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 4.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 38.6, \"min\": 15.4, \"max\": 77.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acfd7_0491", "family": "revolved", "tier": 1, "seed": 2468007895, "symmetry": "none", "op_count": 2, "ir_hash": "a1df44877437f712", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15500.0, "surface_area": 5030.0, "principal_moments": [985000.0, 3700000.0, 3700000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 21.28, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 50.2, "min": 15.1, "max": 150.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 7.5, "min": 2.0, "max": 14.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 1.2, "min": 0.1, "max": 3.6, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007895 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 21.28, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 50.2, \"min\": 15.1, \"max\": 150.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 7.5, \"min\": 2.0, \"max\": 14.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.2, \"min\": 0.1, \"max\": 3.6, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acfd9_0493", "family": "bracket", "tier": 1, "seed": 2468007897, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "c9d7c532265dd0a9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24800.0, "surface_area": 18200.0, "principal_moments": [19500000.0, 26899999.999999996, 40800000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 72.91, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 79.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 36.83, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007897 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 72.91, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 79.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 36.83, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931acfdb_0495", "family": "ribbed", "tier": 1, "seed": 2468007899, "symmetry": "none", "op_count": 2, "ir_hash": "50ef19b61a5db5cf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45600.0, "surface_area": 15400.0, "principal_moments": [13899999.999999998, 31099999.999999996, 41900000.0], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 54.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 15.3, "min": 6.1, "max": 30.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.4, "min": 1.0, "max": 13.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007899 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 54.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 15.3, \"min\": 6.1, \"max\": 30.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.4, \"min\": 1.0, \"max\": 13.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931acfdc_0496", "family": "ribbed", "tier": 2, "seed": 2468007900, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "7d04d6f3ac6a2f40", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20600.0, "surface_area": 9430.0, "principal_moments": [3040000.0, 5070000.0, 6760000.0], "n_faces": 38, "n_edges": 108, "n_vertices": 68}, "params": {"base_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 37.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 12.7, "min": 5.1, "max": 25.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.8, "min": 1.0, "max": 14.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 8.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007900 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 37.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 12.7, \"min\": 5.1, \"max\": 25.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.8, \"min\": 1.0, \"max\": 14.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 8.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acfdd_0497", "family": "revolved", "tier": 1, "seed": 2468007901, "symmetry": "radial", "op_count": 1, "ir_hash": "fe96e0cc5704fcf7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 289000.0, "surface_area": 38900.0, "principal_moments": [120000000.0, 678000000.0, 678000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 45, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 155.1, "min": 46.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.3, "min": 2.0, "max": 31.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 65.5, "min": 54.0, "max": 135.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 41.9, "min": 12.6, "max": 77.5, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007901 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 155.1, \"min\": 46.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.3, \"min\": 2.0, \"max\": 31.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 65.5, \"min\": 54.0, \"max\": 135.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 41.9, \"min\": 12.6, \"max\": 77.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acfde_0498", "family": "block", "tier": 1, "seed": 2468007902, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "204fdb32a852207c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24700.0, "surface_area": 6250.0, "principal_moments": [2760000.0, 4250000.0, 4260000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 37.72, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 26.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 25.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007902 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 37.72, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 26.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 25.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acfdf_0499", "family": "flanged", "tier": 2, "seed": 2468007903, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "55acee2e79da62e6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19500.0, "surface_area": 7630.0, "principal_moments": [3530000.0, 3810000.0, 3810000.0], "n_faces": 32, "n_edges": 80, "n_vertices": 47}, "params": {"outer_d": {"type": "float", "default": 24.91, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 32.7, "min": 9.8, "max": 81.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 9.0, "min": 2.0, "max": 17.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 49.8, "min": 32.4, "max": 74.7, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.4, "min": 1.3, "max": 13.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 14.9, "min": 10.0, "max": 22.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007903 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 24.91, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 32.7, \"min\": 9.8, \"max\": 81.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 9.0, \"min\": 2.0, \"max\": 17.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 49.8, \"min\": 32.4, \"max\": 74.7, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.4, \"min\": 1.3, \"max\": 13.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 14.9, \"min\": 10.0, \"max\": 22.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acfe2_0502", "family": "revolved", "tier": 2, "seed": 2468007906, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "246dcb8c42f6edf7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 398.0, "surface_area": 465.0, "principal_moments": [6350.0, 6350.0, 11500.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 13.2, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 4.3, "min": 1.3, "max": 12.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 7.5, "min": 2.0, "max": 9.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007906 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 13.2, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 4.3, \"min\": 1.3, \"max\": 12.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 7.5, \"min\": 2.0, \"max\": 9.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acfe3_0503", "family": "revolved", "tier": 1, "seed": 2468007907, "symmetry": "none", "op_count": 1, "ir_hash": "1995db703fc83c1d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9570.0, "surface_area": 5040.0, "principal_moments": [470000.0, 2000000.0, 2000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 18.1, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 55.8, "min": 16.7, "max": 167.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007907 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 18.1, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 55.8, \"min\": 16.7, \"max\": 167.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931acfe4_0504", "family": "ribbed", "tier": 1, "seed": 2468007908, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "bf416a0c0dd8ada0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 68600.0, "surface_area": 25300.0, "principal_moments": [31399999.999999996, 45500000.0, 70200000.0], "n_faces": 26, "n_edges": 60, "n_vertices": 40}, "params": {"base_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 70.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 18.7, "min": 7.5, "max": 37.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.0, "min": 1.0, "max": 10.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007908 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 70.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 18.7, \"min\": 7.5, \"max\": 37.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.0, \"max\": 10.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acfe5_0505", "family": "flanged", "tier": 1, "seed": 2468007909, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "0e8f034b9a04cd33", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 725000.0, "surface_area": 101000.0, "principal_moments": [1750000000.0, 1750000000.0, 2310000000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 90, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 93.9, "min": 28.2, "max": 234.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 49.4, "min": 2.0, "max": 63.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 193.4, "min": 117.0, "max": 270.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 13.5, "min": 4.0, "max": 37.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 58.0, "min": 38.7, "max": 87.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007909 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 93.9, \"min\": 28.2, \"max\": 234.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 49.4, \"min\": 2.0, \"max\": 63.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 193.4, \"min\": 117.0, \"max\": 270.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 13.5, \"min\": 4.0, \"max\": 37.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 58.0, \"min\": 38.7, \"max\": 87.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acfe7_0507", "family": "bracket", "tier": 2, "seed": 2468007911, "symmetry": "none", "op_count": 1, "ir_hash": "c8a820a6f547394a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23300.0, "surface_area": 10400.0, "principal_moments": [6260000.0, 22000000.0, 26999999.999999996], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 7.4, "min": 2.5, "max": 10.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007911 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 7.4, \"min\": 2.5, \"max\": 10.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acfe8_0508", "family": "threaded", "tier": 0, "seed": 2468007912, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "52bb8448c380a254", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7880.0, "surface_area": 3740.0, "principal_moments": [218000.0, 1490000.0, 1490000.0], "n_faces": 411, "n_edges": 1131, "n_vertices": 722}, "params": {"major_d": {"type": "float", "default": 16.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.0, "min": 1.0, "max": 4.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 46.0, "min": 18.4, "max": 92.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007912 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 4.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 46.0, \"min\": 18.4, \"max\": 92.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acfe9_0509", "family": "revolved", "tier": 0, "seed": 2468007913, "symmetry": "none", "op_count": 1, "ir_hash": "870ed1241a1282b8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5790.0, "surface_area": 2730.0, "principal_moments": [379000.0, 379000.0, 543000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 25, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 17.7, "min": 5.3, "max": 53.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007913 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 17.7, \"min\": 5.3, \"max\": 53.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acfeb_0511", "family": "gear", "tier": 0, "seed": 2468007915, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "a983a29450e35720", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 544000.0, "surface_area": 66900.0, "principal_moments": [907000000.0, 907000000.0, 1750000000.0], "n_faces": 194, "n_edges": 576, "n_vertices": 384}, "params": {"module": {"type": "float", "default": 5.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 32, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 27.3, "min": 10.9, "max": 68.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007915 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 5.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 32, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 27.3, \"min\": 10.9, \"max\": 68.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acfec_0512", "family": "bracket", "tier": 1, "seed": 2468007916, "symmetry": "none", "op_count": 1, "ir_hash": "1e86f0aa0bfff1d2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 36500.0, "surface_area": 14700.0, "principal_moments": [15699999.999999998, 25299999.999999996, 31999999.999999996], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 60, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 55.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 38.47, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007916 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 60, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 55.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 38.47, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acfed_0513", "family": "compound", "tier": 2, "seed": 2468007917, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "a47685912c406b19", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61200.0, "surface_area": 21500.0, "principal_moments": [40500000.0, 44300000.0, 47899999.99999999], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"base_w": {"type": "float", "default": 74.6, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 80.9, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 8.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 21.8, "min": 8.7, "max": 37.3, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 60.9, "min": 18.3, "max": 182.7, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 12.6, "min": 2.0, "max": 15.7, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007917 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 74.6, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 80.9, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 21.8, \"min\": 8.7, \"max\": 37.3, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 60.9, \"min\": 18.3, \"max\": 182.7, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 12.6, \"min\": 2.0, \"max\": 15.7, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_w\"], p[\"base_d\"]) * 0.06560544532230905)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acfee_0514", "family": "plate", "tier": 1, "seed": 2468007918, "symmetry": "radial", "op_count": 2, "ir_hash": "ed1cc9a1b7302401", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10100.0, "surface_area": 6470.0, "principal_moments": [995000.0, 5460000.0, 6430000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"plate_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 34.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.0, "min": 16.0, "max": 36.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007918 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 34.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.0, \"min\": 16.0, \"max\": 36.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acfef_0515", "family": "block", "tier": 1, "seed": 2468007919, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f29cbd22da2f669e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 233000.0, "surface_area": 29600.0, "principal_moments": [119000000.0, 215000000.0, 293000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 71.39, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 33.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007919 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 71.39, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 33.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acff0_0516", "family": "block", "tier": 2, "seed": 2468007920, "symmetry": "radial", "op_count": 3, "ir_hash": "71b1e224a7102239", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 47900.0, "surface_area": 9280.0, "principal_moments": [7300000.0, 15099999.999999998, 16499999.999999998], "n_faces": 28, "n_edges": 78, "n_vertices": 52}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 27.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 32.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 16.5, "min": 11.0, "max": 24.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007920 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 27.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 32.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 16.5, \"min\": 11.0, \"max\": 24.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.052183197471465756)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acff2_0518", "family": "flanged", "tier": 1, "seed": 2468007922, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "8f1c94da59c9bff3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 99400.0, "surface_area": 23900.0, "principal_moments": [49499999.99999999, 50099999.99999999, 50099999.99999999], "n_faces": 29, "n_edges": 114, "n_vertices": 76}, "params": {"outer_d": {"type": "float", "default": 50.5, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 51.0, "min": 15.3, "max": 127.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 19.3, "min": 2.0, "max": 35.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 83.5, "min": 65.7, "max": 151.5, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.0, "min": 1.5, "max": 20.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 25.1, "min": 16.7, "max": 37.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007922 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50.5, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 51.0, \"min\": 15.3, \"max\": 127.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 19.3, \"min\": 2.0, \"max\": 35.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 83.5, \"min\": 65.7, \"max\": 151.5, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.0, \"min\": 1.5, \"max\": 20.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 25.1, \"min\": 16.7, \"max\": 37.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acff3_0519", "family": "flanged", "tier": 2, "seed": 2468007923, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f234ea46f7f0a447", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 384000.0, "surface_area": 62100.0, "principal_moments": [544000000.0, 544000000.0, 912000000.0], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 90.11, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 50.3, "min": 15.1, "max": 125.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 44.2, "min": 2.0, "max": 63.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 161.6, "min": 117.1, "max": 270.3, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 10.1, "min": 3.0, "max": 20.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 48.5, "min": 32.3, "max": 72.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007923 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 90.11, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 50.3, \"min\": 15.1, \"max\": 125.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 44.2, \"min\": 2.0, \"max\": 63.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 161.6, \"min\": 117.1, \"max\": 270.3, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 10.1, \"min\": 3.0, \"max\": 20.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 48.5, \"min\": 32.3, \"max\": 72.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acff4_0520", "family": "threaded", "tier": 0, "seed": 2468007924, "symmetry": "none", "op_count": 1, "ir_hash": "6a705af51fae091b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 126.0, "surface_area": 243.0, "principal_moments": [206.0, 1750.0, 1750.0], "n_faces": 185, "n_edges": 473, "n_vertices": 290}, "params": {"major_d": {"type": "float", "default": 4.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.7, "min": 0.35, "max": 1.4, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 12.6, "min": 5.0, "max": 25.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007924 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.35, \"max\": 1.4, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 12.6, \"min\": 5.0, \"max\": 25.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acff5_0521", "family": "revolved", "tier": 0, "seed": 2468007925, "symmetry": "none", "op_count": 1, "ir_hash": "f70354c8dfbc448b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 251000.0, "surface_area": 40100.0, "principal_moments": [143000000.0, 310000000.0, 310000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 61.64, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 126.4, "min": 37.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007925 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 61.64, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 126.4, \"min\": 37.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acff6_0522", "family": "block", "tier": 1, "seed": 2468007926, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "6efd707f3fb7691f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6230.0, "surface_area": 3030.0, "principal_moments": [367000.0, 404000.0, 666000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 10.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 26.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.2, "min": 2.0, "max": 2.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007926 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 10.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 26.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 2.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acff7_0523", "family": "plate", "tier": 3, "seed": 2468007927, "symmetry": "none", "op_count": 4, "ir_hash": "caa990bd25f1d792", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2280.0, "surface_area": 2020.0, "principal_moments": [62200.0, 328000.0, 384000.0], "n_faces": 19, "n_edges": 48, "n_vertices": 32}, "params": {"plate_w": {"type": "float", "default": 40, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 17.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "pocket_w": {"type": "float", "default": 19.7, "min": 9.8, "max": 32.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 7.1, "min": 3.5, "max": 13.6, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 2.2, "min": 0.9, "max": 3.4, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007927 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 17.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"pocket_w\": {\"type\": 'float', \"default\": 19.7, \"min\": 9.8, \"max\": 32.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 7.1, \"min\": 3.5, \"max\": 13.6, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 2.2, \"min\": 0.9, \"max\": 3.4, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07924558717751298)\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acff8_0524", "family": "flanged", "tier": 2, "seed": 2468007928, "symmetry": "none", "op_count": 2, "ir_hash": "cc54e8a8db06e8d5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 465000.0, "surface_area": 65400.0, "principal_moments": [633000000.0, 633000000.0, 795000000.0], "n_faces": 17, "n_edges": 60, "n_vertices": 40}, "params": {"outer_d": {"type": "float", "default": 90, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 72.1, "min": 21.6, "max": 180.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 37.1, "min": 2.0, "max": 63.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 146.4, "min": 117.0, "max": 270.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.7, "min": 2.9, "max": 28.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 43.9, "min": 29.3, "max": 65.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007928 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 72.1, \"min\": 21.6, \"max\": 180.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 37.1, \"min\": 2.0, \"max\": 63.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 146.4, \"min\": 117.0, \"max\": 270.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.7, \"min\": 2.9, \"max\": 28.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 43.9, \"min\": 29.3, \"max\": 65.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acff9_0525", "family": "block", "tier": 1, "seed": 2468007929, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "761b504a7b5c82f3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24200.0, "surface_area": 7900.0, "principal_moments": [2550000.0, 5680000.0, 7300000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 32.7, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 15.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 50.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007929 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 32.7, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 15.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 50.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acffa_0526", "family": "flanged", "tier": 2, "seed": 2468007930, "symmetry": "none", "op_count": 2, "ir_hash": "9d5d3de233cf2999", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45200.0, "surface_area": 15900.0, "principal_moments": [17300000.0, 18300000.0, 18300000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 35, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 46.1, "min": 13.8, "max": 115.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 18.9, "min": 2.0, "max": 24.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 71.0, "min": 45.5, "max": 105.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.9, "min": 1.5, "max": 18.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 21.3, "min": 14.2, "max": 31.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007930 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 46.1, \"min\": 13.8, \"max\": 115.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 18.9, \"min\": 2.0, \"max\": 24.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 71.0, \"min\": 45.5, \"max\": 105.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.9, \"min\": 1.5, \"max\": 18.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 21.3, \"min\": 14.2, \"max\": 31.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acffb_0527", "family": "block", "tier": 2, "seed": 2468007931, "symmetry": "radial", "op_count": 3, "ir_hash": "8a2dfdf8f6664971", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 68200.0, "surface_area": 14000.0, "principal_moments": [13999999.999999998, 35300000.0, 44500000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 46.02, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 20.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 72.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 13.8, "min": 9.2, "max": 20.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "boss_d": {"type": "float", "default": 17.5, "min": 8.8, "max": 35.0, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 10.2, "min": 4.1, "max": 25.5, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007931 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 46.02, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 20.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 72.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 13.8, \"min\": 9.2, \"max\": 20.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"boss_d\": {\"type\": 'float', \"default\": 17.5, \"min\": 8.8, \"max\": 35.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 10.2, \"min\": 4.1, \"max\": 25.5, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acffc_0528", "family": "threaded", "tier": 1, "seed": 2468007932, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "615607606d60e1f5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 366.0, "surface_area": 545.0, "principal_moments": [2960.0, 5840.0, 5840.0], "n_faces": 143, "n_edges": 387, "n_vertices": 246}, "params": {"major_d": {"type": "float", "default": 4.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.7, "min": 0.35, "max": 1.4, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 12.0, "min": 5.0, "max": 24.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007932 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.35, \"max\": 1.4, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 12.0, \"min\": 5.0, \"max\": 24.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931acffd_0529", "family": "ribbed", "tier": 3, "seed": 2468007933, "symmetry": "none", "op_count": 3, "ir_hash": "6763d47a0959ab61", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6530.0, "surface_area": 4450.0, "principal_moments": [455000.0, 946000.0, 1290000.0], "n_faces": 46, "n_edges": 128, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 40, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 20.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 6.0, "min": 2.4, "max": 12.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.6, "min": 1.0, "max": 11.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007933 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 20.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.4, \"max\": 12.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.6, \"min\": 1.0, \"max\": 11.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acffe_0530", "family": "compound", "tier": 1, "seed": 2468007934, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "e440001219e6e519", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 156000.0, "surface_area": 24100.0, "principal_moments": [73900000.0, 79700000.0, 85900000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 51.13, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 52.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 59.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 43.8, "min": 17.5, "max": 70.1, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 45.8, "min": 18.3, "max": 73.3, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 9.6, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007934 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 51.13, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 52.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 59.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 43.8, \"min\": 17.5, \"max\": 70.1, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 45.8, \"min\": 18.3, \"max\": 73.3, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 9.6, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad000_0532", "family": "revolved", "tier": 2, "seed": 2468007936, "symmetry": "none", "op_count": 1, "ir_hash": "865752950cc9155b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24000.0, "surface_area": 8220.0, "principal_moments": [3660000.0, 4750000.0, 4750000.0], "n_faces": 7, "n_edges": 10, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 32.15, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 46.0, "min": 13.8, "max": 138.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "groove_depth": {"type": "float", "default": 1.87, "min": 0.75, "max": 5.61, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 4.98, "min": 1.99, "max": 14.94, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 32.3, "min": 6.9, "max": 39.1, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007936 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 32.15, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 46.0, \"min\": 13.8, \"max\": 138.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 1.87, \"min\": 0.75, \"max\": 5.61, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 4.98, \"min\": 1.99, \"max\": 14.94, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 32.3, \"min\": 6.9, \"max\": 39.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad001_0533", "family": "revolved", "tier": 1, "seed": 2468007937, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "bcbe0ddb73cb3dfa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 169000.0, "surface_area": 35500.0, "principal_moments": [149000000.0, 149000000.0, 179000000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 51.95, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 61.8, "min": 18.5, "max": 185.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 26.4, "min": 2.0, "max": 36.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 112.5, "min": 62.3, "max": 155.9, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.2, "min": 2.8, "max": 30.9, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.1, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007937 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 51.95, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 61.8, \"min\": 18.5, \"max\": 185.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 26.4, \"min\": 2.0, \"max\": 36.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 112.5, \"min\": 62.3, \"max\": 155.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.2, \"min\": 2.8, \"max\": 30.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.1, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad003_0535", "family": "block", "tier": 1, "seed": 2468007939, "symmetry": "none", "op_count": 2, "ir_hash": "a44671432254b9f4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 216000.0, "surface_area": 27000.0, "principal_moments": [85200000.0, 201000000.0, 226000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 97.27, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 40.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 55.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007939 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 97.27, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 40.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 55.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 24.3\n _ssy = 23.0\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad004_0536", "family": "ribbed", "tier": 1, "seed": 2468007940, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f2b693c627e454f4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 44600.0, "surface_area": 22500.0, "principal_moments": [16800000.0, 20600000.0, 33099999.999999996], "n_faces": 31, "n_edges": 72, "n_vertices": 48}, "params": {"base_w": {"type": "float", "default": 71.17, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 69.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 18.6, "min": 7.4, "max": 37.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.7, "min": 1.0, "max": 11.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007940 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 71.17, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 69.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 18.6, \"min\": 7.4, \"max\": 37.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.7, \"min\": 1.0, \"max\": 11.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad005_0537", "family": "ribbed", "tier": 2, "seed": 2468007941, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "c67f22ab73acd658", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12700.0, "surface_area": 5720.0, "principal_moments": [1540000.0, 2870000.0, 4050000.0], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 45.67, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 35.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 9.0, "min": 3.6, "max": 18.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.5, "min": 1.0, "max": 11.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007941 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 45.67, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 35.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 9.0, \"min\": 3.6, \"max\": 18.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.0, \"max\": 11.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad006_0538", "family": "plate", "tier": 0, "seed": 2468007942, "symmetry": "none", "op_count": 1, "ir_hash": "0f072252e2df3cde", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5980.0, "surface_area": 3670.0, "principal_moments": [317000.0, 1800000.0, 2100000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 24.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007942 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 24.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad007_0539", "family": "bracket", "tier": 3, "seed": 2468007943, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "1bece9178b5d9595", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9080.0, "surface_area": 6760.0, "principal_moments": [1290000.0, 2700000.0, 3490000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 30.06, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 57.32, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.1, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007943 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30.06, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 57.32, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.1, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad008_0540", "family": "plate", "tier": 1, "seed": 2468007944, "symmetry": "none", "op_count": 2, "ir_hash": "fbebe14e17177576", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38100.0, "surface_area": 11100.0, "principal_moments": [6120000.0, 26499999.999999996, 31999999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 91.45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 43.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007944 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 91.45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 43.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad009_0541", "family": "compound", "tier": 1, "seed": 2468007945, "symmetry": "none", "op_count": 2, "ir_hash": "566c53d73a5e07ae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 44400.0, "surface_area": 9000.0, "principal_moments": [7220000.0, 11499999.999999998, 12799999.999999998], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 45.67, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 28.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 34.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 8.7, "min": 3.5, "max": 19.9, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 19.6, "min": 2.6, "max": 34.8, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 4.2, "min": 2.0, "max": 6.3, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007945 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45.67, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 28.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 34.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 8.7, \"min\": 3.5, \"max\": 19.9, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 19.6, \"min\": 2.6, \"max\": 34.8, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 4.2, \"min\": 2.0, \"max\": 6.3, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad00f_0547", "family": "block", "tier": 2, "seed": 2468007951, "symmetry": "none", "op_count": 3, "ir_hash": "45ddbbd973194358", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 209000.0, "surface_area": 31600.0, "principal_moments": [121000000.0, 174000000.0, 189000000.0], "n_faces": 19, "n_edges": 57, "n_vertices": 38}, "params": {"block_w": {"type": "float", "default": 77.81, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 52.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 62.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "pocket_w": {"type": "float", "default": 36.3, "min": 18.1, "max": 62.2, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 29.5, "min": 14.8, "max": 41.7, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 36.7, "min": 14.7, "max": 52.7, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007951 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 77.81, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 52.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 62.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"pocket_w\": {\"type\": 'float', \"default\": 36.3, \"min\": 18.1, \"max\": 62.2, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 29.5, \"min\": 14.8, \"max\": 41.7, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 36.7, \"min\": 14.7, \"max\": 52.7, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 29.2\n _ssy = 25.6\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad010_0548", "family": "bracket", "tier": 1, "seed": 2468007952, "symmetry": "none", "op_count": 1, "ir_hash": "78edd1d7a14e5129", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11400.0, "surface_area": 6740.0, "principal_moments": [1970000.0, 4250000.0, 4530000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 41.61, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 46.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 34.22, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007952 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 41.61, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 46.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 34.22, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad013_0551", "family": "revolved", "tier": 0, "seed": 2468007955, "symmetry": "none", "op_count": 1, "ir_hash": "e13096c1a1507d32", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 98200.0, "surface_area": 18300.0, "principal_moments": [42300000.0, 42300000.0, 52999999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 60, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 52.1, "min": 15.6, "max": 156.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007955 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 52.1, \"min\": 15.6, \"max\": 156.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad014_0552", "family": "revolved", "tier": 1, "seed": 2468007956, "symmetry": "radial", "op_count": 2, "ir_hash": "83809f4cd48de4e9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 814000.0, "surface_area": 96600.0, "principal_moments": [781000000.0, 3240000000.0, 3240000000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 80.0, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 242.9, "min": 72.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.6, "min": 0.1, "max": 1.8, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007956 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 80.0, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 242.9, \"min\": 72.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.6, \"min\": 0.1, \"max\": 1.8, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad016_0554", "family": "bracket", "tier": 1, "seed": 2468007958, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "6c88f9785e1fc4f9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12500.0, "surface_area": 7560.0, "principal_moments": [2740000.0, 8990000.0, 10400000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 67.65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 62.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007958 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 67.65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 62.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad019_0557", "family": "ribbed", "tier": 1, "seed": 2468007961, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "318093a7b4274625", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61800.0, "surface_area": 23400.0, "principal_moments": [19600000.0, 37800000.0, 52499999.99999999], "n_faces": 54, "n_edges": 132, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 44.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 13.8, "min": 5.5, "max": 27.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.6, "min": 1.0, "max": 14.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007961 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 44.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 13.8, \"min\": 5.5, \"max\": 27.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 1.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad01b_0559", "family": "flanged", "tier": 1, "seed": 2468007963, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "fa13d5ee733c3c7a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 49900.0, "surface_area": 14900.0, "principal_moments": [15399999.999999998, 15399999.999999998, 24699999.999999996], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 45, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 26.0, "min": 7.8, "max": 65.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 14.9, "min": 2.0, "max": 31.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 74.6, "min": 58.5, "max": 135.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.2, "min": 1.9, "max": 10.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 22.4, "min": 14.9, "max": 33.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007963 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 26.0, \"min\": 7.8, \"max\": 65.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 14.9, \"min\": 2.0, \"max\": 31.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 74.6, \"min\": 58.5, \"max\": 135.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.2, \"min\": 1.9, \"max\": 10.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 22.4, \"min\": 14.9, \"max\": 33.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad01d_0561", "family": "plate", "tier": 1, "seed": 2468007965, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "c49f3692ef645f6d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 101000.0, "surface_area": 21900.0, "principal_moments": [44000000.0, 120000000.0, 161000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 118.66, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 71.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007965 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 118.66, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 71.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad01e_0562", "family": "threaded", "tier": 2, "seed": 2468007966, "symmetry": "none", "op_count": 1, "ir_hash": "de84fa10954203e2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3910.0, "surface_area": 2690.0, "principal_moments": [57700.0, 674000.0, 674000.0], "n_faces": 160, "n_edges": 410, "n_vertices": 252}, "params": {"thread_size": {"type": "enum", "default": "12x3", "choices": ["8x1.5", "10x2", "12x3", "14x3", "16x4", "18x4", "20x4", "24x5", "28x5", "30x6", "36x6", "40x7"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 45.1, "min": 18.0, "max": 90.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007966 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '12x3', \"choices\": ['8x1.5', '10x2', '12x3', '14x3', '16x4', '18x4', '20x4', '24x5', '28x5', '30x6', '36x6', '40x7'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 45.1, \"min\": 18.0, \"max\": 90.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.MetricTrapezoidalThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad01f_0563", "family": "revolved", "tier": 1, "seed": 2468007967, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "6626969d51611e2f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 49800.0, "surface_area": 19500.0, "principal_moments": [26699999.999999996, 26699999.999999996, 52099999.99999999], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 46.1, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 17.5, "min": 5.2, "max": 52.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 100.0, "min": 55.3, "max": 138.3, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.9, "min": 1.5, "max": 8.8, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007967 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 46.1, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 17.5, \"min\": 5.2, \"max\": 52.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 100.0, \"min\": 55.3, \"max\": 138.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.9, \"min\": 1.5, \"max\": 8.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad021_0565", "family": "revolved", "tier": 2, "seed": 2468007969, "symmetry": "none", "op_count": 1, "ir_hash": "541ba7fd0603ba68", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 464000.0, "surface_area": 65900.0, "principal_moments": [471000000.0, 1110000000.0, 1110000000.0], "n_faces": 8, "n_edges": 12, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 78.68, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 147.4, "min": 44.2, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 45.1, "min": 2.0, "max": 55.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 5.58, "min": 2.23, "max": 16.74, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 13.49, "min": 5.4, "max": 40.47, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 71.3, "min": 22.1, "max": 125.3, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007969 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 78.68, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 147.4, \"min\": 44.2, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 45.1, \"min\": 2.0, \"max\": 55.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 5.58, \"min\": 2.23, \"max\": 16.74, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 13.49, \"min\": 5.4, \"max\": 40.47, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 71.3, \"min\": 22.1, \"max\": 125.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad022_0566", "family": "flanged", "tier": 1, "seed": 2468007970, "symmetry": "none", "op_count": 2, "ir_hash": "11c413e80e724726", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 468000.0, "surface_area": 77400.0, "principal_moments": [846000000.0, 865000000.0, 865000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 80, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 96.1, "min": 28.8, "max": 240.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 42.4, "min": 2.0, "max": 56.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 161.2, "min": 104.0, "max": 240.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.9, "min": 2.4, "max": 38.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 48.4, "min": 32.2, "max": 72.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007970 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 96.1, \"min\": 28.8, \"max\": 240.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 42.4, \"min\": 2.0, \"max\": 56.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 161.2, \"min\": 104.0, \"max\": 240.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.9, \"min\": 2.4, \"max\": 38.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 48.4, \"min\": 32.2, \"max\": 72.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad023_0567", "family": "block", "tier": 1, "seed": 2468007971, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "a29c369faf00c2fe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61000.0, "surface_area": 13100.0, "principal_moments": [16099999.999999998, 17200000.0, 28099999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 54.24, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 22.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 51.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007971 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 54.24, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 22.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 51.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad025_0569", "family": "compound", "tier": 1, "seed": 2468007973, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "090c30259d216669", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11400.0, "surface_area": 3550.0, "principal_moments": [949000.0, 1630000.0, 1630000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 15.97, "min": 9.6, "max": 25.6, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 12.7, "min": 5.1, "max": 31.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 12.0, "min": 6.0, "max": 22.1, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 26.7, "min": 8.0, "max": 66.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007973 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 15.97, \"min\": 9.6, \"max\": 25.6, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 12.7, \"min\": 5.1, \"max\": 31.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 6.0, \"max\": 22.1, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 26.7, \"min\": 8.0, \"max\": 66.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad026_0570", "family": "plate", "tier": 0, "seed": 2468007974, "symmetry": "none", "op_count": 1, "ir_hash": "0e06005e8baea3f7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3490.0, "surface_area": 1480.0, "principal_moments": [77100.0, 239000.0, 245000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 26.44, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 11.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007974 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 26.44, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 11.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad027_0571", "family": "flanged", "tier": 3, "seed": 2468007975, "symmetry": "none", "op_count": 3, "ir_hash": "14aa59de7a9d4bcb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 254000.0, "surface_area": 45800.0, "principal_moments": [265000000.0, 265000000.0, 348000000.0], "n_faces": 22, "n_edges": 47, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 66.64, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 61.0, "min": 18.3, "max": 152.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 31.0, "min": 2.0, "max": 46.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 129.5, "min": 86.6, "max": 199.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.4, "min": 2.8, "max": 24.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 38.9, "min": 25.9, "max": 58.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007975 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 66.64, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 61.0, \"min\": 18.3, \"max\": 152.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 31.0, \"min\": 2.0, \"max\": 46.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 129.5, \"min\": 86.6, \"max\": 199.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.4, \"min\": 2.8, \"max\": 24.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 38.9, \"min\": 25.9, \"max\": 58.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_r\"], p[\"base_r\"]) * 0.0724383625109444)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad029_0573", "family": "flanged", "tier": 1, "seed": 2468007977, "symmetry": "none", "op_count": 2, "ir_hash": "51119b11c8568e05", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 182000.0, "surface_area": 32300.0, "principal_moments": [128000000.0, 147000000.0, 147000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 53.48, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 67.8, "min": 20.3, "max": 169.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.6, "min": 2.0, "max": 37.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 100.1, "min": 69.5, "max": 160.4, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.3, "min": 2.5, "max": 27.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 30.0, "min": 20.0, "max": 45.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007977 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 53.48, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 67.8, \"min\": 20.3, \"max\": 169.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.6, \"min\": 2.0, \"max\": 37.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 100.1, \"min\": 69.5, \"max\": 160.4, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.3, \"min\": 2.5, \"max\": 27.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 30.0, \"min\": 20.0, \"max\": 45.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad02b_0575", "family": "compound", "tier": 1, "seed": 2468007979, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f102db04fe97a081", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27200.0, "surface_area": 7700.0, "principal_moments": [2990000.0, 7630000.0, 7630000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 30.16, "min": 15.1, "max": 54.3, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 34.1, "min": 13.6, "max": 68.2, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 17.8, "min": 8.9, "max": 27.1, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 26.4, "min": 7.9, "max": 66.0, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 8.9, "min": 2.0, "max": 12.8, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007979 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 30.16, \"min\": 15.1, \"max\": 54.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 34.1, \"min\": 13.6, \"max\": 68.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 17.8, \"min\": 8.9, \"max\": 27.1, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 26.4, \"min\": 7.9, \"max\": 66.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 8.9, \"min\": 2.0, \"max\": 12.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad02c_0576", "family": "revolved", "tier": 1, "seed": 2468007980, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "2ab610530d834921", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 609000.0, "surface_area": 69900.0, "principal_moments": [378000000.0, 2700000000.0, 2700000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 65, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 222.5, "min": 66.8, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 27.2, "min": 2.0, "max": 45.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007980 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 222.5, \"min\": 66.8, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 27.2, \"min\": 2.0, \"max\": 45.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad02d_0577", "family": "revolved", "tier": 1, "seed": 2468007981, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3a2de746a4453e5a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45600.0, "surface_area": 12300.0, "principal_moments": [9040000.0, 16199999.999999998, 16199999.999999998], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 36.38, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 65.8, "min": 19.7, "max": 197.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.6, "min": 0.1, "max": 1.8, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007981 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 36.38, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 65.8, \"min\": 19.7, \"max\": 197.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.6, \"min\": 0.1, \"max\": 1.8, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad031_0581", "family": "bracket", "tier": 1, "seed": 2468007985, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "29396e8da39a0521", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37900.0, "surface_area": 17500.0, "principal_moments": [18000000.0, 52399999.99999999, 57499999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007985 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad033_0583", "family": "bracket", "tier": 1, "seed": 2468007987, "symmetry": "none", "op_count": 1, "ir_hash": "48019120b84f6ad4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14100.0, "surface_area": 11000.0, "principal_moments": [10000000.0, 14999999.999999998, 23999999.999999996], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 75, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 79.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20.81, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 8.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007987 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 79.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20.81, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 8.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad034_0584", "family": "bracket", "tier": 1, "seed": 2468007988, "symmetry": "none", "op_count": 1, "ir_hash": "438724f406ab2e3a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13100.0, "surface_area": 4950.0, "principal_moments": [1230000.0, 3350000.0, 3510000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 29.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007988 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 29.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad037_0587", "family": "bracket", "tier": 2, "seed": 2468007991, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "59af3fbeebad55ad", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5720.0, "surface_area": 4570.0, "principal_moments": [810000.0, 2390000.0, 2990000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 35.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 15.4, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 6.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.3, "min": 1.5, "max": 7.7, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007991 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 35.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 15.4, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 6.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.3, \"min\": 1.5, \"max\": 7.7, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad038_0588", "family": "bracket", "tier": 1, "seed": 2468007992, "symmetry": "none", "op_count": 1, "ir_hash": "965a46bbca807a29", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12200.0, "surface_area": 5400.0, "principal_moments": [1550000.0, 3070000.0, 3370000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 40, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 34.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007992 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 40, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 34.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.04544154002118961)\n result = (\n result.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad03c_0592", "family": "revolved", "tier": 1, "seed": 2468007996, "symmetry": "none", "op_count": 1, "ir_hash": "aeea03710460496b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 457.0, "surface_area": 598.0, "principal_moments": [4040.0, 10600.0, 10600.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 7.4, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 15.0, "min": 4.5, "max": 45.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 4.0, "min": 2.0, "max": 5.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007996 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 7.4, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 15.0, \"min\": 4.5, \"max\": 45.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 5.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad03d_0593", "family": "enclosure", "tier": 1, "seed": 2468007997, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "b96de09eaccc49ba", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 85000.0, "surface_area": 32100.0, "principal_moments": [69000000.0, 76500000.0, 122000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 80, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 74.4, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 37.8, "min": 15.1, "max": 75.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007997 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 80, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 74.4, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 37.8, \"min\": 15.1, \"max\": 75.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad03e_0594", "family": "compound", "tier": 1, "seed": 2468007998, "symmetry": "none", "op_count": 3, "ir_hash": "846c2812bcb05ebe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 349000.0, "surface_area": 34600.0, "principal_moments": [234000000.0, 323000000.0, 366000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 48.7, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 89.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 61.1, "min": 24.4, "max": 97.8, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 80.2, "min": 32.1, "max": 128.3, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.4, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007998 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 48.7, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 89.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 61.1, \"min\": 24.4, \"max\": 97.8, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 80.2, \"min\": 32.1, \"max\": 128.3, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.4, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad041_0597", "family": "plate", "tier": 2, "seed": 2468008001, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "ec4bfce5e224271a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2040.0, "surface_area": 1520.0, "principal_moments": [46900.0, 71700.0, 96800.0], "n_faces": 42, "n_edges": 120, "n_vertices": 80}, "params": {"plate_w": {"type": "float", "default": 20.1, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 15.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 4.5, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008001 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 20.1, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 15.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 4.5, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.04498408429387093)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad042_0598", "family": "block", "tier": 1, "seed": 2468008002, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "c39a8ff1c28b308b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 151000.0, "surface_area": 24000.0, "principal_moments": [48099999.99999999, 136000000.0, 164000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 27.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008002 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 27.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 13.8\n _ssy = 13.0\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad044_0600", "family": "revolved", "tier": 0, "seed": 2468008004, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "cf1a234393bfc59d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 450.0, "surface_area": 499.0, "principal_moments": [5890.0, 5890.0, 9990.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 12.17, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 5.8, "min": 1.7, "max": 17.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008004 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 12.17, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 5.8, \"min\": 1.7, \"max\": 17.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad045_0601", "family": "plate", "tier": 1, "seed": 2468008005, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "5fa0cbfa2be8cdcc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20200.0, "surface_area": 6110.0, "principal_moments": [1870000.0, 5390000.0, 6770000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 55.71, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 31.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 7.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008005 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 55.71, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 31.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 7.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad046_0602", "family": "plate", "tier": 1, "seed": 2468008006, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "6681d895ab6ad352", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32500.0, "surface_area": 13600.0, "principal_moments": [7300000.0, 31899999.999999996, 39000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 110, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 52.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 11.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008006 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 110, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 52.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 11.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad048_0604", "family": "plate", "tier": 1, "seed": 2468008008, "symmetry": "radial", "op_count": 2, "ir_hash": "e3e8a35b356865eb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3280.0, "surface_area": 2110.0, "principal_moments": [73300.0, 466000.0, 519000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 40.6, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 15.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 12.2, "min": 8.1, "max": 18.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008008 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40.6, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 15.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 12.2, \"min\": 8.1, \"max\": 18.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad049_0605", "family": "enclosure", "tier": 1, "seed": 2468008009, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f9cdad71360aae3a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 92100.0, "surface_area": 40500.0, "principal_moments": [63499999.99999999, 122000000.0, 131000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 95, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 45.7, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 62.8, "min": 25.1, "max": 125.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.7, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008009 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 95, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 45.7, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 62.8, \"min\": 25.1, \"max\": 125.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.7, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad04a_0606", "family": "bracket", "tier": 1, "seed": 2468008010, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "88f47672f81929f6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21300.0, "surface_area": 7310.0, "principal_moments": [3700000.0, 6300000.0, 7400000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 44.13, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 37.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 36.59, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008010 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 44.13, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 37.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 36.59, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad04d_0609", "family": "revolved", "tier": 0, "seed": 2468008013, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "550fdcdcebbbd9cb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1660.0, "surface_area": 1300.0, "principal_moments": [43200.0, 54700.0, 54700.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 13.17, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 18.3, "min": 5.5, "max": 54.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008013 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 13.17, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 18.3, \"min\": 5.5, \"max\": 54.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad04e_0610", "family": "compound", "tier": 1, "seed": 2468008014, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "dcdf41d70451fe93", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42200.0, "surface_area": 8400.0, "principal_moments": [6980000.0, 9660000.0, 11200000.0], "n_faces": 21, "n_edges": 51, "n_vertices": 34}, "params": {"block_w": {"type": "float", "default": 43.64, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 27.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 34.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 4.0, "min": 2.0, "max": 6.3, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 7.5, "min": 1.6, "max": 19.4, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.7, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008014 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 43.64, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 27.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 34.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 6.3, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 7.5, \"min\": 1.6, \"max\": 19.4, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.7, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad04f_0611", "family": "revolved", "tier": 1, "seed": 2468008015, "symmetry": "none", "op_count": 2, "ir_hash": "69931bd2c4d35885", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 622000.0, "surface_area": 73900.0, "principal_moments": [781000000.0, 1370000000.0, 1370000000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 60.6, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 175.0, "min": 52.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 114.2, "min": 72.7, "max": 181.8, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 38.8, "min": 11.6, "max": 87.5, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.7, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008015 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60.6, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 175.0, \"min\": 52.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 114.2, \"min\": 72.7, \"max\": 181.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 38.8, \"min\": 11.6, \"max\": 87.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.7, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad052_0614", "family": "bracket", "tier": 1, "seed": 2468008018, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "5a0c533280abafc4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7560.0, "surface_area": 5960.0, "principal_moments": [1490000.0, 1950000.0, 2640000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 37.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008018 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 37.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad053_0615", "family": "flanged", "tier": 1, "seed": 2468008019, "symmetry": "none", "op_count": 2, "ir_hash": "bf06255ec4763ea6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 307000.0, "surface_area": 62200.0, "principal_moments": [429000000.0, 429000000.0, 488000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 68.45, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 76.5, "min": 22.9, "max": 191.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 33.5, "min": 2.0, "max": 47.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 154.1, "min": 89.0, "max": 205.4, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.3, "min": 1.9, "max": 30.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 46.2, "min": 30.8, "max": 69.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008019 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 68.45, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 76.5, \"min\": 22.9, \"max\": 191.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 33.5, \"min\": 2.0, \"max\": 47.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 154.1, \"min\": 89.0, \"max\": 205.4, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.3, \"min\": 1.9, \"max\": 30.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 46.2, \"min\": 30.8, \"max\": 69.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad055_0617", "family": "bracket", "tier": 1, "seed": 2468008021, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "a2efb40b10f6ec8a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 68200.0, "surface_area": 20500.0, "principal_moments": [34000000.0, 75000000.0, 81700000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 66.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 59.71, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008021 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 66.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 59.71, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z or 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad059_0621", "family": "bracket", "tier": 2, "seed": 2468008025, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "6ed0ee072f568761", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6400.0, "surface_area": 4990.0, "principal_moments": [516000.0, 4110000.0, 4400000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 48.69, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 38.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 15.36, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 44.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 6.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 4.2, "min": 1.5, "max": 7.7, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008025 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 48.69, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 38.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 15.36, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 44.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 6.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.2, \"min\": 1.5, \"max\": 7.7, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad05a_0622", "family": "block", "tier": 1, "seed": 2468008026, "symmetry": "none", "op_count": 2, "ir_hash": "6fec8a9ae255957c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6480.0, "surface_area": 3160.0, "principal_moments": [263000.0, 540000.0, 606000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 17.84, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 13.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 28.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.5, "min": 2.0, "max": 3.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008026 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 17.84, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 13.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 28.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.5, \"min\": 2.0, \"max\": 3.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad05b_0623", "family": "bracket", "tier": 1, "seed": 2468008027, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8794055ff046b7a2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34900.0, "surface_area": 11200.0, "principal_moments": [10200000.0, 14799999.999999998, 19300000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 53.41, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 42.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008027 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 53.41, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 42.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad05e_0626", "family": "revolved", "tier": 1, "seed": 2468008030, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "df7bc394d3c55d7b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 770.0, "surface_area": 752.0, "principal_moments": [13500.0, 14000.0, 14000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 10.8, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 12.6, "min": 3.8, "max": 37.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008030 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 10.8, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 12.6, \"min\": 3.8, \"max\": 37.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad05f_0627", "family": "ribbed", "tier": 1, "seed": 2468008031, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "63906a5d275f4c1c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34300.0, "surface_area": 18000.0, "principal_moments": [9240000.0, 11999999.999999998, 19300000.0], "n_faces": 36, "n_edges": 84, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 64.17, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 58.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 14.4, "min": 5.8, "max": 28.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.2, "min": 1.0, "max": 13.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008031 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 64.17, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 58.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 14.4, \"min\": 5.8, \"max\": 28.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.2, \"min\": 1.0, \"max\": 13.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad060_0628", "family": "ribbed", "tier": 2, "seed": 2468008032, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "f8f9f4f261914b35", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 52900.0, "surface_area": 23100.0, "principal_moments": [20500000.0, 36000000.0, 50599999.99999999], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 56.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 19.6, "min": 7.8, "max": 39.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.4, "min": 1.0, "max": 13.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008032 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 56.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 19.6, \"min\": 7.8, \"max\": 39.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.4, \"min\": 1.0, \"max\": 13.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad061_0629", "family": "revolved", "tier": 1, "seed": 2468008033, "symmetry": "none", "op_count": 1, "ir_hash": "0e1ddba55f88423a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7500.0, "surface_area": 4800.0, "principal_moments": [738000.0, 738000.0, 1270000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 26.99, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 14.6, "min": 4.4, "max": 43.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 45.0, "min": 32.4, "max": 81.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 1.9, "min": 0.6, "max": 7.3, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008033 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 26.99, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 14.6, \"min\": 4.4, \"max\": 43.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 45.0, \"min\": 32.4, \"max\": 81.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 1.9, \"min\": 0.6, \"max\": 7.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad062_0630", "family": "block", "tier": 1, "seed": 2468008034, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "302dd497490bfff0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 518000.0, "surface_area": 45100.0, "principal_moments": [499000000.0, 575000000.0, 788000000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 90.7, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 57.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008034 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 90.7, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 57.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 34.0\n _ssy = 36.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad063_0631", "family": "bracket", "tier": 2, "seed": 2468008035, "symmetry": "none", "op_count": 1, "ir_hash": "0b356946ac8f8f79", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8530.0, "surface_area": 6360.0, "principal_moments": [1320000.0, 2470000.0, 2790000.0], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 38.76, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 40.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.3, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008035 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 38.76, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 40.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.3, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad064_0632", "family": "block", "tier": 2, "seed": 2468008036, "symmetry": "none", "op_count": 3, "ir_hash": "1b031005e2b17361", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 83100.0, "surface_area": 19700.0, "principal_moments": [22100000.0, 37500000.0, 44100000.0], "n_faces": 23, "n_edges": 62, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 44.44, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 32.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 63.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "boss_d": {"type": "float", "default": 20.1, "min": 10.1, "max": 40.2, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 10.1, "min": 4.0, "max": 25.2, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 14.1, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008036 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 44.44, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 32.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 63.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"boss_d\": {\"type\": 'float', \"default\": 20.1, \"min\": 10.1, \"max\": 40.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 10.1, \"min\": 4.0, \"max\": 25.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 14.1, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 8.3\n _ssy = 8.8\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad065_0633", "family": "bracket", "tier": 2, "seed": 2468008037, "symmetry": "none", "op_count": 1, "ir_hash": "af17da78e7dd3b4e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9560.0, "surface_area": 5770.0, "principal_moments": [1570000.0, 1820000.0, 1850000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 27.21, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 28.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 31.61, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.9, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008037 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 27.21, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 28.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 31.61, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad066_0634", "family": "profiled", "tier": 0, "seed": 2468008038, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "56c50b9cd3a6303a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11900.0, "surface_area": 7820.0, "principal_moments": [449000.0, 10600000.0, 10600000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 15, "min": 7.5, "max": 30.0, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 101.9, "min": 30.6, "max": 305.7, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 8.7, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008038 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 15, \"min\": 7.5, \"max\": 30.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 101.9, \"min\": 30.6, \"max\": 305.7, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 8.7, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad067_0635", "family": "threaded", "tier": 1, "seed": 2468008039, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "d6119779fae3832d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2090.0, "surface_area": 1590.0, "principal_moments": [22000.0, 191000.0, 191000.0], "n_faces": 220, "n_edges": 562, "n_vertices": 344}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 32.3, "min": 12.9, "max": 64.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008039 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 32.3, \"min\": 12.9, \"max\": 64.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad068_0636", "family": "enclosure", "tier": 3, "seed": 2468008040, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "b15895c36fa10972", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6650.0, "surface_area": 5040.0, "principal_moments": [557000.0, 805000.0, 966000.0], "n_faces": 15, "n_edges": 48, "n_vertices": 32}, "params": {"enc_w": {"type": "float", "default": 30.0, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 16.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 24.2, "min": 9.7, "max": 48.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.5, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008040 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 30.0, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 16.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 24.2, \"min\": 9.7, \"max\": 48.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad069_0637", "family": "flanged", "tier": 1, "seed": 2468008041, "symmetry": "radial", "op_count": 2, "ir_hash": "78f9998e82b6c297", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18000.0, "surface_area": 7750.0, "principal_moments": [3240000.0, 3240000.0, 4110000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 26.54, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 26.4, "min": 7.9, "max": 66.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 12.5, "min": 2.0, "max": 18.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 52.3, "min": 34.5, "max": 79.6, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.3, "min": 1.3, "max": 10.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 15.7, "min": 10.5, "max": 23.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008041 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 26.54, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 26.4, \"min\": 7.9, \"max\": 66.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 12.5, \"min\": 2.0, \"max\": 18.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 52.3, \"min\": 34.5, \"max\": 79.6, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.3, \"min\": 1.3, \"max\": 10.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 15.7, \"min\": 10.5, \"max\": 23.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad06a_0638", "family": "block", "tier": 3, "seed": 2468008042, "symmetry": "mirror_x", "op_count": 5, "ir_hash": "e6aa896bf2ad83a5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 101000.0, "surface_area": 23300.0, "principal_moments": [51299999.99999999, 52599999.99999999, 54499999.99999999], "n_faces": 19, "n_edges": 45, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 61.51, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 24.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 59.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 5.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 23.7, "min": 11.8, "max": 47.4, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 4.6, "min": 1.8, "max": 11.5, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "filleted2": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "side_tube_d": {"type": "float", "default": 24.5, "min": 9.8, "max": 29.8, "step": 1.0, "group": "Side Tube", "label": "Side tube diameter (mm)"}, "side_tube_len": {"type": "float", "default": 46.7, "min": 14.0, "max": 73.5, "step": 1.0, "group": "Side Tube", "label": "Side tube length (mm)"}, "side_bore_d": {"type": "float", "default": 12.2, "min": 2.0, "max": 18.4, "step": 0.5, "group": "Side Tube", "label": "Side bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008042 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 61.51, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 24.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 59.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 5.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 23.7, \"min\": 11.8, \"max\": 47.4, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 4.6, \"min\": 1.8, \"max\": 11.5, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"filleted2\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"side_tube_d\": {\"type\": 'float', \"default\": 24.5, \"min\": 9.8, \"max\": 29.8, \"step\": 1.0, \"group\": 'Side Tube', \"label\": 'Side tube diameter (mm)'},\n \"side_tube_len\": {\"type\": 'float', \"default\": 46.7, \"min\": 14.0, \"max\": 73.5, \"step\": 1.0, \"group\": 'Side Tube', \"label\": 'Side tube length (mm)'},\n \"side_bore_d\": {\"type\": 'float', \"default\": 12.2, \"min\": 2.0, \"max\": 18.4, \"step\": 0.5, \"group\": 'Side Tube', \"label\": 'Side bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.09335262004144489)\n result = (\n result.faces('Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad06c_0640", "family": "plate", "tier": 2, "seed": 2468008044, "symmetry": "none", "op_count": 3, "ir_hash": "5aace9510658d6dc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 50100.0, "surface_area": 20100.0, "principal_moments": [27999999.999999996, 45400000.0, 73100000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"plate_w": {"type": "float", "default": 105, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 82.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 9.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008044 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 105, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 82.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 9.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(28.0, 33.0, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.10324500101930806)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad06d_0641", "family": "compound", "tier": 1, "seed": 2468008045, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "5b555de32a6bcae6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 79700.0, "surface_area": 13200.0, "principal_moments": [24699999.999999996, 25099999.999999996, 28099999.999999996], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 40.3, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 40.9, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 46.9, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 8.6, "min": 4.3, "max": 14.3, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 23.5, "min": 4.2, "max": 55.7, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 5.9, "min": 2.0, "max": 10.0, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008045 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40.3, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 40.9, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 46.9, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 8.6, \"min\": 4.3, \"max\": 14.3, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 23.5, \"min\": 4.2, \"max\": 55.7, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 5.9, \"min\": 2.0, \"max\": 10.0, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"spig_sides\"], p[\"spig_r\"] * 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad06e_0642", "family": "bracket", "tier": 1, "seed": 2468008046, "symmetry": "none", "op_count": 1, "ir_hash": "f912f90c46bdcdbd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6030.0, "surface_area": 3130.0, "principal_moments": [419000.0, 1310000.0, 1500000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 39.88, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 34.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 15.01, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 6.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008046 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 39.88, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 34.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 15.01, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 6.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad070_0644", "family": "plate", "tier": 1, "seed": 2468008048, "symmetry": "none", "op_count": 2, "ir_hash": "ffaa63709907a564", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 54100.0, "surface_area": 13500.0, "principal_moments": [7800000.0, 59799999.99999999, 66299999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 115, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 40.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 9.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008048 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 115, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 40.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 9.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad071_0645", "family": "revolved", "tier": 2, "seed": 2468008049, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "cf147f7bd71687af", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 64000.0, "surface_area": 18000.0, "principal_moments": [16599999.999999998, 45999999.99999999, 45999999.99999999], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 26.32, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 101.4, "min": 30.4, "max": 304.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 55.4, "min": 31.6, "max": 79.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 14.6, "min": 4.4, "max": 50.7, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008049 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 26.32, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 101.4, \"min\": 30.4, \"max\": 304.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 55.4, \"min\": 31.6, \"max\": 79.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 14.6, \"min\": 4.4, \"max\": 50.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad073_0647", "family": "flanged", "tier": 1, "seed": 2468008051, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "02dad933f1a58c72", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 649000.0, "surface_area": 87100.0, "principal_moments": [1350000000.0, 1350000000.0, 1420000000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"outer_d": {"type": "float", "default": 79.48, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 99.5, "min": 29.8, "max": 248.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 28.6, "min": 2.0, "max": 55.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 176.8, "min": 103.3, "max": 238.4, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 11.4, "min": 3.4, "max": 39.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 53.0, "min": 35.4, "max": 79.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008051 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 79.48, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 99.5, \"min\": 29.8, \"max\": 248.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 28.6, \"min\": 2.0, \"max\": 55.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 176.8, \"min\": 103.3, \"max\": 238.4, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 11.4, \"min\": 3.4, \"max\": 39.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 53.0, \"min\": 35.4, \"max\": 79.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad074_0648", "family": "gear", "tier": 0, "seed": 2468008052, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ffaababca4019257", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6200.0, "surface_area": 3320.0, "principal_moments": [498000.0, 498000.0, 952000.0], "n_faces": 212, "n_edges": 630, "n_vertices": 420}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 35, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.5, "min": 2.6, "max": 16.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008052 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 35, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.5, \"min\": 2.6, \"max\": 16.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad075_0649", "family": "compound", "tier": 2, "seed": 2468008053, "symmetry": "none", "op_count": 3, "ir_hash": "15e449129db5434e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 81600.0, "surface_area": 29500.0, "principal_moments": [74900000.0, 110000000.0, 111000000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_w": {"type": "float", "default": 93.59, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 92.0, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 6.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 22.8, "min": 9.1, "max": 46.0, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 95.1, "min": 28.5, "max": 285.3, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 10.1, "min": 2.0, "max": 16.4, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008053 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 93.59, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 92.0, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 22.8, \"min\": 9.1, \"max\": 46.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 95.1, \"min\": 28.5, \"max\": 285.3, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 10.1, \"min\": 2.0, \"max\": 16.4, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad076_0650", "family": "threaded", "tier": 1, "seed": 2468008054, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "0e497627843b366d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2590.0, "surface_area": 1950.0, "principal_moments": [27300.0, 356000.0, 356000.0], "n_faces": 274, "n_edges": 704, "n_vertices": 432}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 40.0, "min": 16.0, "max": 80.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008054 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 40.0, \"min\": 16.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad077_0651", "family": "plate", "tier": 2, "seed": 2468008055, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "5c034685c923957a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6980.0, "surface_area": 3180.0, "principal_moments": [328000.0, 721000.0, 932000.0], "n_faces": 26, "n_edges": 72, "n_vertices": 48}, "params": {"plate_w": {"type": "float", "default": 35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 22.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.0, "step": 0.5, "group": "Holes", "label": "Slot width (mm)"}, "hole_slot_len": {"type": "float", "default": 6.7, "min": 4.8, "max": 6.7, "step": 0.5, "group": "Holes", "label": "Slot length (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008055 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 22.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.0, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot width (mm)'},\n \"hole_slot_len\": {\"type\": 'float', \"default\": 6.7, \"min\": 4.8, \"max\": 6.7, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot length (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.11517158713857695)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad078_0652", "family": "plate", "tier": 0, "seed": 2468008056, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "0defa12f69f24738", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3340.0, "surface_area": 2200.0, "principal_moments": [82100.0, 700000.0, 773000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 16.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008056 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 16.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad079_0653", "family": "bracket", "tier": 2, "seed": 2468008057, "symmetry": "none", "op_count": 1, "ir_hash": "f2ce28ebd859af1c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31600.0, "surface_area": 15000.0, "principal_moments": [21000000.0, 24699999.999999996, 41100000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 64.33, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 75.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.4, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008057 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 64.33, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 75.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.4, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad07a_0654", "family": "threaded", "tier": 0, "seed": 2468008058, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "5158c323b90f1d1e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1120.0, "surface_area": 1060.0, "principal_moments": [7470.0, 71900.0, 71900.0], "n_faces": 225, "n_edges": 577, "n_vertices": 354}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 27.2, "min": 10.9, "max": 54.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008058 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 27.2, \"min\": 10.9, \"max\": 54.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad07b_0655", "family": "gear", "tier": 0, "seed": 2468008059, "symmetry": "none", "op_count": 1, "ir_hash": "3ee58183a5ca5851", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 77400.0, "surface_area": 17800.0, "principal_moments": [33499999.999999996, 33499999.999999996, 63899999.99999999], "n_faces": 164, "n_edges": 486, "n_vertices": 324}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 27, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 15.2, "min": 6.1, "max": 38.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008059 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 27, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 15.2, \"min\": 6.1, \"max\": 38.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad07c_0656", "family": "plate", "tier": 1, "seed": 2468008060, "symmetry": "none", "op_count": 2, "ir_hash": "a56ba0fc4feb96b9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31600.0, "surface_area": 11000.0, "principal_moments": [4430000.0, 19200000.0, 23099999.999999996], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"plate_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 39.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008060 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 39.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(22.7, 10.6, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad07d_0657", "family": "plate", "tier": 0, "seed": 2468008061, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d3e717686bef0ce5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4300.0, "surface_area": 2150.0, "principal_moments": [113000.0, 674000.0, 762000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 42.95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 16.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008061 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 42.95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 16.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad07e_0658", "family": "gear", "tier": 3, "seed": 2468008062, "symmetry": "none", "op_count": 1, "ir_hash": "ebe76fc72bb8b279", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2810.0, "surface_area": 1880.0, "principal_moments": [116000.0, 116000.0, 214000.0], "n_faces": 129, "n_edges": 381, "n_vertices": 254}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 21, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.2, "min": 2.5, "max": 15.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 27.7, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.32, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.12, "min": 0.0, "max": 0.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 3.1, "min": 2.0, "max": 11.1, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008062 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 21, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.2, \"min\": 2.5, \"max\": 15.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 27.7, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.32, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.12, \"min\": 0.0, \"max\": 0.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 3.1, \"min\": 2.0, \"max\": 11.1, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad07f_0659", "family": "revolved", "tier": 2, "seed": 2468008063, "symmetry": "none", "op_count": 2, "ir_hash": "f71bc828110054a9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4290.0, "surface_area": 2310.0, "principal_moments": [212000.0, 283000.0, 283000.0], "n_faces": 12, "n_edges": 20, "n_vertices": 12}, "params": {"outer_d": {"type": "float", "default": 18.07, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 22.2, "min": 6.7, "max": 66.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 8.6, "min": 2.0, "max": 12.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 1.05, "min": 0.42, "max": 3.15, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 1.68, "min": 0.67, "max": 5.04, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 7.0, "min": 3.3, "max": 18.9, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.5, "min": 0.1, "max": 1.5, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008063 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 18.07, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 22.2, \"min\": 6.7, \"max\": 66.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 8.6, \"min\": 2.0, \"max\": 12.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 1.05, \"min\": 0.42, \"max\": 3.15, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 1.68, \"min\": 0.67, \"max\": 5.04, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 7.0, \"min\": 3.3, \"max\": 18.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.5, \"min\": 0.1, \"max\": 1.5, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad082_0662", "family": "compound", "tier": 1, "seed": 2468008066, "symmetry": "none", "op_count": 2, "ir_hash": "7335f4e11e733243", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5450.0, "surface_area": 2590.0, "principal_moments": [231000.0, 427000.0, 427000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 18.28, "min": 9.1, "max": 32.9, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 20.6, "min": 8.2, "max": 41.2, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 9.0, "min": 4.5, "max": 16.5, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 12.7, "min": 3.8, "max": 31.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 5.4, "min": 2.0, "max": 6.5, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008066 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 18.28, \"min\": 9.1, \"max\": 32.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 20.6, \"min\": 8.2, \"max\": 41.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 9.0, \"min\": 4.5, \"max\": 16.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 12.7, \"min\": 3.8, \"max\": 31.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 5.4, \"min\": 2.0, \"max\": 6.5, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad083_0663", "family": "revolved", "tier": 1, "seed": 2468008067, "symmetry": "radial", "op_count": 2, "ir_hash": "78205ff2c99a4b5d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1080.0, "surface_area": 814.0, "principal_moments": [20500.0, 26300.0, 26300.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 11.31, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 13.6, "min": 4.1, "max": 40.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 4.9, "min": 2.0, "max": 7.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.1, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008067 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 11.31, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 13.6, \"min\": 4.1, \"max\": 40.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.0, \"max\": 7.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.1, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.11534617638650274)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad085_0665", "family": "threaded", "tier": 0, "seed": 2468008069, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "f15594bfa90effbc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3770.0, "surface_area": 2380.0, "principal_moments": [57300.0, 531000.0, 531000.0], "n_faces": 235, "n_edges": 603, "n_vertices": 370}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 40.2, "min": 16.1, "max": 80.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008069 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 40.2, \"min\": 16.1, \"max\": 80.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad086_0666", "family": "bracket", "tier": 1, "seed": 2468008070, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "cd9c6a2650330674", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20000.0, "surface_area": 14500.0, "principal_moments": [8680000.0, 13199999.999999998, 16599999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 60, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 55.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 60.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008070 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 60, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 55.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 60.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z or Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad089_0669", "family": "bracket", "tier": 1, "seed": 2468008073, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "116a7c3e6f295c3f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24800.0, "surface_area": 17800.0, "principal_moments": [11999999.999999998, 31099999.999999996, 31499999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 75, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 83.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 53.1, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008073 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 83.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 53.1, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad08b_0671", "family": "block", "tier": 2, "seed": 2468008075, "symmetry": "none", "op_count": 3, "ir_hash": "a5b024d9b58e915f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20100.0, "surface_area": 5980.0, "principal_moments": [2340000.0, 2470000.0, 3660000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 19.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 29.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 15.9, "min": 8.0, "max": 31.8, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 6.6, "min": 2.6, "max": 16.5, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008075 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 19.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 29.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 15.9, \"min\": 8.0, \"max\": 31.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 6.6, \"min\": 2.6, \"max\": 16.5, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad08c_0672", "family": "compound", "tier": 1, "seed": 2468008076, "symmetry": "none", "op_count": 2, "ir_hash": "e5431fd8a24c82f7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 285000.0, "surface_area": 29000.0, "principal_moments": [191000000.0, 202000000.0, 249000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 55.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 74.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 7.2, "min": 3.6, "max": 19.3, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 19.5, "min": 3.7, "max": 49.9, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 7.1, "min": 2.0, "max": 9.0, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008076 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 55.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 74.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 7.2, \"min\": 3.6, \"max\": 19.3, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 19.5, \"min\": 3.7, \"max\": 49.9, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 7.1, \"min\": 2.0, \"max\": 9.0, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .rect(p[\"tab_a\"], p[\"tab_b\"]).extrude(p[\"tab_t\"])\n )\n result = (\n result.faces('>Y').workplane()\n .rect(p[\"tab_a\"] * 0.6, p[\"tab_b\"] * 0.6, forConstruction=True)\n .vertices().hole(p[\"tab_hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad08e_0674", "family": "ribbed", "tier": 1, "seed": 2468008078, "symmetry": "none", "op_count": 2, "ir_hash": "94920b2c7ec52563", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37100.0, "surface_area": 16800.0, "principal_moments": [11899999.999999998, 17100000.0, 27999999.999999996], "n_faces": 36, "n_edges": 84, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 74.71, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 61.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 8.1, "min": 3.2, "max": 16.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.9, "min": 1.0, "max": 12.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008078 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 74.71, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 61.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 8.1, \"min\": 3.2, \"max\": 16.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.9, \"min\": 1.0, \"max\": 12.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad08f_0675", "family": "profiled", "tier": 0, "seed": 2468008079, "symmetry": "none", "op_count": 1, "ir_hash": "59b8bb52fef622a6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10400.0, "surface_area": 5760.0, "principal_moments": [316000.0, 6370000.0, 6370000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 14.13, "min": 7.1, "max": 28.3, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 84.7, "min": 25.4, "max": 254.1, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 6.6, "min": 2.0, "max": 11.3, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008079 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 14.13, \"min\": 7.1, \"max\": 28.3, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 84.7, \"min\": 25.4, \"max\": 254.1, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 6.6, \"min\": 2.0, \"max\": 11.3, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad091_0677", "family": "bracket", "tier": 3, "seed": 2468008081, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "f682d2274dea8c89", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 51300.0, "surface_area": 19400.0, "principal_moments": [21900000.0, 62999999.99999999, 69400000.0], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 7.0, "min": 3.0, "max": 18.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008081 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 7.0, \"min\": 3.0, \"max\": 18.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad092_0678", "family": "revolved", "tier": 2, "seed": 2468008082, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "5979399b20a2b6d5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12500.0, "surface_area": 5380.0, "principal_moments": [970000.0, 2650000.0, 2650000.0], "n_faces": 12, "n_edges": 20, "n_vertices": 12}, "params": {"outer_d": {"type": "float", "default": 22.17, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 45.5, "min": 13.7, "max": 136.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 11.6, "min": 2.0, "max": 15.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 0.84, "min": 0.34, "max": 2.52, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 3.44, "min": 1.38, "max": 10.32, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 24.5, "min": 6.8, "max": 38.7, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008082 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 22.17, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 45.5, \"min\": 13.7, \"max\": 136.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 11.6, \"min\": 2.0, \"max\": 15.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 0.84, \"min\": 0.34, \"max\": 2.52, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 3.44, \"min\": 1.38, \"max\": 10.32, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 24.5, \"min\": 6.8, \"max\": 38.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.06215596393764586)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad096_0682", "family": "bracket", "tier": 2, "seed": 2468008086, "symmetry": "none", "op_count": 1, "ir_hash": "51d335a20396c088", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25600.0, "surface_area": 11300.0, "principal_moments": [14399999.999999998, 17400000.0, 29899999.999999996], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 62.52, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 72.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 21.5, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 8.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 8.4, "min": 3.0, "max": 10.8, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008086 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 62.52, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 72.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 21.5, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 8.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 10.8, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad097_0683", "family": "revolved", "tier": 0, "seed": 2468008087, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "c738d57e2a5a493e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 299000.0, "surface_area": 41900.0, "principal_moments": [235000000.0, 326000000.0, 326000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 72.49, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 108.5, "min": 32.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008087 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 72.49, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 108.5, \"min\": 32.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad098_0684", "family": "revolved", "tier": 2, "seed": 2468008088, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "f529089b7522ea8f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 90900.0, "surface_area": 14800.0, "principal_moments": [22799999.999999996, 47999999.99999999, 47999999.99999999], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 42.83, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 69.5, "min": 20.8, "max": 208.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 13.0, "min": 2.0, "max": 30.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008088 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 42.83, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 69.5, \"min\": 20.8, \"max\": 208.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 13.0, \"min\": 2.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad099_0685", "family": "bracket", "tier": 1, "seed": 2468008089, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "52182e9721e85fc0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28800.0, "surface_area": 16100.0, "principal_moments": [12199999.999999998, 31999999.999999996, 32599999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 70.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 49.17, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008089 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 70.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 49.17, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad09b_0687", "family": "gear", "tier": 0, "seed": 2468008091, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8395888008bbe19d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 417000.0, "surface_area": 50100.0, "principal_moments": [430000000.0, 430000000.0, 763000000.0], "n_faces": 122, "n_edges": 360, "n_vertices": 240}, "params": {"module": {"type": "float", "default": 6.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 20, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 37.5, "min": 15.0, "max": 93.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008091 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 6.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 20, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 37.5, \"min\": 15.0, \"max\": 93.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad09c_0688", "family": "compound", "tier": 1, "seed": 2468008092, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "d566f1e48526267c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39300.0, "surface_area": 8360.0, "principal_moments": [6920000.0, 8530000.0, 8850000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 29.71, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 39.9, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 33.2, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 9.8, "min": 3.9, "max": 23.2, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 17.4, "min": 2.9, "max": 39.2, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 6.0, "min": 2.0, "max": 7.1, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008092 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 29.71, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 39.9, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 33.2, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 9.8, \"min\": 3.9, \"max\": 23.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 17.4, \"min\": 2.9, \"max\": 39.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 7.1, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad09f_0691", "family": "ribbed", "tier": 1, "seed": 2468008095, "symmetry": "none", "op_count": 2, "ir_hash": "9b6d7a15c1e82d38", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17300.0, "surface_area": 12000.0, "principal_moments": [3780000.0, 7620000.0, 10800000.0], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 70, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 41.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 10.8, "min": 4.3, "max": 21.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.6, "min": 1.0, "max": 9.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008095 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 41.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 10.8, \"min\": 4.3, \"max\": 21.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.6, \"min\": 1.0, \"max\": 9.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad0a0_0692", "family": "plate", "tier": 1, "seed": 2468008096, "symmetry": "none", "op_count": 2, "ir_hash": "1d73778797567451", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1890.0, "surface_area": 1240.0, "principal_moments": [25400.0, 106000.0, 111000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 25, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 10.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.1, "min": 2.0, "max": 2.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008096 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.1, \"min\": 2.0, \"max\": 2.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad0a1_0693", "family": "revolved", "tier": 0, "seed": 2468008097, "symmetry": "none", "op_count": 1, "ir_hash": "68f9384953a29bc7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 207000.0, "surface_area": 41700.0, "principal_moments": [67900000.0, 435000000.0, 435000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 46.77, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 180.7, "min": 54.2, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008097 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 46.77, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 180.7, \"min\": 54.2, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad0a2_0694", "family": "threaded", "tier": 2, "seed": 2468008098, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "1b26f1617586fe0c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5570.0, "surface_area": 4000.0, "principal_moments": [181000.0, 1070000.0, 1070000.0], "n_faces": 299, "n_edges": 817, "n_vertices": 520}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 45.9, "min": 18.4, "max": 91.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008098 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 45.9, \"min\": 18.4, \"max\": 91.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0a3_0695", "family": "bracket", "tier": 1, "seed": 2468008099, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d5861a0b4cabbcd8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9480.0, "surface_area": 5790.0, "principal_moments": [882000.0, 4080000.0, 4180000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 33.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 24.89, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 35.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008099 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 33.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 24.89, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 35.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad0a4_0696", "family": "compound", "tier": 1, "seed": 2468008100, "symmetry": "none", "op_count": 3, "ir_hash": "b19beae266808d48", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 101000.0, "surface_area": 23500.0, "principal_moments": [66899999.99999999, 106000000.0, 109000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"base_w": {"type": "float", "default": 105, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 68.6, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 12.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 18.0, "min": 7.2, "max": 34.3, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 71.8, "min": 21.5, "max": 215.4, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008100 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 105, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 68.6, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 12.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 18.0, \"min\": 7.2, \"max\": 34.3, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 71.8, \"min\": 21.5, \"max\": 215.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0a5_0697", "family": "bracket", "tier": 1, "seed": 2468008101, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "3f5c4ce10304158e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30500.0, "surface_area": 14200.0, "principal_moments": [11100000.0, 28899999.999999996, 29699999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 72.65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 68.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008101 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 72.65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 68.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad0a7_0699", "family": "plate", "tier": 2, "seed": 2468008103, "symmetry": "none", "op_count": 3, "ir_hash": "68222b3e285e519d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1450.0, "surface_area": 1830.0, "principal_moments": [56000.0, 155000.0, 210000.0], "n_faces": 26, "n_edges": 72, "n_vertices": 48}, "params": {"plate_w": {"type": "float", "default": 37.23, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 22.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.0, "step": 0.5, "group": "Holes", "label": "Slot width (mm)"}, "hole_slot_len": {"type": "float", "default": 6.7, "min": 6.4, "max": 6.7, "step": 0.5, "group": "Holes", "label": "Slot length (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008103 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 37.23, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 22.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.0, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot width (mm)'},\n \"hole_slot_len\": {\"type\": 'float', \"default\": 6.7, \"min\": 6.4, \"max\": 6.7, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot length (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09870002701513561)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad0a8_0700", "family": "compound", "tier": 1, "seed": 2468008104, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "8ace701a16e89c83", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25700.0, "surface_area": 7960.0, "principal_moments": [2790000.0, 7190000.0, 7190000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 28.79, "min": 14.4, "max": 51.8, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 39.7, "min": 15.9, "max": 79.4, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 17.0, "min": 8.5, "max": 25.9, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 22.5, "min": 6.8, "max": 56.2, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 10.4, "min": 2.0, "max": 12.2, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008104 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 28.79, \"min\": 14.4, \"max\": 51.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 39.7, \"min\": 15.9, \"max\": 79.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 17.0, \"min\": 8.5, \"max\": 25.9, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 22.5, \"min\": 6.8, \"max\": 56.2, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 10.4, \"min\": 2.0, \"max\": 12.2, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0a9_0701", "family": "bracket", "tier": 1, "seed": 2468008105, "symmetry": "none", "op_count": 1, "ir_hash": "b5fb614289bc1069", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19100.0, "surface_area": 14000.0, "principal_moments": [6710000.0, 20800000.0, 21000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 84.98, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 60.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008105 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 84.98, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 60.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad0ab_0703", "family": "revolved", "tier": 0, "seed": 2468008107, "symmetry": "none", "op_count": 1, "ir_hash": "6c5b570c5e12ed9f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 76600.0, "surface_area": 15300.0, "principal_moments": [30099999.999999996, 30099999.999999996, 49699999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 65.79, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 33.8, "min": 10.1, "max": 101.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008107 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65.79, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 33.8, \"min\": 10.1, \"max\": 101.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad0ac_0704", "family": "plate", "tier": 1, "seed": 2468008108, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "bf79448b56ba94a8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2090.0, "surface_area": 1590.0, "principal_moments": [60600.0, 155000.0, 210000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 30, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 18.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008108 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 18.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad0ad_0705", "family": "enclosure", "tier": 1, "seed": 2468008109, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "d4f16c174ec8a13e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6870.0, "surface_area": 3370.0, "principal_moments": [387000.0, 773000.0, 803000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 30.0, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 17.2, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 17.2, "min": 6.9, "max": 34.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.7, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008109 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 30.0, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 17.2, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 17.2, \"min\": 6.9, \"max\": 34.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.7, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad0ae_0706", "family": "flanged", "tier": 2, "seed": 2468008110, "symmetry": "radial", "op_count": 3, "ir_hash": "7e578a9ef769e2ae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 56900.0, "surface_area": 17800.0, "principal_moments": [24199999.999999996, 24199999.999999996, 27999999.999999996], "n_faces": 22, "n_edges": 47, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 37.33, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 42.7, "min": 12.8, "max": 106.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.3, "min": 2.0, "max": 26.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 80.9, "min": 48.5, "max": 112.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.1, "min": 1.5, "max": 17.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.3, "min": 16.2, "max": 36.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008110 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 37.33, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 42.7, \"min\": 12.8, \"max\": 106.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.3, \"min\": 2.0, \"max\": 26.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 80.9, \"min\": 48.5, \"max\": 112.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.1, \"min\": 1.5, \"max\": 17.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.3, \"min\": 16.2, \"max\": 36.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad0b1_0709", "family": "threaded", "tier": 0, "seed": 2468008113, "symmetry": "none", "op_count": 1, "ir_hash": "b267e24c3f87c457", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1130.0, "surface_area": 1080.0, "principal_moments": [7550.0, 74200.0, 74200.0], "n_faces": 225, "n_edges": 577, "n_vertices": 354}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 27.5, "min": 11.0, "max": 55.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008113 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 27.5, \"min\": 11.0, \"max\": 55.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad0b2_0710", "family": "compound", "tier": 1, "seed": 2468008114, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "819956eaf7850d40", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45500.0, "surface_area": 11000.0, "principal_moments": [9240000.0, 15599999.999999998, 21200000.0], "n_faces": 16, "n_edges": 39, "n_vertices": 26}, "params": {"base_w": {"type": "float", "default": 62.3, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 45.7, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 16.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 5.8, "min": 2.9, "max": 11.4, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 25.0, "min": 7.5, "max": 75.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 10.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008114 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 62.3, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 45.7, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 16.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.9, \"max\": 11.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 25.0, \"min\": 7.5, \"max\": 75.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 10.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad0b3_0711", "family": "plate", "tier": 2, "seed": 2468008115, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "c5542e1fffb6e55c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7440.0, "surface_area": 3380.0, "principal_moments": [274000.0, 1530000.0, 1730000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 19.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008115 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 19.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08601919596797508)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0b4_0712", "family": "bracket", "tier": 1, "seed": 2468008116, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8721346d44b4aa2e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26600.0, "surface_area": 11100.0, "principal_moments": [7600000.0, 24899999.999999996, 28099999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 67.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 31.54, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008116 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 67.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 31.54, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad0b6_0714", "family": "plate", "tier": 1, "seed": 2468008118, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "fae9f5f69f8cee6d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5190.0, "surface_area": 2950.0, "principal_moments": [297000.0, 739000.0, 1010000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 41.33, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 25.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008118 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 41.33, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 25.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad0b7_0715", "family": "revolved", "tier": 1, "seed": 2468008119, "symmetry": "none", "op_count": 1, "ir_hash": "dc95004dcdba17b3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2890.0, "surface_area": 1970.0, "principal_moments": [59900.0, 300000.0, 300000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 11.74, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 33.5, "min": 10.0, "max": 100.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 8.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008119 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 11.74, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 33.5, \"min\": 10.0, \"max\": 100.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 8.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad0b8_0716", "family": "ribbed", "tier": 2, "seed": 2468008120, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "c444c51f905dae81", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6010.0, "surface_area": 4380.0, "principal_moments": [307000.0, 544000.0, 700000.0], "n_faces": 62, "n_edges": 168, "n_vertices": 104}, "params": {"base_w": {"type": "float", "default": 31.82, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 16.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 6.3, "min": 2.5, "max": 12.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.3, "min": 1.0, "max": 8.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008120 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 31.82, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 16.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 6.3, \"min\": 2.5, \"max\": 12.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.3, \"min\": 1.0, \"max\": 8.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0b9_0717", "family": "bracket", "tier": 1, "seed": 2468008121, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "eee73d7f272d9dad", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7520.0, "surface_area": 4860.0, "principal_moments": [1030000.0, 3210000.0, 3710000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 50.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20.16, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 8.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008121 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 50.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20.16, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 8.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0bc_0720", "family": "bracket", "tier": 1, "seed": 2468008124, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ba243c44c80fdfbf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10000.0, "surface_area": 5250.0, "principal_moments": [865000.0, 3150000.0, 3350000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 31.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 30.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 30.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008124 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 31.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 30.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 30.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad0bd_0721", "family": "block", "tier": 1, "seed": 2468008125, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "2dbc7a68c57b56c9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 66900.0, "surface_area": 14300.0, "principal_moments": [14899999.999999998, 24899999.999999996, 33399999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 46.42, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 24.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 62.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008125 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 46.42, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 24.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 62.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad0be_0722", "family": "compound", "tier": 2, "seed": 2468008126, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "519a038beb9cf3d4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 141000.0, "surface_area": 16700.0, "principal_moments": [34900000.0, 116000000.0, 116000000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 46.29, "min": 23.1, "max": 83.3, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 75.1, "min": 30.0, "max": 150.2, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 24.2, "min": 12.1, "max": 41.7, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 32.0, "min": 9.6, "max": 80.0, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008126 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 46.29, \"min\": 23.1, \"max\": 83.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 75.1, \"min\": 30.0, \"max\": 150.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 24.2, \"min\": 12.1, \"max\": 41.7, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 32.0, \"min\": 9.6, \"max\": 80.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad0bf_0723", "family": "ribbed", "tier": 1, "seed": 2468008127, "symmetry": "none", "op_count": 2, "ir_hash": "4a8298a81be3be6f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11700.0, "surface_area": 5790.0, "principal_moments": [992000.0, 1470000.0, 2010000.0], "n_faces": 46, "n_edges": 112, "n_vertices": 68}, "params": {"base_w": {"type": "float", "default": 35.84, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 27.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 9.1, "min": 3.6, "max": 18.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.5, "min": 1.0, "max": 11.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008127 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 35.84, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 27.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 9.1, \"min\": 3.6, \"max\": 18.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.0, \"max\": 11.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0c0_0724", "family": "bracket", "tier": 1, "seed": 2468008128, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "eb04b6192f1ee3d4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14400.0, "surface_area": 8360.0, "principal_moments": [3180000.0, 6250000.0, 6940000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 44.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008128 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 44.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad0c4_0728", "family": "gear", "tier": 0, "seed": 2468008132, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8e67de92904a2c89", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 125000.0, "surface_area": 22100.0, "principal_moments": [51499999.99999999, 51499999.99999999, 72900000.0], "n_faces": 68, "n_edges": 198, "n_vertices": 132}, "params": {"module": {"type": "float", "default": 6.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 11, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 38.0, "min": 15.2, "max": 95.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008132 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 6.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 11, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 38.0, \"min\": 15.2, \"max\": 95.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad0c5_0729", "family": "enclosure", "tier": 1, "seed": 2468008133, "symmetry": "none", "op_count": 2, "ir_hash": "450bfc8a7aa7f82b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7400.0, "surface_area": 4720.0, "principal_moments": [626000.0, 1140000.0, 1260000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 33.45, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 20.5, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 19.2, "min": 7.7, "max": 38.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.4, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008133 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 33.45, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 20.5, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 19.2, \"min\": 7.7, \"max\": 38.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.4, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad0c6_0730", "family": "block", "tier": 2, "seed": 2468008134, "symmetry": "none", "op_count": 3, "ir_hash": "2d05b2d89ca64ff4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29500.0, "surface_area": 7250.0, "principal_moments": [4480000.0, 5700000.0, 8700000.0], "n_faces": 22, "n_edges": 56, "n_vertices": 36}, "params": {"block_w": {"type": "float", "default": 40, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 17.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 40.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.8, "min": 2.0, "max": 1.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "boss_d": {"type": "float", "default": 19.3, "min": 9.7, "max": 38.6, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 8.7, "min": 3.5, "max": 21.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.5, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008134 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 17.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 40.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.8, \"min\": 2.0, \"max\": 1.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"boss_d\": {\"type\": 'float', \"default\": 19.3, \"min\": 9.7, \"max\": 38.6, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 8.7, \"min\": 3.5, \"max\": 21.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.5, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 15.0\n _ssy = 18.0\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad0c7_0731", "family": "revolved", "tier": 2, "seed": 2468008135, "symmetry": "none", "op_count": 1, "ir_hash": "8c3e09d8ad8ee394", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 826000.0, "surface_area": 88400.0, "principal_moments": [676000000.0, 5220000000.0, 5220000000.0], "n_faces": 10, "n_edges": 15, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 62.75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 250.2, "min": 75.1, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 25.4, "min": 2.0, "max": 43.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 96.8, "min": 75.3, "max": 188.2, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 44.5, "min": 13.3, "max": 125.1, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "groove_depth": {"type": "float", "default": 2.59, "min": 1.04, "max": 7.77, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 22.58, "min": 9.03, "max": 67.74, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 183.9, "min": 37.5, "max": 212.7, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008135 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 62.75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 250.2, \"min\": 75.1, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 25.4, \"min\": 2.0, \"max\": 43.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 96.8, \"min\": 75.3, \"max\": 188.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 44.5, \"min\": 13.3, \"max\": 125.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 2.59, \"min\": 1.04, \"max\": 7.77, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 22.58, \"min\": 9.03, \"max\": 67.74, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 183.9, \"min\": 37.5, \"max\": 212.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad0c8_0732", "family": "plate", "tier": 0, "seed": 2468008136, "symmetry": "none", "op_count": 1, "ir_hash": "e4c264d0080c0dc4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26100.0, "surface_area": 8370.0, "principal_moments": [5400000.0, 9690000.0, 14799999.999999998], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 66.29, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 49.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008136 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 66.29, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 49.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad0c9_0733", "family": "enclosure", "tier": 3, "seed": 2468008137, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "e12b11101ff17c59", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 47000.0, "surface_area": 20400.0, "principal_moments": [16699999.999999998, 30299999.999999996, 30399999.999999996], "n_faces": 19, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 65.04, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 37.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 43.2, "min": 17.3, "max": 86.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 8.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008137 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 65.04, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 37.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 43.2, \"min\": 17.3, \"max\": 86.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 8.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad0ca_0734", "family": "plate", "tier": 1, "seed": 2468008138, "symmetry": "radial", "op_count": 2, "ir_hash": "f7fc43ae3657cd82", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4590.0, "surface_area": 2520.0, "principal_moments": [141000.0, 422000.0, 453000.0], "n_faces": 20, "n_edges": 54, "n_vertices": 36}, "params": {"plate_w": {"type": "float", "default": 30, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 15.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 9.0, "min": 6.0, "max": 13.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008138 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 15.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 9.0, \"min\": 6.0, \"max\": 13.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad0cb_0735", "family": "threaded", "tier": 0, "seed": 2468008139, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "28c2e55812825a59", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 405.0, "surface_area": 521.0, "principal_moments": [1500.0, 11300.0, 11300.0], "n_faces": 185, "n_edges": 473, "n_vertices": 290}, "params": {"major_d": {"type": "float", "default": 6.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.0, "min": 0.5, "max": 2.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 17.8, "min": 7.1, "max": 35.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008139 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.5, \"max\": 2.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 17.8, \"min\": 7.1, \"max\": 35.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad0cc_0736", "family": "gear", "tier": 0, "seed": 2468008140, "symmetry": "none", "op_count": 1, "ir_hash": "28c338617bbd9ea1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23100.0, "surface_area": 7240.0, "principal_moments": [3400000.0, 3400000.0, 5970000.0], "n_faces": 110, "n_edges": 324, "n_vertices": 216}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 18, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 14.8, "min": 5.9, "max": 37.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008140 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 18, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 14.8, \"min\": 5.9, \"max\": 37.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad0cd_0737", "family": "revolved", "tier": 0, "seed": 2468008141, "symmetry": "radial", "op_count": 1, "ir_hash": "3bd7f7519714d27e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 370000.0, "surface_area": 49500.0, "principal_moments": [312000000.0, 504000000.0, 504000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 125.7, "min": 37.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008141 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 125.7, \"min\": 37.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad0ce_0738", "family": "enclosure", "tier": 1, "seed": 2468008142, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "78e89489c84cef5b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30300.0, "surface_area": 20900.0, "principal_moments": [9270000.0, 26499999.999999996, 27999999.999999996], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 81.91, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 34.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 35.8, "min": 14.3, "max": 71.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008142 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 81.91, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 34.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 35.8, \"min\": 14.3, \"max\": 71.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad0cf_0739", "family": "block", "tier": 2, "seed": 2468008143, "symmetry": "radial", "op_count": 3, "ir_hash": "ae5ff33a53a18e16", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 289000.0, "surface_area": 40100.0, "principal_moments": [219000000.0, 278000000.0, 402000000.0], "n_faces": 21, "n_edges": 54, "n_vertices": 36}, "params": {"block_w": {"type": "float", "default": 80, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 42.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.0, "min": 16.0, "max": 36.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "pocket_w": {"type": "float", "default": 44.1, "min": 22.1, "max": 64.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 23.0, "min": 11.5, "max": 33.8, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 44.6, "min": 17.8, "max": 85.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008143 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 42.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.0, \"min\": 16.0, \"max\": 36.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"pocket_w\": {\"type\": 'float', \"default\": 44.1, \"min\": 22.1, \"max\": 64.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 23.0, \"min\": 11.5, \"max\": 33.8, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 44.6, \"min\": 17.8, \"max\": 85.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0d0_0740", "family": "bracket", "tier": 2, "seed": 2468008144, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "f3d173d282afee7d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9600.0, "surface_area": 4500.0, "principal_moments": [883000.0, 2820000.0, 3200000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 48.59, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 39.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 18.15, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 7.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 8.2, "min": 3.0, "max": 9.1, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008144 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 48.59, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 39.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 18.15, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 7.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 8.2, \"min\": 3.0, \"max\": 9.1, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad0d1_0741", "family": "flanged", "tier": 2, "seed": 2468008145, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "4c94c91799e796c1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 735000.0, "surface_area": 88000.0, "principal_moments": [1500000000.0, 1500000000.0, 1680000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 91.03, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 95.9, "min": 28.8, "max": 239.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 38.2, "min": 2.0, "max": 63.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 172.5, "min": 118.3, "max": 273.1, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 13.2, "min": 4.0, "max": 38.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 51.8, "min": 34.5, "max": 77.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008145 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 91.03, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 95.9, \"min\": 28.8, \"max\": 239.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 38.2, \"min\": 2.0, \"max\": 63.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 172.5, \"min\": 118.3, \"max\": 273.1, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 13.2, \"min\": 4.0, \"max\": 38.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 51.8, \"min\": 34.5, \"max\": 77.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad0d2_0742", "family": "revolved", "tier": 0, "seed": 2468008146, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "c03e571925284998", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 284000.0, "surface_area": 44400.0, "principal_moments": [165000000.0, 411000000.0, 411000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 62.31, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 139.6, "min": 41.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008146 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 62.31, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 139.6, \"min\": 41.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad0d3_0743", "family": "compound", "tier": 2, "seed": 2468008147, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "fd470e6c0b437ffd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 73500.0, "surface_area": 19300.0, "principal_moments": [31899999.999999996, 68900000.0, 87100000.0], "n_faces": 31, "n_edges": 84, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 104.37, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 66.3, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 10.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 5.5, "min": 2.8, "max": 16.6, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 57.2, "min": 17.2, "max": 171.6, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008147 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 104.37, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 66.3, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 10.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.8, \"max\": 16.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 57.2, \"min\": 17.2, \"max\": 171.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_w\"], p[\"base_d\"]) * 0.062260809399727106)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad0d4_0744", "family": "block", "tier": 2, "seed": 2468008148, "symmetry": "radial", "op_count": 3, "ir_hash": "973d280855df34eb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 610000.0, "surface_area": 72100.0, "principal_moments": [819000000.0, 920000000.0, 1080000000.0], "n_faces": 23, "n_edges": 78, "n_vertices": 52}, "params": {"block_w": {"type": "float", "default": 100.0, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 75.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 30.0, "min": 20.0, "max": 45.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "pocket_w": {"type": "float", "default": 51.7, "min": 25.9, "max": 80.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 46.8, "min": 23.4, "max": 60.7, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 48.6, "min": 19.4, "max": 85.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008148 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 100.0, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 75.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 30.0, \"min\": 20.0, \"max\": 45.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"pocket_w\": {\"type\": 'float', \"default\": 51.7, \"min\": 25.9, \"max\": 80.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 46.8, \"min\": 23.4, \"max\": 60.7, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 48.6, \"min\": 19.4, \"max\": 85.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad0d5_0745", "family": "enclosure", "tier": 1, "seed": 2468008149, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "48de846e03d355b7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 118000.0, "surface_area": 66700.0, "principal_moments": [181000000.0, 220000000.0, 220000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 90.84, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 72.9, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 87.1, "min": 34.8, "max": 174.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008149 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 90.84, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 72.9, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 87.1, \"min\": 34.8, \"max\": 174.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad0d6_0746", "family": "block", "tier": 2, "seed": 2468008150, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "51e9d60425d135be", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 448000.0, "surface_area": 43500.0, "principal_moments": [399000000.0, 441000000.0, 609000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 87.88, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 56.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 93.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 12.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008150 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 87.88, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 56.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 93.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 12.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.051589138626789835)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad0d8_0748", "family": "revolved", "tier": 0, "seed": 2468008152, "symmetry": "radial", "op_count": 1, "ir_hash": "60ff02f749537f6f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12800.0, "surface_area": 6130.0, "principal_moments": [763000.0, 3290000.0, 3290000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 19.91, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 61.8, "min": 18.5, "max": 185.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008152 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 19.91, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 61.8, \"min\": 18.5, \"max\": 185.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad0d9_0749", "family": "block", "tier": 1, "seed": 2468008153, "symmetry": "none", "op_count": 2, "ir_hash": "93db95a4bd71d1bc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11900.0, "surface_area": 4860.0, "principal_moments": [936000.0, 1090000.0, 1420000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 29.1, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 18.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 25.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 5.3, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008153 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 29.1, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 18.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 25.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 5.3, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad0da_0750", "family": "block", "tier": 2, "seed": 2468008154, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "52bb127249209b53", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 128000.0, "surface_area": 24500.0, "principal_moments": [44700000.0, 78500000.0, 93099999.99999999], "n_faces": 27, "n_edges": 72, "n_vertices": 48}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 36.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 55.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.2, "min": 2.0, "max": 10.6, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "pocket_w": {"type": "float", "default": 46.5, "min": 23.2, "max": 60.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 20.4, "min": 10.2, "max": 29.1, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 17.8, "min": 7.1, "max": 46.9, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008154 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 36.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 55.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 10.6, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 46.5, \"min\": 23.2, \"max\": 60.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 20.4, \"min\": 10.2, \"max\": 29.1, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 17.8, \"min\": 7.1, \"max\": 46.9, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad0db_0751", "family": "revolved", "tier": 1, "seed": 2468008155, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "08c4b987f4305a55", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 563000.0, "surface_area": 72500.0, "principal_moments": [475000000.0, 1460000000.0, 1460000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 191.3, "min": 57.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008155 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 191.3, \"min\": 57.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad0dc_0752", "family": "profiled", "tier": 1, "seed": 2468008156, "symmetry": "none", "op_count": 1, "ir_hash": "823f402759b42a9a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9390.0, "surface_area": 4670.0, "principal_moments": [365000.0, 2920000.0, 2920000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 16.02, "min": 8.0, "max": 32.0, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 59.2, "min": 17.8, "max": 177.6, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 7.4, "min": 2.0, "max": 12.8, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008156 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 16.02, \"min\": 8.0, \"max\": 32.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 59.2, \"min\": 17.8, \"max\": 177.6, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 7.4, \"min\": 2.0, \"max\": 12.8, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad0de_0754", "family": "revolved", "tier": 0, "seed": 2468008158, "symmetry": "none", "op_count": 1, "ir_hash": "84b746488f26d765", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 141000.0, "surface_area": 27500.0, "principal_moments": [52799999.99999999, 123000000.0, 123000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 50, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 107.5, "min": 32.2, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008158 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 107.5, \"min\": 32.2, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0df_0755", "family": "bracket", "tier": 1, "seed": 2468008159, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "7a81a44260fe2b19", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23000.0, "surface_area": 10700.0, "principal_moments": [7460000.0, 8670000.0, 12899999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 49.08, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 39.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008159 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 49.08, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 39.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_w\"], p[\"base_d\"]) * 0.04882813793515797)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad0e3_0759", "family": "ribbed", "tier": 3, "seed": 2468008163, "symmetry": "none", "op_count": 2, "ir_hash": "974d39b1d33764a0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 60700.0, "surface_area": 30300.0, "principal_moments": [33099999.999999996, 52299999.99999999, 80300000.0], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 98.34, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 77.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 20.0, "min": 8.0, "max": 40.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.4, "min": 1.0, "max": 6.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008163 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 98.34, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 77.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 20.0, \"min\": 8.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.4, \"min\": 1.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad0e4_0760", "family": "compound", "tier": 1, "seed": 2468008164, "symmetry": "none", "op_count": 3, "ir_hash": "b3b4ff4cacaad742", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 63100.0, "surface_area": 11500.0, "principal_moments": [16199999.999999998, 16699999.999999998, 17600000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 38.33, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 37.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 41.2, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 37.2, "min": 14.9, "max": 59.5, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 22.8, "min": 9.1, "max": 36.5, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.0, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008164 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 38.33, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 37.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 41.2, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 37.2, \"min\": 14.9, \"max\": 59.5, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 22.8, \"min\": 9.1, \"max\": 36.5, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.0, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .rect(p[\"tab_a\"], p[\"tab_b\"]).extrude(p[\"tab_t\"])\n )\n result = (\n result.faces('>Y').workplane()\n .rect(p[\"tab_a\"] * 0.6, p[\"tab_b\"] * 0.6, forConstruction=True)\n .vertices().hole(p[\"tab_hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0e5_0761", "family": "bracket", "tier": 1, "seed": 2468008165, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "13d04810f51bd282", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22000.0, "surface_area": 12600.0, "principal_moments": [8260000.0, 10800000.0, 12199999.999999998], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 46.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 43.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008165 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 46.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 43.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad0e6_0762", "family": "plate", "tier": 0, "seed": 2468008166, "symmetry": "none", "op_count": 1, "ir_hash": "027a523bd64272c4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11600.0, "surface_area": 5650.0, "principal_moments": [1070000.0, 4740000.0, 5760000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 70, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 33.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008166 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 33.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0e7_0763", "family": "bracket", "tier": 2, "seed": 2468008167, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "65b72b328a7d8912", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7630.0, "surface_area": 4660.0, "principal_moments": [906000.0, 1220000.0, 1740000.0], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 26.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40.08, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.1, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008167 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 26.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40.08, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.1, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad0e8_0764", "family": "revolved", "tier": 0, "seed": 2468008168, "symmetry": "none", "op_count": 1, "ir_hash": "6415c969cfffbb70", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 371000.0, "surface_area": 59700.0, "principal_moments": [191000000.0, 1030000000.0, 1030000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 58.67, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 205.6, "min": 61.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008168 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 58.67, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 205.6, \"min\": 61.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0e9_0765", "family": "bracket", "tier": 2, "seed": 2468008169, "symmetry": "none", "op_count": 1, "ir_hash": "cb756fcad384d686", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35300.0, "surface_area": 16300.0, "principal_moments": [12599999.999999998, 34900000.0, 35800000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 73.38, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 45.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.5, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008169 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 73.38, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 45.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad0ea_0766", "family": "revolved", "tier": 1, "seed": 2468008170, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "d1ef47cc8403f7cb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 220000.0, "surface_area": 38600.0, "principal_moments": [133000000.0, 264000000.0, 264000000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 48.36, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 122.4, "min": 36.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 82.8, "min": 58.0, "max": 145.1, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 19.8, "min": 5.9, "max": 61.2, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.2, "min": 0.1, "max": 3.6, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008170 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 48.36, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 122.4, \"min\": 36.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 82.8, \"min\": 58.0, \"max\": 145.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 19.8, \"min\": 5.9, \"max\": 61.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.2, \"min\": 0.1, \"max\": 3.6, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad0ec_0768", "family": "block", "tier": 3, "seed": 2468008172, "symmetry": "none", "op_count": 4, "ir_hash": "9362a2392f27b4f2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 220000.0, "surface_area": 28900.0, "principal_moments": [114000000.0, 150000000.0, 164000000.0], "n_faces": 45, "n_edges": 126, "n_vertices": 84}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 60.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 50.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 7.7, "min": 2.0, "max": 16.9, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "boss_d": {"type": "float", "default": 23.0, "min": 11.5, "max": 46.0, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 8.7, "min": 3.5, "max": 21.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 16.1, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}, "filleted2": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008172 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 60.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 50.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 7.7, \"min\": 2.0, \"max\": 16.9, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 23.0, \"min\": 11.5, \"max\": 46.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 8.7, \"min\": 3.5, \"max\": 21.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 16.1, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n \"filleted2\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.05665237366370733)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0ed_0769", "family": "bracket", "tier": 1, "seed": 2468008173, "symmetry": "none", "op_count": 1, "ir_hash": "491bf44e228f98e3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 58400.0, "surface_area": 18800.0, "principal_moments": [18700000.0, 113000000.0, 120000000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 72.45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 82.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 71.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008173 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 72.45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 82.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 71.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad0ee_0770", "family": "gear", "tier": 2, "seed": 2468008174, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "e47189b21b27e231", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 43300.0, "surface_area": 17000.0, "principal_moments": [24199999.999999996, 24199999.999999996, 47999999.99999999], "n_faces": 243, "n_edges": 723, "n_vertices": 482}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 40, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.7, "min": 2.7, "max": 16.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 29.6, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.12, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.47, "min": 0.0, "max": 1.0, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 17.2, "min": 2.0, "max": 45.0, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008174 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 40, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.7, \"min\": 2.7, \"max\": 16.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 29.6, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.12, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.47, \"min\": 0.0, \"max\": 1.0, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 17.2, \"min\": 2.0, \"max\": 45.0, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad0ef_0771", "family": "block", "tier": 1, "seed": 2468008175, "symmetry": "radial", "op_count": 2, "ir_hash": "f17f6db5734f60be", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 401000.0, "surface_area": 38800.0, "principal_moments": [284000000.0, 437000000.0, 465000000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 95.87, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 62.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 68.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 28.8, "min": 19.2, "max": 43.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008175 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 95.87, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 62.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 68.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 28.8, \"min\": 19.2, \"max\": 43.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad0f0_0772", "family": "profiled", "tier": 2, "seed": 2468008176, "symmetry": "none", "op_count": 1, "ir_hash": "095427bd2d8ca589", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8220.0, "surface_area": 2620.0, "principal_moments": [265000.0, 1300000.0, 1300000.0], "n_faces": 7, "n_edges": 15, "n_vertices": 10}, "params": {"circ_r": {"type": "float", "default": 9.15, "min": 4.6, "max": 18.3, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 41.3, "min": 12.4, "max": 123.9, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008176 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 9.15, \"min\": 4.6, \"max\": 18.3, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 41.3, \"min\": 12.4, \"max\": 123.9, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad0f2_0774", "family": "compound", "tier": 1, "seed": 2468008178, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "e1f46677080ed04e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 402000.0, "surface_area": 42100.0, "principal_moments": [357000000.0, 387000000.0, 589000000.0], "n_faces": 14, "n_edges": 34, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 90.0, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 94.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 47.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 16.2, "min": 6.5, "max": 21.5, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 19.0, "min": 4.0, "max": 48.6, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 8.6, "min": 2.0, "max": 11.7, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008178 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 90.0, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 94.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 47.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 16.2, \"min\": 6.5, \"max\": 21.5, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 19.0, \"min\": 4.0, \"max\": 48.6, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 8.6, \"min\": 2.0, \"max\": 11.7, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad0f3_0775", "family": "threaded", "tier": 3, "seed": 2468008179, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "eba3707dea459ef0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6260.0, "surface_area": 3000.0, "principal_moments": [179000.0, 729000.0, 729000.0], "n_faces": 416, "n_edges": 1142, "n_vertices": 728}, "params": {"major_d": {"type": "float", "default": 16.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 35.1, "min": 14.0, "max": 70.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008179 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 35.1, \"min\": 14.0, \"max\": 70.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0f4_0776", "family": "bracket", "tier": 1, "seed": 2468008180, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "f046ac072ae3f7cb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19800.0, "surface_area": 6580.0, "principal_moments": [2010000.0, 6270000.0, 7280000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"base_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 59.07, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008180 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 59.07, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad0f8_0780", "family": "plate", "tier": 0, "seed": 2468008184, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "c5d1e14867dbaff1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5660.0, "surface_area": 2090.0, "principal_moments": [158000.0, 617000.0, 639000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 34.15, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 13.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008184 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 34.15, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 13.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad0f9_0781", "family": "block", "tier": 2, "seed": 2468008185, "symmetry": "radial", "op_count": 3, "ir_hash": "f7370c0bfbefbfc5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 241000.0, "surface_area": 34800.0, "principal_moments": [138000000.0, 202000000.0, 219000000.0], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"block_w": {"type": "float", "default": 80, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 53.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 64.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.0, "min": 16.0, "max": 36.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "pocket_w": {"type": "float", "default": 35.1, "min": 17.6, "max": 64.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 32.7, "min": 16.4, "max": 42.7, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 22.0, "min": 8.8, "max": 54.6, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008185 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 53.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 64.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.0, \"min\": 16.0, \"max\": 36.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"pocket_w\": {\"type\": 'float', \"default\": 35.1, \"min\": 17.6, \"max\": 64.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 32.7, \"min\": 16.4, \"max\": 42.7, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 22.0, \"min\": 8.8, \"max\": 54.6, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0fa_0782", "family": "bracket", "tier": 2, "seed": 2468008186, "symmetry": "none", "op_count": 1, "ir_hash": "b776df12f277b44a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 73200.0, "surface_area": 22100.0, "principal_moments": [22700000.0, 116000000.0, 123000000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 49.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 76.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 9.9, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008186 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 49.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 76.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 9.9, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad0fb_0783", "family": "flanged", "tier": 1, "seed": 2468008187, "symmetry": "none", "op_count": 2, "ir_hash": "4055638c0a5757bc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 98900.0, "surface_area": 25100.0, "principal_moments": [55999999.99999999, 62399999.99999999, 62399999.99999999], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 47.27, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 59.1, "min": 17.7, "max": 147.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 24.9, "min": 2.0, "max": 33.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 84.2, "min": 61.5, "max": 141.8, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.9, "min": 2.1, "max": 23.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 25.3, "min": 16.8, "max": 37.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008187 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 47.27, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 59.1, \"min\": 17.7, \"max\": 147.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 24.9, \"min\": 2.0, \"max\": 33.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 84.2, \"min\": 61.5, \"max\": 141.8, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.9, \"min\": 2.1, \"max\": 23.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 25.3, \"min\": 16.8, \"max\": 37.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad0fc_0784", "family": "gear", "tier": 2, "seed": 2468008188, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8239e549aa8ac793", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7030.0, "surface_area": 3740.0, "principal_moments": [644000.0, 644000.0, 1240000.0], "n_faces": 195, "n_edges": 579, "n_vertices": 386}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 32, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.7, "min": 2.7, "max": 16.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 30.0, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.05, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.21, "min": 0.0, "max": 0.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 17.7, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008188 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 32, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.7, \"min\": 2.7, \"max\": 16.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 30.0, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.05, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.21, \"min\": 0.0, \"max\": 0.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 17.7, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad0fd_0785", "family": "flanged", "tier": 3, "seed": 2468008189, "symmetry": "none", "op_count": 2, "ir_hash": "4ee5de39bcb0c870", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28000.0, "surface_area": 12900.0, "principal_moments": [8040000.0, 8040000.0, 10200000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"outer_d": {"type": "float", "default": 30.28, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 32.2, "min": 9.7, "max": 80.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 14.3, "min": 2.0, "max": 21.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 71.8, "min": 39.4, "max": 90.8, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.1, "min": 0.9, "max": 12.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 21.5, "min": 14.4, "max": 32.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008189 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30.28, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 32.2, \"min\": 9.7, \"max\": 80.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 14.3, \"min\": 2.0, \"max\": 21.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 71.8, \"min\": 39.4, \"max\": 90.8, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.1, \"min\": 0.9, \"max\": 12.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 21.5, \"min\": 14.4, \"max\": 32.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0fe_0786", "family": "bracket", "tier": 3, "seed": 2468008190, "symmetry": "none", "op_count": 1, "ir_hash": "e8ef66aa234ed9f5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26800.0, "surface_area": 11000.0, "principal_moments": [5080000.0, 10200000.0, 10700000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"base_len": {"type": "float", "default": 28.14, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 30.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 59.17, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 6.5, "min": 3.0, "max": 18.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008190 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 28.14, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 30.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 59.17, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.5, \"min\": 3.0, \"max\": 18.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad0ff_0787", "family": "revolved", "tier": 0, "seed": 2468008191, "symmetry": "none", "op_count": 1, "ir_hash": "8bdecacb5b409bae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11700.0, "surface_area": 4980.0, "principal_moments": [974000.0, 1620000.0, 1620000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 23.54, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 40.4, "min": 12.1, "max": 121.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008191 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 23.54, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 40.4, \"min\": 12.1, \"max\": 121.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad102_0790", "family": "block", "tier": 2, "seed": 2468008194, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "a4c30f0aceba5739", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 672000.0, "surface_area": 56300.0, "principal_moments": [762000000.0, 928000000.0, 954000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 82.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008194 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 82.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.07928949941787815)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad103_0791", "family": "enclosure", "tier": 2, "seed": 2468008195, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "5fd560dfc881a26e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22000.0, "surface_area": 9750.0, "principal_moments": [3260000.0, 5410000.0, 6430000.0], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 45, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 21.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 32.9, "min": 13.2, "max": 65.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008195 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 45, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 21.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 32.9, \"min\": 13.2, \"max\": 65.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.09931906471356851)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad104_0792", "family": "bracket", "tier": 2, "seed": 2468008196, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "077738c0aaf54421", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12300.0, "surface_area": 7400.0, "principal_moments": [1450000.0, 10200000.0, 10900000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 54.38, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 47.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 48.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 4.6, "min": 2.0, "max": 10.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008196 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 54.38, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 47.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 48.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.6, \"min\": 2.0, \"max\": 10.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad105_0793", "family": "revolved", "tier": 2, "seed": 2468008197, "symmetry": "none", "op_count": 1, "ir_hash": "ba0a10d1576c81e4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 81800.0, "surface_area": 22400.0, "principal_moments": [21100000.0, 72500000.0, 72500000.0], "n_faces": 9, "n_edges": 13, "n_vertices": 9}, "params": {"outer_d": {"type": "float", "default": 33.0, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 109.3, "min": 32.8, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 56.9, "min": 39.6, "max": 99.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 12.3, "min": 3.7, "max": 54.6, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "groove_depth": {"type": "float", "default": 1.54, "min": 0.62, "max": 4.62, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 8.65, "min": 3.46, "max": 25.95, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 64.8, "min": 16.4, "max": 92.9, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008197 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 33.0, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 109.3, \"min\": 32.8, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 56.9, \"min\": 39.6, \"max\": 99.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 12.3, \"min\": 3.7, \"max\": 54.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 1.54, \"min\": 0.62, \"max\": 4.62, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 8.65, \"min\": 3.46, \"max\": 25.95, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 64.8, \"min\": 16.4, \"max\": 92.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad106_0794", "family": "plate", "tier": 3, "seed": 2468008198, "symmetry": "radial", "op_count": 4, "ir_hash": "a8c357da34dd3fcb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 52400.0, "surface_area": 14800.0, "principal_moments": [11499999.999999998, 51799999.99999999, 62099999.99999999], "n_faces": 33, "n_edges": 90, "n_vertices": 60}, "params": {"plate_w": {"type": "float", "default": 103.62, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 49.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 31.1, "min": 20.7, "max": 46.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "pocket_w": {"type": "float", "default": 45.5, "min": 22.8, "max": 82.9, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 22.3, "min": 11.2, "max": 39.5, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 4.8, "min": 1.9, "max": 10.2, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008198 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 103.62, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 49.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 31.1, \"min\": 20.7, \"max\": 46.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"pocket_w\": {\"type\": 'float', \"default\": 45.5, \"min\": 22.8, \"max\": 82.9, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 22.3, \"min\": 11.2, \"max\": 39.5, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 4.8, \"min\": 1.9, \"max\": 10.2, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.06989958760113724)\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad109_0797", "family": "compound", "tier": 1, "seed": 2468008201, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "9b862c5f6fbed81b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 158000.0, "surface_area": 26700.0, "principal_moments": [46599999.99999999, 187000000.0, 187000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 48.51, "min": 24.3, "max": 87.3, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 82.1, "min": 32.8, "max": 164.2, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 26.4, "min": 13.2, "max": 43.7, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 53.9, "min": 16.2, "max": 134.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 14.8, "min": 2.0, "max": 19.0, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008201 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 48.51, \"min\": 24.3, \"max\": 87.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 82.1, \"min\": 32.8, \"max\": 164.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 26.4, \"min\": 13.2, \"max\": 43.7, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 53.9, \"min\": 16.2, \"max\": 134.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 14.8, \"min\": 2.0, \"max\": 19.0, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad10a_0798", "family": "ribbed", "tier": 3, "seed": 2468008202, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "5ea27640313d10bf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 56400.0, "surface_area": 17000.0, "principal_moments": [19000000.0, 22200000.0, 38300000.0], "n_faces": 39, "n_edges": 108, "n_vertices": 72}, "params": {"base_w": {"type": "float", "default": 66.86, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 63.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 9.3, "min": 3.7, "max": 18.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.7, "min": 1.0, "max": 14.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008202 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 66.86, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 63.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 9.3, \"min\": 3.7, \"max\": 18.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.7, \"min\": 1.0, \"max\": 14.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad10b_0799", "family": "revolved", "tier": 1, "seed": 2468008203, "symmetry": "radial", "op_count": 2, "ir_hash": "241108421a5e1d36", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 491000.0, "surface_area": 67900.0, "principal_moments": [287000000.0, 2140000000.0, 2140000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 61.24, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 221.2, "min": 66.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 30.4, "min": 2.0, "max": 42.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.6, "min": 0.1, "max": 1.8, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008203 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 61.24, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 221.2, \"min\": 66.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 30.4, \"min\": 2.0, \"max\": 42.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.6, \"min\": 0.1, \"max\": 1.8, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad10e_0802", "family": "bracket", "tier": 2, "seed": 2468008206, "symmetry": "none", "op_count": 1, "ir_hash": "f9ab67202d34f882", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31600.0, "surface_area": 17600.0, "principal_moments": [10700000.0, 36500000.0, 38800000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 60, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 64.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 40.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 3.4, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008206 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 60, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 64.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 40.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.4, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad110_0804", "family": "revolved", "tier": 2, "seed": 2468008208, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "88fb3d3a037751f4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6110.0, "surface_area": 3160.0, "principal_moments": [199000.0, 1010000.0, 1010000.0], "n_faces": 8, "n_edges": 12, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 15, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 42.2, "min": 12.7, "max": 126.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 6.1, "min": 2.0, "max": 10.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 0.93, "min": 0.37, "max": 2.79, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 2.68, "min": 1.07, "max": 8.04, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 31.1, "min": 6.3, "max": 35.9, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008208 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 15, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 42.2, \"min\": 12.7, \"max\": 126.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 6.1, \"min\": 2.0, \"max\": 10.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 0.93, \"min\": 0.37, \"max\": 2.79, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 2.68, \"min\": 1.07, \"max\": 8.04, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 31.1, \"min\": 6.3, \"max\": 35.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad111_0805", "family": "enclosure", "tier": 2, "seed": 2468008209, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "22f91d8c16dad0e0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 48100.0, "surface_area": 21800.0, "principal_moments": [18400000.0, 22100000.0, 33199999.999999996], "n_faces": 19, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 61.86, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 24.9, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 57.8, "min": 23.1, "max": 115.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 5.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008209 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 61.86, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 24.9, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 57.8, \"min\": 23.1, \"max\": 115.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 5.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad112_0806", "family": "compound", "tier": 2, "seed": 2468008210, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "56e9709ddf056de5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 156000.0, "surface_area": 21200.0, "principal_moments": [72500000.0, 73900000.0, 88600000.0], "n_faces": 20, "n_edges": 54, "n_vertices": 36}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 57.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 48.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 52.1, "min": 20.8, "max": 83.4, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 39.4, "min": 15.8, "max": 63.0, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 8.7, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 33.3, "min": 16.6, "max": 44.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 25.4, "min": 12.7, "max": 45.8, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 17.9, "min": 7.2, "max": 41.1, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008210 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 57.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 48.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 52.1, \"min\": 20.8, \"max\": 83.4, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 39.4, \"min\": 15.8, \"max\": 63.0, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 8.7, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 33.3, \"min\": 16.6, \"max\": 44.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 25.4, \"min\": 12.7, \"max\": 45.8, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 17.9, \"min\": 7.2, \"max\": 41.1, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad114_0808", "family": "plate", "tier": 1, "seed": 2468008212, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3699383cddbd359d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2640.0, "surface_area": 1780.0, "principal_moments": [51500.0, 315000.0, 356000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 38.08, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 14.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008212 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 38.08, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 14.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad116_0810", "family": "bracket", "tier": 1, "seed": 2468008214, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "4ff4040ea1f28fe3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24900.0, "surface_area": 10100.0, "principal_moments": [7360000.0, 8200000.0, 12499999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 41.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 39.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 56.33, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008214 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 41.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 39.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 56.33, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad11a_0814", "family": "block", "tier": 1, "seed": 2468008218, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "b369db9fbdf44687", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 443000.0, "surface_area": 43100.0, "principal_moments": [367000000.0, 472000000.0, 633000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 53.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 11.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008218 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 53.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 11.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad11b_0815", "family": "compound", "tier": 3, "seed": 2468008219, "symmetry": "none", "op_count": 5, "ir_hash": "db6e85694e3cbaa7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 371000.0, "surface_area": 48900.0, "principal_moments": [319000000.0, 351000000.0, 392000000.0], "n_faces": 26, "n_edges": 84, "n_vertices": 56}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 67.9, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 82.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 60.5, "min": 24.2, "max": 96.8, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 65.1, "min": 26.0, "max": 104.2, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 13.0, "min": 2.0, "max": 13.3, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}, "block_hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008219 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 67.9, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 82.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 60.5, \"min\": 24.2, \"max\": 96.8, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 65.1, \"min\": 26.0, \"max\": 104.2, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 13.0, \"min\": 2.0, \"max\": 13.3, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n \"block_hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"block_hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.04045546927650647)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad11c_0816", "family": "compound", "tier": 1, "seed": 2468008220, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "a90206f18bdb305d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 124000.0, "surface_area": 17100.0, "principal_moments": [44400000.0, 54599999.99999999, 69200000.0], "n_faces": 28, "n_edges": 76, "n_vertices": 50}, "params": {"block_w": {"type": "float", "default": 61.85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 37.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 53.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 4.3, "min": 2.1, "max": 8.5, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 6.7, "min": 2.0, "max": 23.8, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 4.4, "min": 2.0, "max": 5.7, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008220 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 61.85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 37.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 53.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.1, \"max\": 8.5, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 6.7, \"min\": 2.0, \"max\": 23.8, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 4.4, \"min\": 2.0, \"max\": 5.7, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad11e_0818", "family": "gear", "tier": 1, "seed": 2468008222, "symmetry": "none", "op_count": 1, "ir_hash": "4c86310109607f98", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39300.0, "surface_area": 12400.0, "principal_moments": [12799999.999999998, 12799999.999999998, 24799999.999999996], "n_faces": 213, "n_edges": 633, "n_vertices": 422}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 35, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 10.6, "min": 4.2, "max": 26.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 11.8, "min": 2.0, "max": 39.0, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008222 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 35, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 10.6, \"min\": 4.2, \"max\": 26.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 11.8, \"min\": 2.0, \"max\": 39.0, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad11f_0819", "family": "block", "tier": 3, "seed": 2468008223, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "4912accd1d582ca8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39400.0, "surface_area": 12500.0, "principal_moments": [6600000.0, 10200000.0, 12799999.999999998], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"block_w": {"type": "float", "default": 38.09, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 24.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 47.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 5.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 17.4, "min": 8.7, "max": 34.8, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 8.6, "min": 3.4, "max": 21.5, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 12.2, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}, "filleted2": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008223 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 38.09, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 24.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 47.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 5.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 17.4, \"min\": 8.7, \"max\": 34.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 8.6, \"min\": 3.4, \"max\": 21.5, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 12.2, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n \"filleted2\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.10028713266929076)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad120_0820", "family": "compound", "tier": 1, "seed": 2468008224, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "22bc8b79b34cc5bc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 55500.0, "surface_area": 20900.0, "principal_moments": [43100000.0, 56899999.99999999, 58999999.99999999], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"base_w": {"type": "float", "default": 82.41, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 86.7, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 5.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 9.6, "min": 4.8, "max": 20.6, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 83.2, "min": 25.0, "max": 249.6, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008224 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 82.41, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 86.7, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 9.6, \"min\": 4.8, \"max\": 20.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 83.2, \"min\": 25.0, \"max\": 249.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad121_0821", "family": "threaded", "tier": 0, "seed": 2468008225, "symmetry": "none", "op_count": 1, "ir_hash": "2302f2705beb497d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6010.0, "surface_area": 2910.0, "principal_moments": [166000.0, 693000.0, 693000.0], "n_faces": 308, "n_edges": 842, "n_vertices": 536}, "params": {"major_d": {"type": "float", "default": 16.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.0, "min": 1.0, "max": 4.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 35.1, "min": 14.0, "max": 70.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008225 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 4.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 35.1, \"min\": 14.0, \"max\": 70.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad122_0822", "family": "revolved", "tier": 0, "seed": 2468008226, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "366453e138017bd5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 391000.0, "surface_area": 54600.0, "principal_moments": [287000000.0, 683000000.0, 683000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 70, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 152.4, "min": 45.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008226 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 70, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 152.4, \"min\": 45.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad123_0823", "family": "bracket", "tier": 1, "seed": 2468008227, "symmetry": "none", "op_count": 1, "ir_hash": "164fd70d6084e52a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17200.0, "surface_area": 8380.0, "principal_moments": [3590000.0, 8950000.0, 8990000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 54.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008227 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 54.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad125_0825", "family": "plate", "tier": 2, "seed": 2468008229, "symmetry": "none", "op_count": 3, "ir_hash": "a362b07387d4ecd0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41700.0, "surface_area": 12300.0, "principal_moments": [8150000.0, 28499999.999999996, 36000000.0], "n_faces": 22, "n_edges": 48, "n_vertices": 32}, "params": {"plate_w": {"type": "float", "default": 91.19, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 48.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 10.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "cb_d": {"type": "float", "default": 10.6, "min": 7.9, "max": 15.9, "step": 0.5, "group": "Holes", "label": "Counterbore diameter (mm)"}, "cb_depth": {"type": "float", "default": 4.2, "min": 2.1, "max": 8.4, "step": 0.5, "group": "Holes", "label": "Counterbore depth (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008229 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 91.19, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 48.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 10.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"cb_d\": {\"type\": 'float', \"default\": 10.6, \"min\": 7.9, \"max\": 15.9, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Counterbore diameter (mm)'},\n \"cb_depth\": {\"type\": 'float', \"default\": 4.2, \"min\": 2.1, \"max\": 8.4, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Counterbore depth (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cboreHole(p[\"hole_d\"], p[\"cb_d\"], p[\"cb_depth\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.046104478015714746)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad127_0827", "family": "block", "tier": 1, "seed": 2468008231, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "73fbc7caa195836a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 240000.0, "surface_area": 33500.0, "principal_moments": [105000000.0, 234000000.0, 270000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 60, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 41.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.2, "min": 2.0, "max": 12.2, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008231 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 60, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 41.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 12.2, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad128_0828", "family": "flanged", "tier": 2, "seed": 2468008232, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "2c4a7a74b4d5a5bd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 342000.0, "surface_area": 55600.0, "principal_moments": [433000000.0, 433000000.0, 735000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 74.79, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 48.2, "min": 14.5, "max": 120.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 27.5, "min": 2.0, "max": 52.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 154.2, "min": 97.2, "max": 224.4, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 11.4, "min": 3.4, "max": 19.3, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 46.3, "min": 30.8, "max": 69.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008232 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 74.79, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 48.2, \"min\": 14.5, \"max\": 120.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 27.5, \"min\": 2.0, \"max\": 52.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 154.2, \"min\": 97.2, \"max\": 224.4, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 11.4, \"min\": 3.4, \"max\": 19.3, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 46.3, \"min\": 30.8, \"max\": 69.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad129_0829", "family": "flanged", "tier": 1, "seed": 2468008233, "symmetry": "radial", "op_count": 2, "ir_hash": "467c3c8cd7da2f83", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22300.0, "surface_area": 9210.0, "principal_moments": [4670000.0, 4950000.0, 4950000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 26.29, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 33.9, "min": 10.2, "max": 84.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 9.0, "min": 2.0, "max": 18.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 57.5, "min": 34.2, "max": 78.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.1, "min": 0.9, "max": 13.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 17.2, "min": 11.5, "max": 25.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008233 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 26.29, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 33.9, \"min\": 10.2, \"max\": 84.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 9.0, \"min\": 2.0, \"max\": 18.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 57.5, \"min\": 34.2, \"max\": 78.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.1, \"min\": 0.9, \"max\": 13.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 17.2, \"min\": 11.5, \"max\": 25.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad12a_0830", "family": "bracket", "tier": 1, "seed": 2468008234, "symmetry": "none", "op_count": 1, "ir_hash": "2ac1e7e6ff7c6eed", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 70200.0, "surface_area": 31200.0, "principal_moments": [65599999.99999999, 116000000.0, 139000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 89.02, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 77.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 60.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008234 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 89.02, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 77.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 60.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad12b_0831", "family": "block", "tier": 2, "seed": 2468008235, "symmetry": "radial", "op_count": 3, "ir_hash": "96c8f1fef5e7184a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 115000.0, "surface_area": 20400.0, "principal_moments": [44500000.0, 56299999.99999999, 83100000.0], "n_faces": 28, "n_edges": 78, "n_vertices": 52}, "params": {"block_w": {"type": "float", "default": 59.96, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 31.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 70.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 18.0, "min": 12.0, "max": 27.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008235 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 59.96, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 31.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 70.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 18.0, \"min\": 12.0, \"max\": 27.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.10213499602850429)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad12c_0832", "family": "bracket", "tier": 3, "seed": 2468008236, "symmetry": "none", "op_count": 1, "ir_hash": "ae581a58333dc849", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19300.0, "surface_area": 14100.0, "principal_moments": [6230000.0, 16699999.999999998, 16800000.0], "n_faces": 17, "n_edges": 55, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 75, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 60.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45.66, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.1, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008236 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 60.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45.66, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.1, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad12d_0833", "family": "bracket", "tier": 1, "seed": 2468008237, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "86b15b36979889ed", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13000.0, "surface_area": 5110.0, "principal_moments": [1330000.0, 4410000.0, 4830000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 51.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 38.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20.26, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 8.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008237 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 51.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 38.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20.26, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 8.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad12f_0835", "family": "compound", "tier": 1, "seed": 2468008239, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "74ec63c1971949c3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 48100.0, "surface_area": 9350.0, "principal_moments": [8900000.0, 11799999.999999998, 13599999.999999998], "n_faces": 14, "n_edges": 33, "n_vertices": 21}, "params": {"block_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 29.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 36.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 6.5, "min": 2.6, "max": 13.3, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 8.9, "min": 1.6, "max": 19.5, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 3.4, "min": 2.0, "max": 4.7, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008239 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 29.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 36.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 6.5, \"min\": 2.6, \"max\": 13.3, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 8.9, \"min\": 1.6, \"max\": 19.5, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 3.4, \"min\": 2.0, \"max\": 4.7, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad130_0836", "family": "block", "tier": 1, "seed": 2468008240, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "8b9561432d7832cb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 297000.0, "surface_area": 34500.0, "principal_moments": [180000000.0, 256000000.0, 274000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 63.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 57.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 7.7, "min": 2.0, "max": 16.9, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008240 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 63.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 57.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 7.7, \"min\": 2.0, \"max\": 16.9, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad132_0838", "family": "revolved", "tier": 1, "seed": 2468008242, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "0f43d05b36a842b4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1020.0, "surface_area": 877.0, "principal_moments": [8430.0, 55100.0, 55100.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 7.72, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 24.5, "min": 7.3, "max": 73.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 2.6, "min": 2.0, "max": 5.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008242 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 7.72, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 24.5, \"min\": 7.3, \"max\": 73.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 2.6, \"min\": 2.0, \"max\": 5.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad133_0839", "family": "enclosure", "tier": 2, "seed": 2468008243, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "5a77f15eb9f2f9f2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 57100.0, "surface_area": 41900.0, "principal_moments": [62699999.99999999, 65899999.99999999, 98099999.99999999], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 82.39, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 79.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 50.5, "min": 20.2, "max": 101.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.7, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008243 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 82.39, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 79.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 50.5, \"min\": 20.2, \"max\": 101.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.7, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.11548575247404241)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad134_0840", "family": "profiled", "tier": 0, "seed": 2468008244, "symmetry": "none", "op_count": 1, "ir_hash": "cdb19d0b06d6c055", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 77500.0, "surface_area": 13100.0, "principal_moments": [7270000.0, 117000000.0, 117000000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"circ_r": {"type": "float", "default": 15, "min": 7.5, "max": 30.0, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 132.6, "min": 39.8, "max": 397.8, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008244 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 15, \"min\": 7.5, \"max\": 30.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 132.6, \"min\": 39.8, \"max\": 397.8, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad135_0841", "family": "block", "tier": 2, "seed": 2468008245, "symmetry": "none", "op_count": 3, "ir_hash": "eccaa69ee5e9120e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 102000.0, "surface_area": 20100.0, "principal_moments": [26899999.999999996, 65699999.99999999, 81700000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 25.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 84.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.2, "min": 2.0, "max": 2.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008245 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 25.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 84.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 2.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 9.4\n _ssy = 10.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.050682931710571505)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad136_0842", "family": "bracket", "tier": 2, "seed": 2468008246, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "8bb57bedaba76838", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 66200.0, "surface_area": 19300.0, "principal_moments": [27199999.999999996, 70400000.0, 72400000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 75, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 83.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 11.5, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008246 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 83.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 11.5, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad137_0843", "family": "bracket", "tier": 3, "seed": 2468008247, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "8499a82e75140d0c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10000.0, "surface_area": 5970.0, "principal_moments": [1350000.0, 2370000.0, 3170000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 29.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.2, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008247 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 29.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad138_0844", "family": "gear", "tier": 1, "seed": 2468008248, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "0bbb30342e54b409", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 90800.0, "surface_area": 20700.0, "principal_moments": [46399999.99999999, 46399999.99999999, 88900000.0], "n_faces": 177, "n_edges": 525, "n_vertices": 350}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 29, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 15.9, "min": 6.4, "max": 39.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 14.8, "min": 2.0, "max": 47.7, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008248 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 29, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 15.9, \"min\": 6.4, \"max\": 39.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 14.8, \"min\": 2.0, \"max\": 47.7, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad139_0845", "family": "ribbed", "tier": 3, "seed": 2468008249, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "125a51294839f1d4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19100.0, "surface_area": 10400.0, "principal_moments": [3450000.0, 7250000.0, 9190000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 34.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.3, "min": 6.5, "max": 32.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.8, "min": 1.0, "max": 9.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008249 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 34.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.3, \"min\": 6.5, \"max\": 32.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.8, \"min\": 1.0, \"max\": 9.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad13a_0846", "family": "compound", "tier": 1, "seed": 2468008250, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "21a0e270bd03a3f8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 36600.0, "surface_area": 8360.0, "principal_moments": [5930000.0, 8520000.0, 8520000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 36.36, "min": 18.2, "max": 65.4, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 33.7, "min": 13.5, "max": 67.4, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 17.5, "min": 8.8, "max": 32.7, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 19.8, "min": 5.9, "max": 49.5, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 8.7, "min": 2.0, "max": 12.6, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008250 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 36.36, \"min\": 18.2, \"max\": 65.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 33.7, \"min\": 13.5, \"max\": 67.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 17.5, \"min\": 8.8, \"max\": 32.7, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 19.8, \"min\": 5.9, \"max\": 49.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 8.7, \"min\": 2.0, \"max\": 12.6, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad13b_0847", "family": "bracket", "tier": 3, "seed": 2468008251, "symmetry": "none", "op_count": 1, "ir_hash": "47be9283836d999f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15300.0, "surface_area": 11000.0, "principal_moments": [2980000.0, 9880000.0, 11000000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 39.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40.84, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 41.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 4.3, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008251 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 39.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40.84, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 41.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.3, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad13c_0848", "family": "bracket", "tier": 2, "seed": 2468008252, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "f0f26420851e8927", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13100.0, "surface_area": 10100.0, "principal_moments": [4970000.0, 15999999.999999998, 20100000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 84.23, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 59.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20.15, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 8.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.0, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008252 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 84.23, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 59.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20.15, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 8.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad13d_0849", "family": "flanged", "tier": 2, "seed": 2468008253, "symmetry": "none", "op_count": 2, "ir_hash": "76813947a38f30f7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41800.0, "surface_area": 14600.0, "principal_moments": [14599999.999999998, 14599999.999999998, 18800000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 31.71, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 36.8, "min": 11.0, "max": 92.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 14.1, "min": 2.0, "max": 22.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 74.3, "min": 41.2, "max": 95.1, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.4, "min": 1.6, "max": 14.7, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 22.3, "min": 14.9, "max": 33.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008253 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 31.71, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 36.8, \"min\": 11.0, \"max\": 92.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 14.1, \"min\": 2.0, \"max\": 22.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 74.3, \"min\": 41.2, \"max\": 95.1, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.4, \"min\": 1.6, \"max\": 14.7, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 22.3, \"min\": 14.9, \"max\": 33.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad13e_0850", "family": "flanged", "tier": 1, "seed": 2468008254, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3e5b40d1892daeb9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 56200.0, "surface_area": 17600.0, "principal_moments": [20900000.0, 20900000.0, 26899999.999999996], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 40, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 36.4, "min": 10.9, "max": 91.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 14.6, "min": 2.0, "max": 28.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 83.9, "min": 52.0, "max": 120.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.9, "min": 1.2, "max": 14.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 25.2, "min": 16.8, "max": 37.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008254 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 36.4, \"min\": 10.9, \"max\": 91.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 14.6, \"min\": 2.0, \"max\": 28.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 83.9, \"min\": 52.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.9, \"min\": 1.2, \"max\": 14.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 25.2, \"min\": 16.8, \"max\": 37.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad13f_0851", "family": "revolved", "tier": 0, "seed": 2468008255, "symmetry": "none", "op_count": 1, "ir_hash": "6908aa6fd58f7f07", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 40500.0, "surface_area": 9970.0, "principal_moments": [10400000.0, 10400000.0, 17200000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 53.21, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 27.3, "min": 8.2, "max": 81.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008255 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 53.21, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 27.3, \"min\": 8.2, \"max\": 81.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad140_0852", "family": "revolved", "tier": 1, "seed": 2468008256, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "e523b15e9353c0e6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 530000.0, "surface_area": 77000.0, "principal_moments": [336000000.0, 1980000000.0, 1980000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 65, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 239.8, "min": 71.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008256 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 239.8, \"min\": 71.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad141_0853", "family": "revolved", "tier": 2, "seed": 2468008257, "symmetry": "none", "op_count": 1, "ir_hash": "ae7cb1a6f1117692", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 910.0, "surface_area": 809.0, "principal_moments": [19900.0, 19900.0, 25200.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 13.04, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 9.8, "min": 2.9, "max": 29.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 7.2, "min": 2.0, "max": 9.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008257 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 13.04, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 9.8, \"min\": 2.9, \"max\": 29.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 7.2, \"min\": 2.0, \"max\": 9.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad142_0854", "family": "plate", "tier": 2, "seed": 2468008258, "symmetry": "radial", "op_count": 3, "ir_hash": "94fcbc3c1b0592b8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7100.0, "surface_area": 5940.0, "principal_moments": [1140000.0, 2240000.0, 3370000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 43.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 18.0, "min": 12.0, "max": 27.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008258 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 43.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 18.0, \"min\": 12.0, \"max\": 27.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.04587485619244726)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad143_0855", "family": "flanged", "tier": 2, "seed": 2468008259, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "787e108deddc66f9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 186000.0, "surface_area": 37800.0, "principal_moments": [161000000.0, 161000000.0, 239000000.0], "n_faces": 26, "n_edges": 57, "n_vertices": 34}, "params": {"outer_d": {"type": "float", "default": 60, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 50.3, "min": 15.1, "max": 125.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 29.3, "min": 2.0, "max": 42.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 119.6, "min": 78.0, "max": 180.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.8, "min": 2.9, "max": 20.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 35.9, "min": 23.9, "max": 53.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008259 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 50.3, \"min\": 15.1, \"max\": 125.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 29.3, \"min\": 2.0, \"max\": 42.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 119.6, \"min\": 78.0, \"max\": 180.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.8, \"min\": 2.9, \"max\": 20.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 35.9, \"min\": 23.9, \"max\": 53.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"head_sides\"], p[\"head_r\"] * 2).extrude(p[\"head_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad145_0857", "family": "ribbed", "tier": 3, "seed": 2468008261, "symmetry": "none", "op_count": 2, "ir_hash": "c0e4aa09bcfec901", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22200.0, "surface_area": 14500.0, "principal_moments": [7040000.0, 17000000.0, 23699999.999999996], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 91.33, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 54.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 6.8, "min": 2.7, "max": 13.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.9, "min": 1.0, "max": 12.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008261 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 91.33, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 54.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 6.8, \"min\": 2.7, \"max\": 13.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.9, \"min\": 1.0, \"max\": 12.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad146_0858", "family": "compound", "tier": 1, "seed": 2468008262, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "29abc9e98d1fdd61", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 53900.0, "surface_area": 8850.0, "principal_moments": [6400000.0, 26599999.999999996, 26599999.999999996], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 32.39, "min": 16.2, "max": 58.3, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 53.5, "min": 21.4, "max": 107.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 22.4, "min": 11.2, "max": 29.2, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 25.0, "min": 7.5, "max": 62.5, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008262 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 32.39, \"min\": 16.2, \"max\": 58.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 53.5, \"min\": 21.4, \"max\": 107.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 22.4, \"min\": 11.2, \"max\": 29.2, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 7.5, \"max\": 62.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad147_0859", "family": "block", "tier": 2, "seed": 2468008263, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "fc8ed87ce904c36c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 622000.0, "surface_area": 52700.0, "principal_moments": [675000000.0, 775000000.0, 937000000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"block_w": {"type": "float", "default": 90, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 70.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008263 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 90, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 70.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 16.9\n _ssy = 13.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.07234914631088285)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad149_0861", "family": "threaded", "tier": 2, "seed": 2468008265, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "28c7285794ac5df6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16300.0, "surface_area": 7920.0, "principal_moments": [1200000.0, 5470000.0, 5470000.0], "n_faces": 411, "n_edges": 1157, "n_vertices": 748}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 60.0, "min": 24.0, "max": 120.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008265 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 60.0, \"min\": 24.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad14b_0863", "family": "compound", "tier": 2, "seed": 2468008267, "symmetry": "mirror_xy", "op_count": 5, "ir_hash": "3e712932a6348cfb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 498000.0, "surface_area": 49900.0, "principal_moments": [470000000.0, 539000000.0, 683000000.0], "n_faces": 36, "n_edges": 94, "n_vertices": 61}, "params": {"block_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 92.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 63.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 10.7, "min": 5.3, "max": 14.2, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 20.9, "min": 4.6, "max": 55.6, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 7.8, "min": 2.0, "max": 13.3, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008267 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 92.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 63.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 10.7, \"min\": 5.3, \"max\": 14.2, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 20.9, \"min\": 4.6, \"max\": 55.6, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 7.8, \"min\": 2.0, \"max\": 13.3, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad14c_0864", "family": "threaded", "tier": 1, "seed": 2468008268, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "62b8aaa8129be7ad", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 64600.0, "surface_area": 16900.0, "principal_moments": [19000000.0, 28799999.999999996, 28799999.999999996], "n_faces": 316, "n_edges": 902, "n_vertices": 588}, "params": {"major_d": {"type": "float", "default": 24.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 3.0, "min": 1.5, "max": 6.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 60.0, "min": 24.0, "max": 120.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008268 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 24.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.5, \"max\": 6.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 60.0, \"min\": 24.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad14d_0865", "family": "bracket", "tier": 2, "seed": 2468008269, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "84bdb14a1c041a1f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41300.0, "surface_area": 13100.0, "principal_moments": [9990000.0, 40600000.0, 42600000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 56.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35.15, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 9.1, "min": 4.0, "max": 17.6, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008269 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 56.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35.15, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 9.1, \"min\": 4.0, \"max\": 17.6, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad14e_0866", "family": "bracket", "tier": 2, "seed": 2468008270, "symmetry": "none", "op_count": 1, "ir_hash": "edda3905ee36dc27", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20200.0, "surface_area": 14600.0, "principal_moments": [7140000.0, 16199999.999999998, 17000000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 60, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 69.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.0, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008270 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 60, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 69.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad14f_0867", "family": "bracket", "tier": 3, "seed": 2468008271, "symmetry": "none", "op_count": 1, "ir_hash": "ef228851dff12c30", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20400.0, "surface_area": 11400.0, "principal_moments": [5180000.0, 14399999.999999998, 14499999.999999998], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 69.29, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 52.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40.42, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.4, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008271 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 69.29, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 52.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40.42, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.4, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad150_0868", "family": "flanged", "tier": 3, "seed": 2468008272, "symmetry": "radial", "op_count": 3, "ir_hash": "6a22d48006528e51", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 293000.0, "surface_area": 59000.0, "principal_moments": [366000000.0, 366000000.0, 464000000.0], "n_faces": 18, "n_edges": 37, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 68.33, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 66.8, "min": 20.0, "max": 167.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 27.7, "min": 2.0, "max": 47.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 156.9, "min": 88.8, "max": 205.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.7, "min": 1.7, "max": 26.7, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 47.1, "min": 31.4, "max": 70.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008272 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 68.33, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 66.8, \"min\": 20.0, \"max\": 167.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 27.7, \"min\": 2.0, \"max\": 47.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 156.9, \"min\": 88.8, \"max\": 205.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.7, \"min\": 1.7, \"max\": 26.7, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 47.1, \"min\": 31.4, \"max\": 70.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad153_0871", "family": "revolved", "tier": 2, "seed": 2468008275, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "db3a7d36da5a5386", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 97800.0, "surface_area": 20600.0, "principal_moments": [16299999.999999998, 143000000.0, 143000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 33.91, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 128.7, "min": 38.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 13.5, "min": 2.0, "max": 23.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 1.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008275 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 33.91, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 128.7, \"min\": 38.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 13.5, \"min\": 2.0, \"max\": 23.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 1.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad156_0874", "family": "bracket", "tier": 1, "seed": 2468008278, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "c3392c4943185df5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12900.0, "surface_area": 6890.0, "principal_moments": [1540000.0, 9910000.0, 10600000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 46.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 41.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008278 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 46.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 41.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad157_0875", "family": "gear", "tier": 2, "seed": 2468008279, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "b4d1212533be1df9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 940.0, "surface_area": 1050.0, "principal_moments": [26200.0, 26200.0, 50900.0], "n_faces": 171, "n_edges": 507, "n_vertices": 338}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 21, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 3.0, "min": 1.2, "max": 7.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": -0.28, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.12, "min": 0.0, "max": 0.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 3.1, "min": 2.0, "max": 11.1, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008279 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 21, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.2, \"max\": 7.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.28, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.12, \"min\": 0.0, \"max\": 0.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 3.1, \"min\": 2.0, \"max\": 11.1, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad158_0876", "family": "gear", "tier": 1, "seed": 2468008280, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "6dbf5b879fee316f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7350.0, "surface_area": 3900.0, "principal_moments": [709000.0, 709000.0, 1360000.0], "n_faces": 231, "n_edges": 687, "n_vertices": 458}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 38, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.7, "min": 2.7, "max": 16.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 6.0, "min": 2.0, "max": 21.3, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008280 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 38, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.7, \"min\": 2.7, \"max\": 16.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 21.3, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad159_0877", "family": "bracket", "tier": 1, "seed": 2468008281, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "5059517a04e31b82", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20700.0, "surface_area": 6860.0, "principal_moments": [3290000.0, 3930000.0, 4890000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008281 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad15a_0878", "family": "revolved", "tier": 1, "seed": 2468008282, "symmetry": "none", "op_count": 2, "ir_hash": "c2fec8eb2743f674", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1630000.0, "surface_area": 116000.0, "principal_moments": [3030000000.0, 8930000000.0, 8930000000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 73.73, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 235.5, "min": 70.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 24.0, "min": 2.0, "max": 51.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 143.0, "min": 88.5, "max": 221.2, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 61.8, "min": 18.5, "max": 117.8, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.3, "min": 0.1, "max": 3.9, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008282 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 73.73, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 235.5, \"min\": 70.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 24.0, \"min\": 2.0, \"max\": 51.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 143.0, \"min\": 88.5, \"max\": 221.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 61.8, \"min\": 18.5, \"max\": 117.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.3, \"min\": 0.1, \"max\": 3.9, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad15c_0880", "family": "revolved", "tier": 0, "seed": 2468008284, "symmetry": "none", "op_count": 1, "ir_hash": "146a6c4a924402c9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 142000.0, "surface_area": 23000.0, "principal_moments": [79700000.0, 79700000.0, 120000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 48.3, "min": 14.5, "max": 144.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008284 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 48.3, \"min\": 14.5, \"max\": 144.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad15d_0881", "family": "bracket", "tier": 1, "seed": 2468008285, "symmetry": "none", "op_count": 1, "ir_hash": "b421fb4546183ed8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14300.0, "surface_area": 10600.0, "principal_moments": [3350000.0, 7310000.0, 9080000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 41.67, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 38.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 46.09, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 30.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008285 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 41.67, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 38.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 46.09, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 30.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad15e_0882", "family": "gear", "tier": 3, "seed": 2468008286, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "4ebccd7bc8fa340d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 82800.0, "surface_area": 32200.0, "principal_moments": [149000000.0, 149000000.0, 290000000.0], "n_faces": 165, "n_edges": 489, "n_vertices": 326}, "params": {"module": {"type": "float", "default": 4.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 27, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 24.5, "min": 9.8, "max": 61.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": 0.2, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.56, "min": 0.0, "max": 2.0, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008286 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 27, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 24.5, \"min\": 9.8, \"max\": 61.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.2, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.56, \"min\": 0.0, \"max\": 2.0, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurRingGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad160_0884", "family": "flanged", "tier": 2, "seed": 2468008288, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "4848bbc3f897abf2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 114000.0, "surface_area": 27300.0, "principal_moments": [70400000.0, 76000000.0, 76000000.0], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 50.81, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 59.8, "min": 17.9, "max": 149.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 25.9, "min": 2.0, "max": 35.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 90.0, "min": 66.1, "max": 152.4, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.1, "min": 1.8, "max": 23.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 27.0, "min": 18.0, "max": 40.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008288 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50.81, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 59.8, \"min\": 17.9, \"max\": 149.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 25.9, \"min\": 2.0, \"max\": 35.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 90.0, \"min\": 66.1, \"max\": 152.4, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.1, \"min\": 1.8, \"max\": 23.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 27.0, \"min\": 18.0, \"max\": 40.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad161_0885", "family": "revolved", "tier": 1, "seed": 2468008289, "symmetry": "none", "op_count": 2, "ir_hash": "f869617742c979a1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 71000.0, "surface_area": 14400.0, "principal_moments": [11899999.999999998, 50899999.99999999, 50899999.99999999], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 34.52, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 87.2, "min": 26.2, "max": 261.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 12.4, "min": 2.0, "max": 24.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.1, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008289 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 34.52, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 87.2, \"min\": 26.2, \"max\": 261.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 12.4, \"min\": 2.0, \"max\": 24.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.1, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad163_0887", "family": "revolved", "tier": 1, "seed": 2468008291, "symmetry": "radial", "op_count": 1, "ir_hash": "20840b29ac403dfa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 356000.0, "surface_area": 51400.0, "principal_moments": [335000000.0, 610000000.0, 610000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 122.2, "min": 36.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 43.8, "min": 2.0, "max": 52.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008291 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 122.2, \"min\": 36.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 43.8, \"min\": 2.0, \"max\": 52.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad164_0888", "family": "bracket", "tier": 3, "seed": 2468008292, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "dd00da0dec0977a4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12400.0, "surface_area": 7200.0, "principal_moments": [1910000.0, 5770000.0, 6530000.0], "n_faces": 17, "n_edges": 39, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 56.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25.17, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.9, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008292 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 56.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25.17, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad165_0889", "family": "revolved", "tier": 0, "seed": 2468008293, "symmetry": "none", "op_count": 1, "ir_hash": "c3fa4b4a1765875c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16800.0, "surface_area": 5900.0, "principal_moments": [2270000.0, 2410000.0, 2410000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 30, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 35.7, "min": 10.7, "max": 107.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008293 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 35.7, \"min\": 10.7, \"max\": 107.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad166_0890", "family": "revolved", "tier": 1, "seed": 2468008294, "symmetry": "radial", "op_count": 1, "ir_hash": "1aa1c02a4d3bc14e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 615000.0, "surface_area": 83000.0, "principal_moments": [505000000.0, 2200000000.0, 2200000000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 65.65, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 224.6, "min": 67.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 94.2, "min": 78.8, "max": 197.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 30.1, "min": 9.0, "max": 112.3, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008294 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65.65, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 224.6, \"min\": 67.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 94.2, \"min\": 78.8, \"max\": 197.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 30.1, \"min\": 9.0, \"max\": 112.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad167_0891", "family": "bracket", "tier": 1, "seed": 2468008295, "symmetry": "none", "op_count": 1, "ir_hash": "44889404551367b8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23800.0, "surface_area": 9780.0, "principal_moments": [6520000.0, 7250000.0, 7530000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 36.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 41.28, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008295 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 36.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 41.28, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad168_0892", "family": "compound", "tier": 1, "seed": 2468008296, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "88e2b472dce14082", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4480.0, "surface_area": 2280.0, "principal_moments": [134000.0, 424000.0, 424000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 16.01, "min": 8.0, "max": 28.8, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 18.4, "min": 7.4, "max": 36.8, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 10.2, "min": 5.1, "max": 14.4, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 15.9, "min": 4.8, "max": 39.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 4.4, "min": 2.0, "max": 7.3, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008296 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 16.01, \"min\": 8.0, \"max\": 28.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 18.4, \"min\": 7.4, \"max\": 36.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 10.2, \"min\": 5.1, \"max\": 14.4, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 15.9, \"min\": 4.8, \"max\": 39.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 4.4, \"min\": 2.0, \"max\": 7.3, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad169_0893", "family": "bracket", "tier": 2, "seed": 2468008297, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "9ddfc96bf039af80", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12100.0, "surface_area": 8960.0, "principal_moments": [3110000.0, 4170000.0, 6040000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 32.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.0, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008297 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 32.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad16a_0894", "family": "block", "tier": 1, "seed": 2468008298, "symmetry": "none", "op_count": 2, "ir_hash": "e00c31cd2bf5ba7a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 199000.0, "surface_area": 25400.0, "principal_moments": [94199999.99999999, 126000000.0, 155000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 44.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 61.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008298 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 44.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 61.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 18.8\n _ssy = 21.5\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad16b_0895", "family": "plate", "tier": 3, "seed": 2468008299, "symmetry": "radial", "op_count": 4, "ir_hash": "e6b5fb290f839e42", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 43100.0, "surface_area": 16800.0, "principal_moments": [24699999.999999996, 25399999.999999996, 49799999.99999999], "n_faces": 19, "n_edges": 48, "n_vertices": 32}, "params": {"plate_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 83.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 25.5, "min": 17.0, "max": 38.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "boss_d": {"type": "float", "default": 20.0, "min": 10.0, "max": 40.0, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 4.2, "min": 1.7, "max": 10.5, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 14.0, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008299 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 83.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 25.5, \"min\": 17.0, \"max\": 38.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"boss_d\": {\"type\": 'float', \"default\": 20.0, \"min\": 10.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 4.2, \"min\": 1.7, \"max\": 10.5, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 14.0, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08074496695537159)\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad16c_0896", "family": "compound", "tier": 1, "seed": 2468008300, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "c2f319d92e5d66a0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 59400.0, "surface_area": 20500.0, "principal_moments": [42500000.0, 74600000.0, 83300000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"base_w": {"type": "float", "default": 90, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 72.9, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 6.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 16.4, "min": 6.6, "max": 36.5, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 101.2, "min": 30.4, "max": 303.6, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008300 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 90, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 72.9, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 16.4, \"min\": 6.6, \"max\": 36.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 101.2, \"min\": 30.4, \"max\": 303.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad16d_0897", "family": "compound", "tier": 1, "seed": 2468008301, "symmetry": "none", "op_count": 3, "ir_hash": "1229da8fe7290281", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 103000.0, "surface_area": 14800.0, "principal_moments": [35800000.0, 36000000.0, 51799999.99999999], "n_faces": 28, "n_edges": 76, "n_vertices": 50}, "params": {"block_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 34.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 54.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 3.5, "min": 1.8, "max": 7.7, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 9.0, "min": 1.6, "max": 19.4, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 2.8, "min": 2.0, "max": 4.7, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008301 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 34.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 54.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 3.5, \"min\": 1.8, \"max\": 7.7, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 9.0, \"min\": 1.6, \"max\": 19.4, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 2.8, \"min\": 2.0, \"max\": 4.7, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad16f_0899", "family": "compound", "tier": 1, "seed": 2468008303, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "62d1d6b6487da1d2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20600.0, "surface_area": 5140.0, "principal_moments": [2200000.0, 2930000.0, 3060000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 33.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 24.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 7.3, "min": 2.9, "max": 17.2, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 10.6, "min": 2.2, "max": 29.2, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 3.4, "min": 2.0, "max": 5.3, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008303 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 33.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 24.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 7.3, \"min\": 2.9, \"max\": 17.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 10.6, \"min\": 2.2, \"max\": 29.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 3.4, \"min\": 2.0, \"max\": 5.3, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad174_0904", "family": "flanged", "tier": 2, "seed": 2468008308, "symmetry": "none", "op_count": 2, "ir_hash": "21dfccd5b7cfd09e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 733000.0, "surface_area": 95900.0, "principal_moments": [1550000000.0, 1760000000.0, 1760000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 91.03, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 115.5, "min": 34.6, "max": 288.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 46.1, "min": 2.0, "max": 63.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 171.3, "min": 118.3, "max": 273.1, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 10.6, "min": 3.2, "max": 46.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 51.4, "min": 34.3, "max": 77.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008308 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 91.03, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 115.5, \"min\": 34.6, \"max\": 288.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 46.1, \"min\": 2.0, \"max\": 63.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 171.3, \"min\": 118.3, \"max\": 273.1, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 10.6, \"min\": 3.2, \"max\": 46.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 51.4, \"min\": 34.3, \"max\": 77.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad175_0905", "family": "block", "tier": 1, "seed": 2468008309, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "661eb934abcd6379", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20400.0, "surface_area": 8420.0, "principal_moments": [2000000.0, 3380000.0, 4110000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 30, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 20.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 40.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008309 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 20.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 40.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad176_0906", "family": "compound", "tier": 1, "seed": 2468008310, "symmetry": "none", "op_count": 3, "ir_hash": "ccade8246d3b2a91", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 66900.0, "surface_area": 13800.0, "principal_moments": [17500000.0, 34000000.0, 37200000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"base_w": {"type": "float", "default": 72.16, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 44.7, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 20.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 10.6, "min": 4.2, "max": 22.4, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 46.6, "min": 14.0, "max": 139.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 10.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008310 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 72.16, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 44.7, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 20.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 10.6, \"min\": 4.2, \"max\": 22.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 46.6, \"min\": 14.0, \"max\": 139.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 10.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad177_0907", "family": "block", "tier": 1, "seed": 2468008311, "symmetry": "radial", "op_count": 2, "ir_hash": "bdbfa5296e184aa6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 375000.0, "surface_area": 51200.0, "principal_moments": [343000000.0, 370000000.0, 597000000.0], "n_faces": 20, "n_edges": 54, "n_vertices": 36}, "params": {"block_w": {"type": "float", "default": 95, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 43.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 28.5, "min": 19.0, "max": 42.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008311 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 95, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 43.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 28.5, \"min\": 19.0, \"max\": 42.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad178_0908", "family": "block", "tier": 1, "seed": 2468008312, "symmetry": "radial", "op_count": 2, "ir_hash": "754b03740b700796", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8240.0, "surface_area": 6630.0, "principal_moments": [717000.0, 977000.0, 1190000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"block_w": {"type": "float", "default": 28.49, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 19.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 26.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 8.5, "min": 5.7, "max": 12.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008312 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 28.49, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 19.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 26.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 8.5, \"min\": 5.7, \"max\": 12.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad179_0909", "family": "block", "tier": 2, "seed": 2468008313, "symmetry": "none", "op_count": 3, "ir_hash": "179123352e929283", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 202000.0, "surface_area": 30900.0, "principal_moments": [95599999.99999999, 184000000.0, 250000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 30.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 9.6, "min": 4.8, "max": 19.2, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 5.9, "min": 2.4, "max": 14.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008313 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 30.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 9.6, \"min\": 4.8, \"max\": 19.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 5.9, \"min\": 2.4, \"max\": 14.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad17a_0910", "family": "gear", "tier": 1, "seed": 2468008314, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "794c348c673680e2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25900.0, "surface_area": 8610.0, "principal_moments": [4960000.0, 4960000.0, 9200000.0], "n_faces": 159, "n_edges": 471, "n_vertices": 314}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 26, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 12.9, "min": 5.2, "max": 32.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 10.8, "min": 2.0, "max": 28.2, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008314 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 26, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 12.9, \"min\": 5.2, \"max\": 32.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 10.8, \"min\": 2.0, \"max\": 28.2, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad17b_0911", "family": "plate", "tier": 3, "seed": 2468008315, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "953f82e1f1690781", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11500.0, "surface_area": 5160.0, "principal_moments": [1220000.0, 1460000.0, 2420000.0], "n_faces": 19, "n_edges": 48, "n_vertices": 32}, "params": {"plate_w": {"type": "float", "default": 36.45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 33.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 7.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "pocket_w": {"type": "float", "default": 15.5, "min": 7.8, "max": 29.2, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 20.0, "min": 10.0, "max": 26.8, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 5.2, "min": 2.1, "max": 10.2, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008315 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 36.45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 33.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 7.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"pocket_w\": {\"type\": 'float', \"default\": 15.5, \"min\": 7.8, \"max\": 29.2, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 20.0, \"min\": 10.0, \"max\": 26.8, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.1, \"max\": 10.2, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.05336874772309047)\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad17c_0912", "family": "flanged", "tier": 1, "seed": 2468008316, "symmetry": "none", "op_count": 2, "ir_hash": "4ca60ed6c828095b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13800.0, "surface_area": 6320.0, "principal_moments": [2110000.0, 2190000.0, 2190000.0], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 21.87, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 28.9, "min": 8.7, "max": 72.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 6.8, "min": 2.0, "max": 15.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 46.3, "min": 28.4, "max": 65.6, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.9, "min": 1.2, "max": 11.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 13.9, "min": 9.3, "max": 20.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008316 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 21.87, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 28.9, \"min\": 8.7, \"max\": 72.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 6.8, \"min\": 2.0, \"max\": 15.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 46.3, \"min\": 28.4, \"max\": 65.6, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.9, \"min\": 1.2, \"max\": 11.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 13.9, \"min\": 9.3, \"max\": 20.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad17d_0913", "family": "ribbed", "tier": 2, "seed": 2468008317, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "8f13cb4be4992c84", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33900.0, "surface_area": 21100.0, "principal_moments": [12099999.999999998, 21500000.0, 31399999.999999996], "n_faces": 54, "n_edges": 148, "n_vertices": 92}, "params": {"base_w": {"type": "float", "default": 86.43, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 47.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 15.3, "min": 6.1, "max": 30.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.2, "min": 1.0, "max": 10.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 10.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008317 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 86.43, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 47.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 15.3, \"min\": 6.1, \"max\": 30.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.2, \"min\": 1.0, \"max\": 10.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 10.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad17e_0914", "family": "plate", "tier": 1, "seed": 2468008318, "symmetry": "none", "op_count": 2, "ir_hash": "0e4dc6a7e3591033", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22800.0, "surface_area": 11100.0, "principal_moments": [4370000.0, 18000000.0, 22300000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 98.24, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 47.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008318 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 98.24, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 47.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(78.6, 12.7, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad17f_0915", "family": "block", "tier": 1, "seed": 2468008319, "symmetry": "none", "op_count": 2, "ir_hash": "2359ee3106872693", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 520000.0, "surface_area": 51900.0, "principal_moments": [517000000.0, 574000000.0, 665000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 71.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 91.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008319 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 71.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 91.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad180_0916", "family": "threaded", "tier": 0, "seed": 2468008320, "symmetry": "none", "op_count": 1, "ir_hash": "46f4ac0c7e4786df", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 120.0, "surface_area": 232.0, "principal_moments": [196.0, 1520.0, 1520.0], "n_faces": 180, "n_edges": 458, "n_vertices": 280}, "params": {"major_d": {"type": "float", "default": 4.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.7, "min": 0.35, "max": 1.4, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 12.0, "min": 5.0, "max": 24.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008320 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.35, \"max\": 1.4, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 12.0, \"min\": 5.0, \"max\": 24.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad181_0917", "family": "enclosure", "tier": 1, "seed": 2468008321, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "43119b584d7082d3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 96200.0, "surface_area": 47100.0, "principal_moments": [74500000.0, 153000000.0, 164000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 105, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 47.3, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 66.5, "min": 26.6, "max": 133.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008321 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 105, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 47.3, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 66.5, \"min\": 26.6, \"max\": 133.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad182_0918", "family": "revolved", "tier": 2, "seed": 2468008322, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "c86b9c76abecdc49", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 227000.0, "surface_area": 38500.0, "principal_moments": [67600000.0, 614000000.0, 614000000.0], "n_faces": 8, "n_edges": 12, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 45.26, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 174.4, "min": 52.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 18.9, "min": 2.0, "max": 31.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 3.29, "min": 1.32, "max": 9.87, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 10.83, "min": 4.33, "max": 32.49, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 124.1, "min": 26.2, "max": 148.2, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008322 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45.26, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 174.4, \"min\": 52.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 18.9, \"min\": 2.0, \"max\": 31.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 3.29, \"min\": 1.32, \"max\": 9.87, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 10.83, \"min\": 4.33, \"max\": 32.49, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 124.1, \"min\": 26.2, \"max\": 148.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad183_0919", "family": "revolved", "tier": 1, "seed": 2468008323, "symmetry": "none", "op_count": 2, "ir_hash": "441a738c7df76415", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32500.0, "surface_area": 10400.0, "principal_moments": [3750000.0, 17100000.0, 17100000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 27.15, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 75.0, "min": 22.5, "max": 225.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 13.6, "min": 2.0, "max": 19.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 1.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008323 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 27.15, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 75.0, \"min\": 22.5, \"max\": 225.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 13.6, \"min\": 2.0, \"max\": 19.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 1.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rarray(60.0, 10.1, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad185_0921", "family": "flanged", "tier": 1, "seed": 2468008325, "symmetry": "radial", "op_count": 2, "ir_hash": "7c0e2c1f967601a1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 62500.0, "surface_area": 19200.0, "principal_moments": [27399999.999999996, 27399999.999999996, 38900000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 36.98, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 37.1, "min": 11.1, "max": 92.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 12.8, "min": 2.0, "max": 25.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 88.5, "min": 48.1, "max": 110.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.7, "min": 1.7, "max": 14.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 26.6, "min": 17.7, "max": 39.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008325 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 36.98, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 37.1, \"min\": 11.1, \"max\": 92.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 12.8, \"min\": 2.0, \"max\": 25.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 88.5, \"min\": 48.1, \"max\": 110.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.7, \"min\": 1.7, \"max\": 14.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 26.6, \"min\": 17.7, \"max\": 39.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad186_0922", "family": "plate", "tier": 3, "seed": 2468008326, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "15fad961533081c3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4630.0, "surface_area": 3160.0, "principal_moments": [347000.0, 373000.0, 584000.0], "n_faces": 44, "n_edges": 123, "n_vertices": 82}, "params": {"plate_w": {"type": "float", "default": 35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 33.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.8, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "boss_d": {"type": "float", "default": 13.6, "min": 6.8, "max": 27.2, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 10.9, "min": 4.4, "max": 27.2, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008326 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 33.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.8, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"boss_d\": {\"type\": 'float', \"default\": 13.6, \"min\": 6.8, \"max\": 27.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 10.9, \"min\": 4.4, \"max\": 27.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.06395767196958155)\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad187_0923", "family": "bracket", "tier": 2, "seed": 2468008327, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "4bc9d36a1086cb1e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18800.0, "surface_area": 8910.0, "principal_moments": [4260000.0, 6500000.0, 8070000.0], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 42.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 43.88, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.9, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008327 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 42.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 43.88, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.9, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad188_0924", "family": "revolved", "tier": 1, "seed": 2468008328, "symmetry": "none", "op_count": 2, "ir_hash": "df914557e31a6574", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32300.0, "surface_area": 9980.0, "principal_moments": [4660000.0, 10200000.0, 10200000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 31.03, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 64.2, "min": 19.3, "max": 192.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.1, "min": 0.1, "max": 3.3, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008328 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 31.03, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 64.2, \"min\": 19.3, \"max\": 192.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.1, \"min\": 0.1, \"max\": 3.3, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad18b_0927", "family": "plate", "tier": 2, "seed": 2468008331, "symmetry": "radial", "op_count": 3, "ir_hash": "952dfc1d76d0f8eb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 40300.0, "surface_area": 11300.0, "principal_moments": [9750000.0, 22200000.0, 31299999.999999996], "n_faces": 20, "n_edges": 54, "n_vertices": 36}, "params": {"plate_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 53.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.0, "min": 16.0, "max": 36.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008331 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 53.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.0, \"min\": 16.0, \"max\": 36.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09483475032074185)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad18c_0928", "family": "bracket", "tier": 2, "seed": 2468008332, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "21e40ae2556bb3d6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10000.0, "surface_area": 4140.0, "principal_moments": [825000.0, 2450000.0, 2860000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 40, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 43.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 15.9, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 6.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 7.1, "min": 4.0, "max": 8.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008332 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 40, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 43.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 15.9, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 6.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 7.1, \"min\": 4.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad18d_0929", "family": "block", "tier": 1, "seed": 2468008333, "symmetry": "none", "op_count": 2, "ir_hash": "f82e685a0ca3429b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38500.0, "surface_area": 10700.0, "principal_moments": [4810000.0, 14799999.999999998, 17600000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 17.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 65.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008333 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 17.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 65.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad18e_0930", "family": "flanged", "tier": 3, "seed": 2468008334, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "77903cb785db7a37", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 85000.0, "surface_area": 22500.0, "principal_moments": [41000000.0, 45400000.0, 45400000.0], "n_faces": 34, "n_edges": 77, "n_vertices": 46}, "params": {"outer_d": {"type": "float", "default": 45, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 54.1, "min": 16.2, "max": 135.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 20.2, "min": 2.0, "max": 31.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 86.2, "min": 58.5, "max": 135.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.3, "min": 1.3, "max": 21.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 25.9, "min": 17.2, "max": 38.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008334 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 54.1, \"min\": 16.2, \"max\": 135.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 20.2, \"min\": 2.0, \"max\": 31.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 86.2, \"min\": 58.5, \"max\": 135.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.3, \"min\": 1.3, \"max\": 21.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 25.9, \"min\": 17.2, \"max\": 38.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad193_0935", "family": "enclosure", "tier": 2, "seed": 2468008339, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "5ecf4c29fc736722", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10600.0, "surface_area": 8370.0, "principal_moments": [1860000.0, 2620000.0, 3280000.0], "n_faces": 19, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 40, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 30.4, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 24.0, "min": 9.6, "max": 48.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008339 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 40, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 30.4, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 24.0, \"min\": 9.6, \"max\": 48.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad194_0936", "family": "bracket", "tier": 2, "seed": 2468008340, "symmetry": "none", "op_count": 1, "ir_hash": "53a4eaa1ed73049e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37400.0, "surface_area": 16700.0, "principal_moments": [14099999.999999998, 43400000.0, 49499999.99999999], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 83.98, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 38.39, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 6.0, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008340 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 83.98, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 38.39, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad195_0937", "family": "threaded", "tier": 3, "seed": 2468008341, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "0a51c7028e0c2108", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2830.0, "surface_area": 2120.0, "principal_moments": [29800.0, 462000.0, 462000.0], "n_faces": 300, "n_edges": 770, "n_vertices": 472}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 43.7, "min": 17.5, "max": 87.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008341 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 43.7, \"min\": 17.5, \"max\": 87.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad196_0938", "family": "revolved", "tier": 1, "seed": 2468008342, "symmetry": "radial", "op_count": 1, "ir_hash": "0e7d6214e87d7fd8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4680.0, "surface_area": 2720.0, "principal_moments": [209000.0, 356000.0, 356000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 11.96, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 33.4, "min": 10.0, "max": 100.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 20.7, "min": 14.4, "max": 35.9, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.7, "min": 2.9, "max": 16.7, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008342 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 11.96, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 33.4, \"min\": 10.0, \"max\": 100.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 20.7, \"min\": 14.4, \"max\": 35.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.7, \"min\": 2.9, \"max\": 16.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad197_0939", "family": "compound", "tier": 2, "seed": 2468008343, "symmetry": "none", "op_count": 4, "ir_hash": "87570871f88217fb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 52000.0, "surface_area": 11600.0, "principal_moments": [11699999.999999998, 13299999.999999998, 20100000.0], "n_faces": 22, "n_edges": 66, "n_vertices": 44}, "params": {"block_w": {"type": "float", "default": 45, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 23.5, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 50.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 21.8, "min": 8.7, "max": 34.9, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 36.2, "min": 14.5, "max": 57.9, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.8, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 29.7, "min": 14.8, "max": 36.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 10.9, "min": 5.5, "max": 18.8, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 17.0, "min": 6.8, "max": 42.5, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008343 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 23.5, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 50.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 21.8, \"min\": 8.7, \"max\": 34.9, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 36.2, \"min\": 14.5, \"max\": 57.9, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.8, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 29.7, \"min\": 14.8, \"max\": 36.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 10.9, \"min\": 5.5, \"max\": 18.8, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 17.0, \"min\": 6.8, \"max\": 42.5, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .rect(p[\"tab_a\"], p[\"tab_b\"]).extrude(p[\"tab_t\"])\n )\n result = (\n result.faces('>X').workplane()\n .rect(p[\"tab_a\"] * 0.6, p[\"tab_b\"] * 0.6, forConstruction=True)\n .vertices().hole(p[\"tab_hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad198_0940", "family": "flanged", "tier": 2, "seed": 2468008344, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "ed022f447a02eb05", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 101000.0, "surface_area": 25600.0, "principal_moments": [59699999.99999999, 59699999.99999999, 61499999.99999999], "n_faces": 18, "n_edges": 37, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 45.25, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 53.0, "min": 15.9, "max": 132.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.5, "min": 2.0, "max": 31.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 98.0, "min": 58.8, "max": 135.8, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.7, "min": 1.4, "max": 21.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 29.4, "min": 19.6, "max": 44.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008344 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45.25, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 53.0, \"min\": 15.9, \"max\": 132.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.5, \"min\": 2.0, \"max\": 31.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 98.0, \"min\": 58.8, \"max\": 135.8, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.7, \"min\": 1.4, \"max\": 21.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 29.4, \"min\": 19.6, \"max\": 44.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad19a_0942", "family": "compound", "tier": 1, "seed": 2468008346, "symmetry": "none", "op_count": 3, "ir_hash": "c99caed2442d5511", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 210000.0, "surface_area": 27000.0, "principal_moments": [121000000.0, 125000000.0, 144000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 64.63, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 61.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 53.7, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 38.1, "min": 15.2, "max": 61.0, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 37.1, "min": 14.8, "max": 59.4, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 8.2, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008346 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 64.63, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 61.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 53.7, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 38.1, \"min\": 15.2, \"max\": 61.0, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 37.1, \"min\": 14.8, \"max\": 59.4, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 8.2, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rarray(12.9, 23.5, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad19e_0946", "family": "threaded", "tier": 1, "seed": 2468008350, "symmetry": "none", "op_count": 1, "ir_hash": "e4426d5e4406af2f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 844.0, "surface_area": 999.0, "principal_moments": [10700.0, 27500.0, 27500.0], "n_faces": 183, "n_edges": 497, "n_vertices": 316}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 17.8, "min": 7.1, "max": 35.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008350 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 17.8, \"min\": 7.1, \"max\": 35.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad19f_0947", "family": "revolved", "tier": 0, "seed": 2468008351, "symmetry": "none", "op_count": 1, "ir_hash": "830ce2a8d054b4c6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 302000.0, "surface_area": 51400.0, "principal_moments": [141000000.0, 691000000.0, 691000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 55.7, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 186.0, "min": 55.8, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008351 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55.7, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 186.0, \"min\": 55.8, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad1a0_0948", "family": "plate", "tier": 1, "seed": 2468008352, "symmetry": "none", "op_count": 2, "ir_hash": "a9f9980838b098a6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4710.0, "surface_area": 2440.0, "principal_moments": [126000.0, 430000.0, 478000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"plate_w": {"type": "float", "default": 32.87, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 15.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 1.9, "min": 2.0, "max": 1.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}, "hole_slot_len": {"type": "float", "default": 5.5, "min": 2.8, "max": 8.7, "step": 0.5, "group": "Holes", "label": "Slot length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008352 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 32.87, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 15.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.9, \"min\": 2.0, \"max\": 1.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n \"hole_slot_len\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.8, \"max\": 8.7, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot length (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(26.3, 12.4, p[\"hole_nx\"], p[\"hole_ny\"])\n .slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad1a1_0949", "family": "compound", "tier": 2, "seed": 2468008353, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "be3b03f9b223742b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 70100.0, "surface_area": 27300.0, "principal_moments": [49099999.99999999, 71200000.0, 91399999.99999999], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_w": {"type": "float", "default": 110, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 85.6, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 6.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 22.4, "min": 9.0, "max": 42.8, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 54.3, "min": 16.3, "max": 162.9, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 12.4, "min": 2.0, "max": 16.1, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008353 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 110, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 85.6, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 22.4, \"min\": 9.0, \"max\": 42.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 54.3, \"min\": 16.3, \"max\": 162.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 12.4, \"min\": 2.0, \"max\": 16.1, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad1a2_0950", "family": "block", "tier": 1, "seed": 2468008354, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "7ca837c15b4b822f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 52300.0, "surface_area": 12400.0, "principal_moments": [8850000.0, 20500000.0, 25699999.999999996], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 40, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 20.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 65.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008354 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 20.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 65.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 10.0\n _ssy = 11.9\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad1a3_0951", "family": "compound", "tier": 1, "seed": 2468008355, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "8ef0196370cf5a4f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 406000.0, "surface_area": 36800.0, "principal_moments": [324000000.0, 404000000.0, 419000000.0], "n_faces": 23, "n_edges": 56, "n_vertices": 37}, "params": {"block_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 70.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 67.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 7.2, "min": 3.6, "max": 15.2, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 14.6, "min": 3.1, "max": 37.4, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 7.1, "min": 2.0, "max": 9.0, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008355 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 70.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 67.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 7.2, \"min\": 3.6, \"max\": 15.2, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 14.6, \"min\": 3.1, \"max\": 37.4, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 7.1, \"min\": 2.0, \"max\": 9.0, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad1a4_0952", "family": "flanged", "tier": 1, "seed": 2468008356, "symmetry": "radial", "op_count": 2, "ir_hash": "17821b59bc275a5f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37600.0, "surface_area": 13600.0, "principal_moments": [12199999.999999998, 12199999.999999998, 21700000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 35, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 21.2, "min": 6.4, "max": 53.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 12.1, "min": 2.0, "max": 24.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 78.7, "min": 45.5, "max": 105.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.3, "min": 1.6, "max": 8.5, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 23.6, "min": 15.7, "max": 35.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008356 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 21.2, \"min\": 6.4, \"max\": 53.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 12.1, \"min\": 2.0, \"max\": 24.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 78.7, \"min\": 45.5, \"max\": 105.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.3, \"min\": 1.6, \"max\": 8.5, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 23.6, \"min\": 15.7, \"max\": 35.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad1a5_0953", "family": "ribbed", "tier": 3, "seed": 2468008357, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "481fd1653ee3bd26", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 49000.0, "surface_area": 16500.0, "principal_moments": [15999999.999999998, 38000000.0, 52699999.99999999], "n_faces": 30, "n_edges": 88, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 90.44, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 59.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 8.0, "min": 3.2, "max": 16.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 6.0, "min": 1.0, "max": 15.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008357 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 90.44, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 59.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.2, \"max\": 16.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 1.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad1a6_0954", "family": "bracket", "tier": 1, "seed": 2468008358, "symmetry": "none", "op_count": 1, "ir_hash": "4d399454b16003fa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20400.0, "surface_area": 8340.0, "principal_moments": [5100000.0, 5430000.0, 8270000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 36.88, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 39.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 48.26, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008358 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 36.88, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 39.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 48.26, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad1a8_0956", "family": "block", "tier": 2, "seed": 2468008360, "symmetry": "none", "op_count": 3, "ir_hash": "6acdc04736ebeefd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3120.0, "surface_area": 2610.0, "principal_moments": [115000.0, 189000.0, 270000.0], "n_faces": 15, "n_edges": 48, "n_vertices": 32}, "params": {"block_w": {"type": "float", "default": 18.73, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 7.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 27.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.8, "min": 2.0, "max": 1.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 12.7, "min": 6.3, "max": 15.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 5.4, "min": 2.7, "max": 6.2, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 9.6, "min": 3.8, "max": 23.5, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008360 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 18.73, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 7.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 27.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.8, \"min\": 2.0, \"max\": 1.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 12.7, \"min\": 6.3, \"max\": 15.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 5.4, \"min\": 2.7, \"max\": 6.2, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 9.6, \"min\": 3.8, \"max\": 23.5, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad1a9_0957", "family": "block", "tier": 1, "seed": 2468008361, "symmetry": "radial", "op_count": 2, "ir_hash": "fcf1d39bd2aaaebc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26300.0, "surface_area": 8210.0, "principal_moments": [3330000.0, 4730000.0, 6150000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 32.34, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 21.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 41.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 9.7, "min": 6.5, "max": 14.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008361 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 32.34, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 21.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 41.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 9.7, \"min\": 6.5, \"max\": 14.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad1aa_0958", "family": "plate", "tier": 1, "seed": 2468008362, "symmetry": "none", "op_count": 2, "ir_hash": "af1f332834c34cc8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11500.0, "surface_area": 7120.0, "principal_moments": [1390000.0, 5920000.0, 7280000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 38.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 8.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008362 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 38.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 8.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad1ab_0959", "family": "gear", "tier": 2, "seed": 2468008363, "symmetry": "none", "op_count": 1, "ir_hash": "ebee36f68700743d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 97600.0, "surface_area": 21500.0, "principal_moments": [49499999.99999999, 49499999.99999999, 93699999.99999999], "n_faces": 307, "n_edges": 839, "n_vertices": 496}, "params": {"module": {"type": "float", "default": 4.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 19, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 18.0, "min": 7.2, "max": 45.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 30.0, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": -0.3, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.44, "min": 0.0, "max": 2.0, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 16.5, "min": 2.0, "max": 39.6, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008363 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 19, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 18.0, \"min\": 7.2, \"max\": 45.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 30.0, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.3, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.44, \"min\": 0.0, \"max\": 2.0, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 16.5, \"min\": 2.0, \"max\": 39.6, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=True, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad1ac_0960", "family": "revolved", "tier": 1, "seed": 2468008364, "symmetry": "none", "op_count": 1, "ir_hash": "3266fe8d853b084b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 631000.0, "surface_area": 76500.0, "principal_moments": [606000000.0, 1630000000.0, 1630000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 80.0, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 188.3, "min": 56.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008364 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 80.0, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 188.3, \"min\": 56.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad1ad_0961", "family": "bracket", "tier": 3, "seed": 2468008365, "symmetry": "none", "op_count": 1, "ir_hash": "f5d82b6d33e0534a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 40200.0, "surface_area": 13100.0, "principal_moments": [12299999.999999998, 42000000.0, 50199999.99999999], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 82.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 26.54, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 8.0, "min": 4.0, "max": 13.3, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008365 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 82.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 26.54, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 13.3, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad1ae_0962", "family": "enclosure", "tier": 1, "seed": 2468008366, "symmetry": "none", "op_count": 2, "ir_hash": "1e987672914180ec", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10300.0, "surface_area": 6820.0, "principal_moments": [1180000.0, 2460000.0, 2670000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 42.04, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 23.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 22.2, "min": 8.9, "max": 44.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008366 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 42.04, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 23.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 22.2, \"min\": 8.9, \"max\": 44.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad1af_0963", "family": "block", "tier": 1, "seed": 2468008367, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "913ea29b4bdfe5c6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 676000.0, "surface_area": 60400.0, "principal_moments": [781000000.0, 939000000.0, 968000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 85.9, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 82.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008367 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85.9, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 82.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad1b2_0966", "family": "bracket", "tier": 1, "seed": 2468008370, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "5a43533cb90b2d9b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42500.0, "surface_area": 13400.0, "principal_moments": [14299999.999999998, 25799999.999999996, 29299999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 57.52, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 57.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008370 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 57.52, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 57.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"head_sides\"], p[\"head_r\"] * 2).extrude(p[\"head_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad1b8_0972", "family": "revolved", "tier": 2, "seed": 2468008376, "symmetry": "radial", "op_count": 1, "ir_hash": "986483c7ad108dd3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13600.0, "surface_area": 4330.0, "principal_moments": [945000.0, 2170000.0, 2170000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 22.4, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 38.7, "min": 11.6, "max": 116.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 7.4, "min": 2.0, "max": 15.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008376 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 22.4, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 38.7, \"min\": 11.6, \"max\": 116.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 7.4, \"min\": 2.0, \"max\": 15.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad1b9_0973", "family": "enclosure", "tier": 1, "seed": 2468008377, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "48ec585cc3cc7b27", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33100.0, "surface_area": 14600.0, "principal_moments": [10800000.0, 12899999.999999998, 13499999.999999998], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 45, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 35.3, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 42.4, "min": 17.0, "max": 84.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008377 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 45, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 35.3, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 42.4, \"min\": 17.0, \"max\": 84.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad1ba_0974", "family": "gear", "tier": 2, "seed": 2468008378, "symmetry": "none", "op_count": 1, "ir_hash": "d210397d57ee9bc4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3250.0, "surface_area": 2090.0, "principal_moments": [157000.0, 157000.0, 292000.0], "n_faces": 231, "n_edges": 573, "n_vertices": 344}, "params": {"module": {"type": "float", "default": 1.25, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 19, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.3, "min": 2.5, "max": 15.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 20.2, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.37, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.28, "min": 0.0, "max": 0.62, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 4.6, "min": 2.0, "max": 12.4, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008378 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.25, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 19, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.3, \"min\": 2.5, \"max\": 15.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 20.2, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.37, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.28, \"min\": 0.0, \"max\": 0.62, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 4.6, \"min\": 2.0, \"max\": 12.4, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=True, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad1bb_0975", "family": "threaded", "tier": 0, "seed": 2468008379, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "65b7de09abf756cb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 151.0, "surface_area": 289.0, "principal_moments": [248.0, 2960.0, 2960.0], "n_faces": 220, "n_edges": 564, "n_vertices": 346}, "params": {"major_d": {"type": "float", "default": 4.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.7, "min": 0.35, "max": 1.4, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 15.1, "min": 6.0, "max": 30.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008379 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.35, \"max\": 1.4, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 15.1, \"min\": 6.0, \"max\": 30.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad1bc_0976", "family": "bracket", "tier": 1, "seed": 2468008380, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "44dbd81154a67fe0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41400.0, "surface_area": 16500.0, "principal_moments": [17400000.0, 49199999.99999999, 52499999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 75, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 85.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008380 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 85.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad1be_0978", "family": "gear", "tier": 1, "seed": 2468008382, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ea3b74ae22cb44d0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15100.0, "surface_area": 5840.0, "principal_moments": [1620000.0, 1620000.0, 2510000.0], "n_faces": 87, "n_edges": 255, "n_vertices": 170}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 14, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 16.9, "min": 6.8, "max": 42.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 7.4, "min": 2.0, "max": 17.2, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008382 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 14, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 16.9, \"min\": 6.8, \"max\": 42.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 7.4, \"min\": 2.0, \"max\": 17.2, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad1bf_0979", "family": "ribbed", "tier": 2, "seed": 2468008383, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "eefd0368e5450ab9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28700.0, "surface_area": 13300.0, "principal_moments": [6350000.0, 20200000.0, 26099999.999999996], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 90, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 47.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 6.1, "min": 2.4, "max": 12.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.3, "min": 1.0, "max": 5.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008383 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 47.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 6.1, \"min\": 2.4, \"max\": 12.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.3, \"min\": 1.0, \"max\": 5.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad1c0_0980", "family": "flanged", "tier": 1, "seed": 2468008384, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "d25d8a7170ad29d5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8880.0, "surface_area": 5220.0, "principal_moments": [1010000.0, 1010000.0, 1460000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 21.84, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 18.0, "min": 5.4, "max": 45.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 7.4, "min": 2.0, "max": 15.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 47.6, "min": 28.4, "max": 65.5, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 2.4, "min": 0.7, "max": 7.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 14.3, "min": 9.5, "max": 21.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008384 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 21.84, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 18.0, \"min\": 5.4, \"max\": 45.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 7.4, \"min\": 2.0, \"max\": 15.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 47.6, \"min\": 28.4, \"max\": 65.5, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 2.4, \"min\": 0.7, \"max\": 7.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 14.3, \"min\": 9.5, \"max\": 21.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad1c1_0981", "family": "gear", "tier": 2, "seed": 2468008385, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "bebe8ba9fe392514", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14800.0, "surface_area": 5880.0, "principal_moments": [1580000.0, 1580000.0, 2450000.0], "n_faces": 91, "n_edges": 267, "n_vertices": 178}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 11, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 17.0, "min": 6.8, "max": 42.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 23.5, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": -0.23, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.83, "min": 0.0, "max": 1.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 6.3, "min": 2.0, "max": 15.3, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008385 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 11, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 17.0, \"min\": 6.8, \"max\": 42.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 23.5, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.23, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.83, \"min\": 0.0, \"max\": 1.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 6.3, \"min\": 2.0, \"max\": 15.3, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad1c2_0982", "family": "ribbed", "tier": 1, "seed": 2468008386, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "3097f5928131f360", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19700.0, "surface_area": 9270.0, "principal_moments": [3450000.0, 8240000.0, 11000000.0], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 63.54, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 41.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 12.3, "min": 4.9, "max": 24.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.2, "min": 1.0, "max": 8.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008386 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 63.54, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 41.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 12.3, \"min\": 4.9, \"max\": 24.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.2, \"min\": 1.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad1c4_0984", "family": "bracket", "tier": 2, "seed": 2468008388, "symmetry": "none", "op_count": 1, "ir_hash": "c9fb7a9b7d0f5fae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37000.0, "surface_area": 12400.0, "principal_moments": [13399999.999999998, 22300000.0, 30199999.999999996], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 60, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 54.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30.02, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 10.5, "min": 4.0, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008388 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 60, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 54.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30.02, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 10.5, \"min\": 4.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad1c5_0985", "family": "gear", "tier": 0, "seed": 2468008389, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "8494ceef70e6b312", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13100.0, "surface_area": 5460.0, "principal_moments": [1740000.0, 1740000.0, 3320000.0], "n_faces": 182, "n_edges": 540, "n_vertices": 360}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 30, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 8.3, "min": 3.3, "max": 20.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008389 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 30, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 8.3, \"min\": 3.3, \"max\": 20.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad1c6_0986", "family": "compound", "tier": 1, "seed": 2468008390, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "b06cc1a87ca812c5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 303000.0, "surface_area": 33400.0, "principal_moments": [209000000.0, 230000000.0, 304000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 76.9, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 51.7, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 70.8, "min": 28.3, "max": 113.3, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 43.9, "min": 17.6, "max": 70.2, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 9.7, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008390 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 76.9, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 51.7, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 70.8, \"min\": 28.3, \"max\": 113.3, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 43.9, \"min\": 17.6, \"max\": 70.2, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 9.7, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.06788535155359815)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad1c9_0989", "family": "bracket", "tier": 3, "seed": 2468008393, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "d5cf1cf6be14c756", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10700.0, "surface_area": 8140.0, "principal_moments": [1370000.0, 6830000.0, 7050000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 42.22, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 35.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 46.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 2.5, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008393 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 42.22, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 35.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 46.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad1ca_0990", "family": "revolved", "tier": 1, "seed": 2468008394, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "cad25d7075e1d6be", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 48300.0, "surface_area": 13300.0, "principal_moments": [8870000.0, 20700000.0, 20700000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 35, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 75.4, "min": 22.6, "max": 226.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.7, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008394 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 75.4, \"min\": 22.6, \"max\": 226.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.7, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad1cd_0993", "family": "enclosure", "tier": 3, "seed": 2468008397, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "ca30ac77f21069d0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 175000.0, "surface_area": 75300.0, "principal_moments": [302000000.0, 361000000.0, 396000000.0], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 101.08, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 73.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 98.1, "min": 39.2, "max": 196.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008397 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 101.08, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 73.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 98.1, \"min\": 39.2, \"max\": 196.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.11478771163081286)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad1cf_0995", "family": "bracket", "tier": 1, "seed": 2468008399, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "15b125befce9af08", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11100.0, "surface_area": 6500.0, "principal_moments": [1910000.0, 2650000.0, 3920000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008399 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad1d1_0997", "family": "block", "tier": 2, "seed": 2468008401, "symmetry": "none", "op_count": 3, "ir_hash": "f93c4621ae3746a3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34200.0, "surface_area": 8870.0, "principal_moments": [5250000.0, 7020000.0, 9950000.0], "n_faces": 15, "n_edges": 35, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 47.29, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 20.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 35.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 22.1, "min": 11.1, "max": 44.2, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 5.5, "min": 2.2, "max": 13.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008401 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 47.29, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 20.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 35.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 22.1, \"min\": 11.1, \"max\": 44.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.2, \"max\": 13.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad1d2_0998", "family": "plate", "tier": 1, "seed": 2468008402, "symmetry": "radial", "op_count": 2, "ir_hash": "42a38ff5c9f53119", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27600.0, "surface_area": 9220.0, "principal_moments": [4570000.0, 15199999.999999998, 19500000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"plate_w": {"type": "float", "default": 80.91, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 43.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.3, "min": 16.2, "max": 36.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008402 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 80.91, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 43.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.3, \"min\": 16.2, \"max\": 36.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad1d3_0999", "family": "bracket", "tier": 1, "seed": 2468008403, "symmetry": "none", "op_count": 1, "ir_hash": "08305b3d63263cce", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9460.0, "surface_area": 7150.0, "principal_moments": [1160000.0, 4370000.0, 4860000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 40.36, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 28.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 32.3, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 35.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008403 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 40.36, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 28.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 32.3, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 35.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad1d4_1000", "family": "gear", "tier": 1, "seed": 2468008404, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "f21594180d41355c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 137000.0, "surface_area": 25600.0, "principal_moments": [75500000.0, 75500000.0, 138000000.0], "n_faces": 135, "n_edges": 399, "n_vertices": 266}, "params": {"module": {"type": "float", "default": 4.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 22, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 23.6, "min": 9.4, "max": 59.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 16.2, "min": 2.0, "max": 46.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008404 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 22, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 23.6, \"min\": 9.4, \"max\": 59.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 16.2, \"min\": 2.0, \"max\": 46.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad1d5_1001", "family": "block", "tier": 1, "seed": 2468008405, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "0f8f761268d23fd2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 129000.0, "surface_area": 19400.0, "principal_moments": [38200000.0, 77700000.0, 79200000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 43.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 41.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008405 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 43.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 41.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad1d6_1002", "family": "threaded", "tier": 3, "seed": 2468008406, "symmetry": "none", "op_count": 1, "ir_hash": "e05f45ee24fbdf32", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 606.0, "surface_area": 742.0, "principal_moments": [7690.0, 12100.0, 12100.0], "n_faces": 132, "n_edges": 358, "n_vertices": 228}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 12.8, "min": 5.1, "max": 25.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008406 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 12.8, \"min\": 5.1, \"max\": 25.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad1d7_1003", "family": "revolved", "tier": 1, "seed": 2468008407, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "27f3993b2c2a0a35", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 145000.0, "surface_area": 25000.0, "principal_moments": [47199999.99999999, 204000000.0, 204000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 35, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 115.5, "min": 34.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 12.1, "min": 2.0, "max": 24.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 62.6, "min": 42.0, "max": 105.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 22.4, "min": 6.7, "max": 57.8, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008407 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 115.5, \"min\": 34.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 12.1, \"min\": 2.0, \"max\": 24.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 62.6, \"min\": 42.0, \"max\": 105.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 22.4, \"min\": 6.7, \"max\": 57.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad1d8_1004", "family": "revolved", "tier": 2, "seed": 2468008408, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "9ca47e40da95ba12", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 333000.0, "surface_area": 51300.0, "principal_moments": [362000000.0, 602000000.0, 602000000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 50.64, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 122.9, "min": 36.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 28.9, "min": 2.0, "max": 35.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 106.9, "min": 60.8, "max": 151.9, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 23.9, "min": 7.2, "max": 61.5, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.1, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008408 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50.64, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 122.9, \"min\": 36.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 28.9, \"min\": 2.0, \"max\": 35.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 106.9, \"min\": 60.8, \"max\": 151.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 23.9, \"min\": 7.2, \"max\": 61.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.1, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad1da_1006", "family": "block", "tier": 1, "seed": 2468008410, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "e486fffb201e0156", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45000.0, "surface_area": 9930.0, "principal_moments": [8520000.0, 11000000.0, 15999999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 21.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 42.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008410 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 21.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 42.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad1db_1007", "family": "gear", "tier": 0, "seed": 2468008411, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "bf2bd5a9198e2ebb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9850.0, "surface_area": 4660.0, "principal_moments": [1160000.0, 1160000.0, 2230000.0], "n_faces": 206, "n_edges": 612, "n_vertices": 408}, "params": {"module": {"type": "float", "default": 1.25, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 34, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 7.0, "min": 2.8, "max": 17.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008411 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.25, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 34, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 7.0, \"min\": 2.8, \"max\": 17.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad1dc_1008", "family": "enclosure", "tier": 2, "seed": 2468008412, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "d4348ae2c04a30ca", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9010.0, "surface_area": 6070.0, "principal_moments": [1130000.0, 1410000.0, 1980000.0], "n_faces": 27, "n_edges": 84, "n_vertices": 56}, "params": {"enc_w": {"type": "float", "default": 34.9, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 29.7, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 18.4, "min": 7.4, "max": 36.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.1, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 6.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008412 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 34.9, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 29.7, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 18.4, \"min\": 7.4, \"max\": 36.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.1, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 6.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.11252569983640323)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad1dd_1009", "family": "plate", "tier": 2, "seed": 2468008413, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "50b1afd5230ce339", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1480.0, "surface_area": 1870.0, "principal_moments": [94700.0, 101000.0, 195000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 30, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 29.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 6.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008413 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 29.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 6.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.04420929153703064)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad1de_1010", "family": "bracket", "tier": 1, "seed": 2468008414, "symmetry": "none", "op_count": 1, "ir_hash": "34dd2780f7a3b4c7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22700.0, "surface_area": 7550.0, "principal_moments": [4090000.0, 5660000.0, 7940000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 30.68, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 34.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008414 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30.68, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 34.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.11605121494429838)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad1e0_1012", "family": "compound", "tier": 2, "seed": 2468008416, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "0cc48a5af86e1c1a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 94400.0, "surface_area": 16400.0, "principal_moments": [17300000.0, 78900000.0, 78900000.0], "n_faces": 13, "n_edges": 27, "n_vertices": 18}, "params": {"shaft_d": {"type": "float", "default": 40, "min": 20.0, "max": 72.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 65.8, "min": 26.3, "max": 131.6, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 20.5, "min": 10.2, "max": 36.0, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 39.8, "min": 11.9, "max": 99.5, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "head_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Head", "label": "Drive head sides"}, "head_r": {"type": "float", "default": 8.8, "min": 5.3, "max": 9.8, "step": 1.0, "group": "Head", "label": "Drive head circumradius (mm)"}, "head_len": {"type": "float", "default": 12.9, "min": 3.9, "max": 25.8, "step": 1.0, "group": "Head", "label": "Drive head length (mm)"}, "axial_bore": {"type": "float", "default": 6.6, "min": 2.0, "max": 11.0, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008416 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 72.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 65.8, \"min\": 26.3, \"max\": 131.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 20.5, \"min\": 10.2, \"max\": 36.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 39.8, \"min\": 11.9, \"max\": 99.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"head_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Head', \"label\": 'Drive head sides'},\n \"head_r\": {\"type\": 'float', \"default\": 8.8, \"min\": 5.3, \"max\": 9.8, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head circumradius (mm)'},\n \"head_len\": {\"type\": 'float', \"default\": 12.9, \"min\": 3.9, \"max\": 25.8, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 6.6, \"min\": 2.0, \"max\": 11.0, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"head_sides\"], p[\"head_r\"] * 2).extrude(p[\"head_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad1e1_1013", "family": "flanged", "tier": 1, "seed": 2468008417, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "96b415a38f0b23ea", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 537000.0, "surface_area": 76800.0, "principal_moments": [905000000.0, 905000000.0, 930000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 86.57, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 90.2, "min": 27.1, "max": 225.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 37.5, "min": 2.0, "max": 60.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 162.9, "min": 112.5, "max": 259.7, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.1, "min": 2.1, "max": 36.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 48.9, "min": 32.6, "max": 73.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008417 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 86.57, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 90.2, \"min\": 27.1, \"max\": 225.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 37.5, \"min\": 2.0, \"max\": 60.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 162.9, \"min\": 112.5, \"max\": 259.7, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.1, \"min\": 2.1, \"max\": 36.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 48.9, \"min\": 32.6, \"max\": 73.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad1e2_1014", "family": "gear", "tier": 1, "seed": 2468008418, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "d79738319ef549d2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4570.0, "surface_area": 2650.0, "principal_moments": [264000.0, 264000.0, 488000.0], "n_faces": 141, "n_edges": 417, "n_vertices": 278}, "params": {"module": {"type": "float", "default": 1.25, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 23, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 7.3, "min": 2.9, "max": 18.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 15.4, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008418 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.25, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 23, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 7.3, \"min\": 2.9, \"max\": 18.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 15.4, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad1e4_1016", "family": "gear", "tier": 1, "seed": 2468008420, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "7a4f0c91b6bfc8d2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 490000.0, "surface_area": 64800.0, "principal_moments": [801000000.0, 801000000.0, 1540000000.0], "n_faces": 189, "n_edges": 561, "n_vertices": 374}, "params": {"module": {"type": "float", "default": 5.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 31, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 27.4, "min": 11.0, "max": 68.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 32.2, "min": 2.0, "max": 85.5, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008420 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 5.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 31, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 27.4, \"min\": 11.0, \"max\": 68.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 32.2, \"min\": 2.0, \"max\": 85.5, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad1e5_1017", "family": "bracket", "tier": 1, "seed": 2468008421, "symmetry": "none", "op_count": 1, "ir_hash": "8427c55df487166f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13800.0, "surface_area": 10200.0, "principal_moments": [3800000.0, 4680000.0, 6240000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 28.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008421 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 28.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad1e6_1018", "family": "gear", "tier": 0, "seed": 2468008422, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "570dd84f7f420980", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2210.0, "surface_area": 1590.0, "principal_moments": [79300.0, 79300.0, 148000.0], "n_faces": 140, "n_edges": 414, "n_vertices": 276}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 23, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.4, "min": 2.2, "max": 13.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008422 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 23, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.4, \"min\": 2.2, \"max\": 13.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad1e8_1020", "family": "block", "tier": 2, "seed": 2468008424, "symmetry": "none", "op_count": 3, "ir_hash": "705a5b002fa5d93b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4070.0, "surface_area": 2890.0, "principal_moments": [185000.0, 250000.0, 369000.0], "n_faces": 21, "n_edges": 69, "n_vertices": 46}, "params": {"block_w": {"type": "float", "default": 20, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 9.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 25.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.5, "min": 2.0, "max": 1.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "pocket_w": {"type": "float", "default": 9.3, "min": 4.7, "max": 16.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 5.8, "min": 2.9, "max": 7.6, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 10.5, "min": 4.2, "max": 22.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008424 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 9.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 25.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.5, \"min\": 2.0, \"max\": 1.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"pocket_w\": {\"type\": 'float', \"default\": 9.3, \"min\": 4.7, \"max\": 16.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.9, \"max\": 7.6, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 10.5, \"min\": 4.2, \"max\": 22.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 5.0\n _ssy = 5.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad1e9_1021", "family": "flanged", "tier": 1, "seed": 2468008425, "symmetry": "none", "op_count": 2, "ir_hash": "bdde3266fc54e0ad", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 843000.0, "surface_area": 101000.0, "principal_moments": [1770000000.0, 2020000000.0, 2020000000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"outer_d": {"type": "float", "default": 99.54, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 116.7, "min": 35.0, "max": 291.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 47.3, "min": 2.0, "max": 69.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 173.5, "min": 129.4, "max": 298.6, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.9, "min": 2.7, "max": 46.7, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 52.0, "min": 34.7, "max": 78.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008425 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 99.54, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 116.7, \"min\": 35.0, \"max\": 291.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 47.3, \"min\": 2.0, \"max\": 69.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 173.5, \"min\": 129.4, \"max\": 298.6, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.9, \"min\": 2.7, \"max\": 46.7, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 52.0, \"min\": 34.7, \"max\": 78.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad1ea_1022", "family": "profiled", "tier": 1, "seed": 2468008426, "symmetry": "none", "op_count": 1, "ir_hash": "00ec8ed84150e954", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16500.0, "surface_area": 8270.0, "principal_moments": [853000.0, 8590000.0, 8590000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 18.57, "min": 9.3, "max": 37.1, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 91.3, "min": 27.4, "max": 273.9, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008426 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 18.57, \"min\": 9.3, \"max\": 37.1, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 91.3, \"min\": 27.4, \"max\": 273.9, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad1eb_1023", "family": "compound", "tier": 3, "seed": 2468008427, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "135f1306a7fb012d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24200.0, "surface_area": 6230.0, "principal_moments": [4310000.0, 4650000.0, 4650000.0], "n_faces": 16, "n_edges": 39, "n_vertices": 26}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 24.27, "min": 14.6, "max": 38.8, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 10.4, "min": 4.2, "max": 26.0, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 19.9, "min": 9.9, "max": 33.6, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 26.6, "min": 8.0, "max": 66.5, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008427 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 24.27, \"min\": 14.6, \"max\": 38.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 10.4, \"min\": 4.2, \"max\": 26.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 19.9, \"min\": 9.9, \"max\": 33.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 26.6, \"min\": 8.0, \"max\": 66.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_r\"], p[\"base_r\"]) * 0.04530524717561248)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad1ec_1024", "family": "block", "tier": 1, "seed": 2468008428, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "c265730a567ed446", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 43000.0, "surface_area": 10200.0, "principal_moments": [7220000.0, 10900000.0, 14099999.999999998], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 49.52, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 23.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 38.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.2, "min": 2.0, "max": 2.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008428 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 49.52, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 23.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 38.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 2.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 9.3\n _ssy = 9.2\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad1ed_1025", "family": "compound", "tier": 2, "seed": 2468008429, "symmetry": "none", "op_count": 3, "ir_hash": "67854281ab4a98c1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 63400.0, "surface_area": 12200.0, "principal_moments": [16699999.999999998, 17100000.0, 26199999.999999996], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 48.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 26.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 11.1, "min": 4.4, "max": 18.6, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 13.3, "min": 3.3, "max": 44.4, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 6.2, "min": 2.0, "max": 8.0, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 10.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008429 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 48.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 26.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 11.1, \"min\": 4.4, \"max\": 18.6, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 13.3, \"min\": 3.3, \"max\": 44.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 6.2, \"min\": 2.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 10.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad1ee_1026", "family": "ribbed", "tier": 3, "seed": 2468008430, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "86c8e6b887097b5b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33600.0, "surface_area": 16100.0, "principal_moments": [10000000.0, 21800000.0, 29699999.999999996], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 81.68, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 50.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 14.8, "min": 5.9, "max": 29.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.5, "min": 1.0, "max": 11.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008430 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 81.68, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 50.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 14.8, \"min\": 5.9, \"max\": 29.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.0, \"max\": 11.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad1f0_1028", "family": "block", "tier": 1, "seed": 2468008432, "symmetry": "radial", "op_count": 2, "ir_hash": "ca3d1c56fb3ce469", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 57900.0, "surface_area": 16400.0, "principal_moments": [14799999.999999998, 18100000.0, 26799999.999999996], "n_faces": 20, "n_edges": 54, "n_vertices": 36}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 25.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 49.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 16.5, "min": 11.0, "max": 24.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008432 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 25.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 49.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 16.5, \"min\": 11.0, \"max\": 24.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad1f1_1029", "family": "block", "tier": 3, "seed": 2468008433, "symmetry": "mirror_xy", "op_count": 5, "ir_hash": "b3d743dba4653c97", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 264000.0, "surface_area": 38300.0, "principal_moments": [148000000.0, 226000000.0, 234000000.0], "n_faces": 21, "n_edges": 51, "n_vertices": 34}, "params": {"block_w": {"type": "float", "default": 87.21, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 58.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 59.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 13.0, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 13.4, "min": 6.7, "max": 26.8, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 10.2, "min": 4.1, "max": 25.5, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 9.4, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}, "filleted2": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "side_tube_d": {"type": "float", "default": 13.7, "min": 5.5, "max": 29.5, "step": 1.0, "group": "Side Tube", "label": "Side tube diameter (mm)"}, "side_tube_len": {"type": "float", "default": 11.4, "min": 3.4, "max": 41.1, "step": 1.0, "group": "Side Tube", "label": "Side tube length (mm)"}, "side_bore_d": {"type": "float", "default": 8.1, "min": 2.0, "max": 10.3, "step": 0.5, "group": "Side Tube", "label": "Side bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008433 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 87.21, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 58.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 59.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 13.0, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 13.4, \"min\": 6.7, \"max\": 26.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 10.2, \"min\": 4.1, \"max\": 25.5, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 9.4, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n \"filleted2\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"side_tube_d\": {\"type\": 'float', \"default\": 13.7, \"min\": 5.5, \"max\": 29.5, \"step\": 1.0, \"group\": 'Side Tube', \"label\": 'Side tube diameter (mm)'},\n \"side_tube_len\": {\"type\": 'float', \"default\": 11.4, \"min\": 3.4, \"max\": 41.1, \"step\": 1.0, \"group\": 'Side Tube', \"label\": 'Side tube length (mm)'},\n \"side_bore_d\": {\"type\": 'float', \"default\": 8.1, \"min\": 2.0, \"max\": 10.3, \"step\": 0.5, \"group\": 'Side Tube', \"label\": 'Side bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.11435742850156955)\n result = (\n result.faces('Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.11752374227827328)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad1f3_1031", "family": "block", "tier": 1, "seed": 2468008435, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "0a7c4beba7117494", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 261000.0, "surface_area": 35300.0, "principal_moments": [136000000.0, 249000000.0, 322000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 38.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.2, "min": 2.0, "max": 11.3, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008435 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 38.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 11.3, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad1f4_1032", "family": "bracket", "tier": 2, "seed": 2468008436, "symmetry": "none", "op_count": 1, "ir_hash": "e7666e269b7a0c52", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16000.0, "surface_area": 9250.0, "principal_moments": [3370000.0, 7840000.0, 8890000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 60, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 39.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 41.16, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.5, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008436 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 60, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 39.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 41.16, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad1f5_1033", "family": "compound", "tier": 1, "seed": 2468008437, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "1e26731b323dabc2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 105000.0, "surface_area": 20400.0, "principal_moments": [48099999.99999999, 57799999.99999999, 76800000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"base_w": {"type": "float", "default": 65, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 73.9, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 20.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 10.7, "min": 5.3, "max": 16.2, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 43.4, "min": 13.0, "max": 130.2, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 7.9, "min": 2.0, "max": 13.3, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008437 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 65, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 73.9, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 20.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 10.7, \"min\": 5.3, \"max\": 16.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 43.4, \"min\": 13.0, \"max\": 130.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 7.9, \"min\": 2.0, \"max\": 13.3, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad1f6_1034", "family": "revolved", "tier": 2, "seed": 2468008438, "symmetry": "radial", "op_count": 1, "ir_hash": "07a1ba3b34352161", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 65000.0, "surface_area": 13700.0, "principal_moments": [10400000.0, 43600000.0, 43600000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 33.68, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 84.2, "min": 25.3, "max": 252.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 12.3, "min": 2.0, "max": 23.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008438 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 33.68, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 84.2, \"min\": 25.3, \"max\": 252.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 12.3, \"min\": 2.0, \"max\": 23.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad1f7_1035", "family": "revolved", "tier": 1, "seed": 2468008439, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "9b9b3848cca312a4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9040.0, "surface_area": 4890.0, "principal_moments": [582000.0, 2120000.0, 2120000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 17.09, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 46.0, "min": 13.8, "max": 138.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 9.8, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 26.0, "min": 20.5, "max": 51.3, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.7, "min": 2.0, "max": 23.0, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008439 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 17.09, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 46.0, \"min\": 13.8, \"max\": 138.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 9.8, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 26.0, \"min\": 20.5, \"max\": 51.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.7, \"min\": 2.0, \"max\": 23.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad1f9_1037", "family": "revolved", "tier": 0, "seed": 2468008441, "symmetry": "none", "op_count": 1, "ir_hash": "47d72a27a8b0b9f3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 43000.0, "surface_area": 12100.0, "principal_moments": [7900000.0, 15399999.999999998, 15399999.999999998], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 35, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 67.0, "min": 20.1, "max": 201.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008441 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 67.0, \"min\": 20.1, \"max\": 201.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad1fa_1038", "family": "enclosure", "tier": 3, "seed": 2468008442, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "75389e1bdbcfc3e6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 107000.0, "surface_area": 50900.0, "principal_moments": [123000000.0, 157000000.0, 162000000.0], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 85, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 65.5, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 74.2, "min": 29.7, "max": 148.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008442 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 85, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 65.5, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 74.2, \"min\": 29.7, \"max\": 148.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.08005439632477174)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad1fc_1040", "family": "plate", "tier": 3, "seed": 2468008444, "symmetry": "none", "op_count": 4, "ir_hash": "e4d9795fd71aeea4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23600.0, "surface_area": 7560.0, "principal_moments": [1690000.0, 10700000.0, 11499999.999999998], "n_faces": 45, "n_edges": 126, "n_vertices": 84}, "params": {"plate_w": {"type": "float", "default": 75, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 26.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.2, "min": 2.0, "max": 7.7, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "boss_d": {"type": "float", "default": 12.8, "min": 6.4, "max": 25.6, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 10.4, "min": 4.2, "max": 26.0, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 9.0, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008444 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 75, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 26.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 7.7, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"boss_d\": {\"type\": 'float', \"default\": 12.8, \"min\": 6.4, \"max\": 25.6, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 10.4, \"min\": 4.2, \"max\": 26.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 9.0, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08819557472562842)\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad1fd_1041", "family": "bracket", "tier": 3, "seed": 2468008445, "symmetry": "none", "op_count": 1, "ir_hash": "0ed4f413e36201b7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12200.0, "surface_area": 9660.0, "principal_moments": [3380000.0, 12399999.999999998, 15099999.999999998], "n_faces": 17, "n_edges": 55, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 81.94, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 19.96, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 2.6, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008445 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 81.94, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 19.96, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.6, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad1fe_1042", "family": "flanged", "tier": 1, "seed": 2468008446, "symmetry": "none", "op_count": 2, "ir_hash": "f10860b5821e557f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 127000.0, "surface_area": 29700.0, "principal_moments": [71900000.0, 92199999.99999999, 92199999.99999999], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 50, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 66.4, "min": 19.9, "max": 166.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 22.1, "min": 2.0, "max": 35.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 96.8, "min": 65.0, "max": 150.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.1, "min": 1.2, "max": 26.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 29.0, "min": 19.4, "max": 43.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008446 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 66.4, \"min\": 19.9, \"max\": 166.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 22.1, \"min\": 2.0, \"max\": 35.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 96.8, \"min\": 65.0, \"max\": 150.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.1, \"min\": 1.2, \"max\": 26.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 29.0, \"min\": 19.4, \"max\": 43.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad200_1044", "family": "plate", "tier": 0, "seed": 2468008448, "symmetry": "radial", "op_count": 1, "ir_hash": "fee8c97a726c3e49", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 70500.0, "surface_area": 15400.0, "principal_moments": [34900000.0, 35900000.0, 69100000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 77.24, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 76.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008448 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 77.24, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 76.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad201_1045", "family": "gear", "tier": 0, "seed": 2468008449, "symmetry": "none", "op_count": 1, "ir_hash": "02745b6b385c5ce6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4860.0, "surface_area": 2800.0, "principal_moments": [327000.0, 327000.0, 625000.0], "n_faces": 194, "n_edges": 576, "n_vertices": 384}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 32, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.1, "min": 2.4, "max": 15.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008449 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 32, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.1, \"min\": 2.4, \"max\": 15.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad202_1046", "family": "flanged", "tier": 2, "seed": 2468008450, "symmetry": "none", "op_count": 2, "ir_hash": "26b6f4564993d5fb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 57100.0, "surface_area": 20000.0, "principal_moments": [27399999.999999996, 27399999.999999996, 32599999.999999996], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"outer_d": {"type": "float", "default": 36.14, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 44.7, "min": 13.4, "max": 111.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 18.1, "min": 2.0, "max": 25.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 85.9, "min": 47.0, "max": 108.4, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.2, "min": 1.6, "max": 17.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 25.8, "min": 17.2, "max": 38.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008450 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 36.14, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 44.7, \"min\": 13.4, \"max\": 111.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 18.1, \"min\": 2.0, \"max\": 25.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 85.9, \"min\": 47.0, \"max\": 108.4, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.2, \"min\": 1.6, \"max\": 17.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 25.8, \"min\": 17.2, \"max\": 38.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad203_1047", "family": "revolved", "tier": 0, "seed": 2468008451, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d8fec418f83369ab", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14600.0, "surface_area": 5810.0, "principal_moments": [1370000.0, 2410000.0, 2410000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 25, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 44.6, "min": 13.4, "max": 133.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008451 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 44.6, \"min\": 13.4, \"max\": 133.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad204_1048", "family": "enclosure", "tier": 3, "seed": 2468008452, "symmetry": "none", "op_count": 3, "ir_hash": "4fd1197d25c0f12b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 192000.0, "surface_area": 87300.0, "principal_moments": [358000000.0, 443000000.0, 511000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 110.66, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 71.2, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 105.4, "min": 42.2, "max": 210.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.5, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008452 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 110.66, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 71.2, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 105.4, \"min\": 42.2, \"max\": 210.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.5, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad206_1050", "family": "threaded", "tier": 0, "seed": 2468008454, "symmetry": "none", "op_count": 1, "ir_hash": "c594b68341d4de20", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2310.0, "surface_area": 1510.0, "principal_moments": [35000.0, 133000.0, 133000.0], "n_faces": 150, "n_edges": 380, "n_vertices": 232}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 24.7, "min": 9.9, "max": 49.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008454 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 24.7, \"min\": 9.9, \"max\": 49.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad207_1051", "family": "plate", "tier": 0, "seed": 2468008455, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "5684cfcf7f168f88", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7780.0, "surface_area": 4650.0, "principal_moments": [578000.0, 2810000.0, 3360000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 65.68, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 29.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008455 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 65.68, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 29.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad208_1052", "family": "compound", "tier": 3, "seed": 2468008456, "symmetry": "mirror_x", "op_count": 7, "ir_hash": "3ed185386ee4c227", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 199000.0, "surface_area": 25800.0, "principal_moments": [93799999.99999999, 133000000.0, 162000000.0], "n_faces": 48, "n_edges": 134, "n_vertices": 92}, "params": {"block_w": {"type": "float", "default": 76.01, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 61.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 44.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 6.5, "min": 3.2, "max": 10.0, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 8.0, "min": 2.6, "max": 31.6, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "hole_d": {"type": "float", "default": 13.0, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008456 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 76.01, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 61.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 44.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 6.5, \"min\": 3.2, \"max\": 10.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.6, \"max\": 31.6, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 13.0, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.07056064859889963)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad209_1053", "family": "block", "tier": 2, "seed": 2468008457, "symmetry": "none", "op_count": 3, "ir_hash": "3ef57aa9186698a4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 92900.0, "surface_area": 15400.0, "principal_moments": [27099999.999999996, 36100000.0, 37900000.0], "n_faces": 17, "n_edges": 45, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 40.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 43.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008457 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 40.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 43.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 13.8\n _ssy = 15.1\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.05487559972553084)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad20a_1054", "family": "bracket", "tier": 2, "seed": 2468008458, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "b7736ed5d92441fa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13700.0, "surface_area": 6410.0, "principal_moments": [2320000.0, 3850000.0, 4750000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 40, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 34.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 24.46, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 9.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 7.8, "min": 3.0, "max": 12.2, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008458 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 40, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 34.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 24.46, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 9.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 7.8, \"min\": 3.0, \"max\": 12.2, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad20b_1055", "family": "bracket", "tier": 2, "seed": 2468008459, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "7a847263067a835a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17400.0, "surface_area": 12800.0, "principal_moments": [5250000.0, 16699999.999999998, 18700000.0], "n_faces": 14, "n_edges": 45, "n_vertices": 28}, "params": {"base_len": {"type": "float", "default": 82.61, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 69.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 2.8, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008459 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 82.61, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 69.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.8, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad20c_1056", "family": "bracket", "tier": 1, "seed": 2468008460, "symmetry": "none", "op_count": 1, "ir_hash": "e1448a3d1e206b78", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23900.0, "surface_area": 11500.0, "principal_moments": [7320000.0, 21600000.0, 23999999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 73.66, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 69.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008460 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 73.66, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 69.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cboreHole(p[\"hole_d\"], p[\"cb_d\"], p[\"cb_depth\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.06948759190099155)\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad20f_1059", "family": "gear", "tier": 1, "seed": 2468008463, "symmetry": "none", "op_count": 1, "ir_hash": "870d4855be511a58", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2810.0, "surface_area": 2040.0, "principal_moments": [141000.0, 141000.0, 269000.0], "n_faces": 165, "n_edges": 489, "n_vertices": 326}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 27, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.2, "min": 2.1, "max": 13.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 5.8, "min": 2.0, "max": 14.7, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008463 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 27, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.1, \"max\": 13.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.0, \"max\": 14.7, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad210_1060", "family": "revolved", "tier": 1, "seed": 2468008464, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "61e472f11f806bab", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20700.0, "surface_area": 6450.0, "principal_moments": [2820000.0, 4030000.0, 4030000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 29.72, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 38.9, "min": 11.7, "max": 116.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 14.3, "min": 2.0, "max": 20.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008464 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 29.72, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 38.9, \"min\": 11.7, \"max\": 116.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 14.3, \"min\": 2.0, \"max\": 20.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad211_1061", "family": "gear", "tier": 1, "seed": 2468008465, "symmetry": "none", "op_count": 1, "ir_hash": "84da9e1188e75d0f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 86400.0, "surface_area": 21000.0, "principal_moments": [48299999.99999999, 48299999.99999999, 93899999.99999999], "n_faces": 141, "n_edges": 417, "n_vertices": 278}, "params": {"module": {"type": "float", "default": 4.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 23, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 13.4, "min": 5.4, "max": 33.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 11.7, "min": 2.0, "max": 49.2, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008465 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 23, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 13.4, \"min\": 5.4, \"max\": 33.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 11.7, \"min\": 2.0, \"max\": 49.2, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad212_1062", "family": "ribbed", "tier": 1, "seed": 2468008466, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "a403d64611ef45d2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 49100.0, "surface_area": 19700.0, "principal_moments": [14499999.999999998, 23299999.999999996, 34900000.0], "n_faces": 54, "n_edges": 132, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 75, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 52.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 12.4, "min": 5.0, "max": 24.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.7, "min": 1.0, "max": 14.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008466 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 75, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 52.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 12.4, \"min\": 5.0, \"max\": 24.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.7, \"min\": 1.0, \"max\": 14.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad213_1063", "family": "compound", "tier": 1, "seed": 2468008467, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "ea565acf2d991aa4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17200.0, "surface_area": 5980.0, "principal_moments": [2330000.0, 2890000.0, 2910000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"base_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 20.58, "min": 12.3, "max": 32.9, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 12.3, "min": 4.9, "max": 30.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 19.8, "min": 9.9, "max": 26.6, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 24.3, "min": 7.3, "max": 60.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 9.7, "min": 2.0, "max": 14.3, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008467 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 20.58, \"min\": 12.3, \"max\": 32.9, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 12.3, \"min\": 4.9, \"max\": 30.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 19.8, \"min\": 9.9, \"max\": 26.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 24.3, \"min\": 7.3, \"max\": 60.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 9.7, \"min\": 2.0, \"max\": 14.3, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad214_1064", "family": "bracket", "tier": 1, "seed": 2468008468, "symmetry": "none", "op_count": 1, "ir_hash": "69cd5231ac0de6da", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23600.0, "surface_area": 7650.0, "principal_moments": [4090000.0, 5440000.0, 8490000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 25.04, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008468 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 25.04, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad215_1065", "family": "compound", "tier": 2, "seed": 2468008469, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "4e452262e769416f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29300.0, "surface_area": 15500.0, "principal_moments": [16399999.999999998, 19600000.0, 25799999.999999996], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"base_w": {"type": "float", "default": 80, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 53.7, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 5.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 14.3, "min": 5.7, "max": 26.9, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 77.7, "min": 23.3, "max": 233.1, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 8.2, "min": 2.0, "max": 10.3, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 12.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008469 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 80, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 53.7, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 14.3, \"min\": 5.7, \"max\": 26.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 77.7, \"min\": 23.3, \"max\": 233.1, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 8.2, \"min\": 2.0, \"max\": 10.3, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 12.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_w\"], p[\"base_d\"]) * 0.10465355789549852)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad217_1067", "family": "block", "tier": 2, "seed": 2468008471, "symmetry": "none", "op_count": 3, "ir_hash": "d038cfbbf137e410", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2270.0, "surface_area": 1680.0, "principal_moments": [54000.0, 107000.0, 114000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 20, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 12.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 11.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.1, "min": 2.0, "max": 2.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 8.5, "min": 4.2, "max": 16.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 8.3, "min": 4.2, "max": 9.8, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 5.3, "min": 2.1, "max": 9.7, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008471 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 12.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 11.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.1, \"min\": 2.0, \"max\": 2.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 8.5, \"min\": 4.2, \"max\": 16.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 8.3, \"min\": 4.2, \"max\": 9.8, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.1, \"max\": 9.7, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad218_1068", "family": "plate", "tier": 2, "seed": 2468008472, "symmetry": "none", "op_count": 3, "ir_hash": "b7b8ea3da2f2fb22", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 36100.0, "surface_area": 14900.0, "principal_moments": [11399999.999999998, 29899999.999999996, 41100000.0], "n_faces": 26, "n_edges": 72, "n_vertices": 48}, "params": {"plate_w": {"type": "float", "default": 100, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 61.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008472 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 100, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 61.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(26.7, 16.5, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09023781572948517)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad219_1069", "family": "plate", "tier": 1, "seed": 2468008473, "symmetry": "none", "op_count": 2, "ir_hash": "ea865a9cdd9e4da7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 46400.0, "surface_area": 12100.0, "principal_moments": [9000000.0, 27599999.999999996, 35500000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"plate_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 47.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 5.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008473 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 47.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 5.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(68.0, 18.8, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad21a_1070", "family": "block", "tier": 2, "seed": 2468008474, "symmetry": "none", "op_count": 3, "ir_hash": "acc44f78bc54e5ef", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 84800.0, "surface_area": 14100.0, "principal_moments": [20900000.0, 35300000.0, 44700000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 28.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 46.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008474 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 28.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 46.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.05508063000784481)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad21b_1071", "family": "bracket", "tier": 3, "seed": 2468008475, "symmetry": "none", "op_count": 1, "ir_hash": "67e94ec746f6543b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 49000.0, "surface_area": 16400.0, "principal_moments": [23599999.999999996, 28899999.999999996, 39000000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 59.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 8.3, "min": 4.0, "max": 20.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008475 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 59.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 8.3, \"min\": 4.0, \"max\": 20.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad21e_1074", "family": "gear", "tier": 2, "seed": 2468008478, "symmetry": "none", "op_count": 1, "ir_hash": "b5df34774b3f3bd9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11000.0, "surface_area": 5090.0, "principal_moments": [1340000.0, 1340000.0, 2520000.0], "n_faces": 115, "n_edges": 339, "n_vertices": 226}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 14, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 9.3, "min": 3.7, "max": 23.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": -0.21, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.58, "min": 0.0, "max": 1.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 9.2, "min": 2.0, "max": 20.7, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008478 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 14, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 9.3, \"min\": 3.7, \"max\": 23.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.21, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.58, \"min\": 0.0, \"max\": 1.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 9.2, \"min\": 2.0, \"max\": 20.7, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad21f_1075", "family": "threaded", "tier": 1, "seed": 2468008479, "symmetry": "none", "op_count": 1, "ir_hash": "7358e7a6a988dd60", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3340.0, "surface_area": 2490.0, "principal_moments": [35200.0, 751000.0, 751000.0], "n_faces": 350, "n_edges": 900, "n_vertices": 552}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 51.5, "min": 20.6, "max": 103.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008479 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 51.5, \"min\": 20.6, \"max\": 103.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad220_1076", "family": "compound", "tier": 1, "seed": 2468008480, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "2ceff1957521a805", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12200.0, "surface_area": 4640.0, "principal_moments": [1030000.0, 1900000.0, 1900000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 15, "min": 9.0, "max": 24.0, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 18.0, "min": 7.2, "max": 45.0, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 11.6, "min": 5.8, "max": 20.8, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 28.4, "min": 8.5, "max": 71.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 6.0, "min": 2.0, "max": 8.4, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008480 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 15, \"min\": 9.0, \"max\": 24.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 18.0, \"min\": 7.2, \"max\": 45.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 11.6, \"min\": 5.8, \"max\": 20.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 28.4, \"min\": 8.5, \"max\": 71.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 8.4, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad221_1077", "family": "block", "tier": 1, "seed": 2468008481, "symmetry": "none", "op_count": 2, "ir_hash": "c18228b3dd8d9f8a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 267000.0, "surface_area": 44700.0, "principal_moments": [151000000.0, 257000000.0, 339000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 41.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 10.1, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008481 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 41.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.1, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad222_1078", "family": "gear", "tier": 0, "seed": 2468008482, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "37f625c1987f4d99", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24500.0, "surface_area": 8140.0, "principal_moments": [4720000.0, 4720000.0, 8970000.0], "n_faces": 164, "n_edges": 486, "n_vertices": 324}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 27, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 10.8, "min": 4.3, "max": 27.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008482 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 27, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 10.8, \"min\": 4.3, \"max\": 27.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad224_1080", "family": "threaded", "tier": 2, "seed": 2468008484, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "31dcb4ecba86e3a1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2680.0, "surface_area": 2040.0, "principal_moments": [87000.0, 152000.0, 152000.0], "n_faces": 147, "n_edges": 399, "n_vertices": 254}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 22.1, "min": 8.8, "max": 44.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008484 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 22.1, \"min\": 8.8, \"max\": 44.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad225_1081", "family": "block", "tier": 1, "seed": 2468008485, "symmetry": "none", "op_count": 2, "ir_hash": "994bb158996c0fe4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 330000.0, "surface_area": 35300.0, "principal_moments": [234000000.0, 318000000.0, 466000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 83.49, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 39.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 9.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008485 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 83.49, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 39.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 9.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad227_1083", "family": "compound", "tier": 1, "seed": 2468008487, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3811ad5ee1234263", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33500.0, "surface_area": 7320.0, "principal_moments": [6190000.0, 7300000.0, 7300000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 25.48, "min": 15.3, "max": 40.8, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 10.2, "min": 4.1, "max": 25.5, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 27.4, "min": 13.7, "max": 35.3, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 27.7, "min": 8.3, "max": 69.2, "step": 1.0, "group": "Column", "label": "Column height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008487 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 25.48, \"min\": 15.3, \"max\": 40.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 10.2, \"min\": 4.1, \"max\": 25.5, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 27.4, \"min\": 13.7, \"max\": 35.3, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 27.7, \"min\": 8.3, \"max\": 69.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad228_1084", "family": "profiled", "tier": 2, "seed": 2468008488, "symmetry": "none", "op_count": 1, "ir_hash": "8e774b0514618a2d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 342000.0, "surface_area": 67800.0, "principal_moments": [112000000.0, 1880000000.0, 1880000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 46.67, "min": 23.3, "max": 93.3, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 300.0, "min": 90.0, "max": 900.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008488 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 46.67, \"min\": 23.3, \"max\": 93.3, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 300.0, \"min\": 90.0, \"max\": 900.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad229_1085", "family": "block", "tier": 1, "seed": 2468008489, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "2963ce1cac78eb4a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 370000.0, "surface_area": 42100.0, "principal_moments": [306000000.0, 362000000.0, 561000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 91.25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 42.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008489 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 91.25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 42.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad22a_1086", "family": "bracket", "tier": 2, "seed": 2468008490, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "1591ebd4403e1f4b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16100.0, "surface_area": 11800.0, "principal_moments": [5430000.0, 6490000.0, 9200000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 45.26, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 29.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 2.6, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008490 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45.26, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 29.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.6, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad22b_1087", "family": "flanged", "tier": 1, "seed": 2468008491, "symmetry": "none", "op_count": 2, "ir_hash": "61bf01adb332a139", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 76100.0, "surface_area": 22900.0, "principal_moments": [41600000.0, 41600000.0, 61399999.99999999], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 40, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 40.6, "min": 12.2, "max": 101.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 20.2, "min": 2.0, "max": 28.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 96.0, "min": 52.0, "max": 120.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.5, "min": 1.9, "max": 16.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 28.8, "min": 19.2, "max": 43.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008491 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 40.6, \"min\": 12.2, \"max\": 101.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 20.2, \"min\": 2.0, \"max\": 28.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 96.0, \"min\": 52.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.5, \"min\": 1.9, \"max\": 16.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 28.8, \"min\": 19.2, \"max\": 43.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad22c_1088", "family": "bracket", "tier": 1, "seed": 2468008492, "symmetry": "none", "op_count": 1, "ir_hash": "71ada898165051b4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11800.0, "surface_area": 8830.0, "principal_moments": [2870000.0, 3990000.0, 4850000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 40, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 29.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 43.27, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008492 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 40, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 29.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 43.27, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad22d_1089", "family": "revolved", "tier": 1, "seed": 2468008493, "symmetry": "radial", "op_count": 1, "ir_hash": "4c75286447f5f146", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 162000.0, "surface_area": 28600.0, "principal_moments": [107000000.0, 107000000.0, 132000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 59.99, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 52.0, "min": 15.6, "max": 156.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 26.0, "min": 2.0, "max": 42.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 96.2, "min": 72.0, "max": 180.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.5, "min": 2.9, "max": 26.0, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008493 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 59.99, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 52.0, \"min\": 15.6, \"max\": 156.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 26.0, \"min\": 2.0, \"max\": 42.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 96.2, \"min\": 72.0, \"max\": 180.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.5, \"min\": 2.9, \"max\": 26.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad22e_1090", "family": "revolved", "tier": 0, "seed": 2468008494, "symmetry": "radial", "op_count": 1, "ir_hash": "115c79992d01b91c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1020000.0, "surface_area": 122000.0, "principal_moments": [951000000.0, 6440000000.0, 6440000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 78.81, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 313.8, "min": 94.1, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008494 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 78.81, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 313.8, \"min\": 94.1, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad22f_1091", "family": "gear", "tier": 1, "seed": 2468008495, "symmetry": "none", "op_count": 1, "ir_hash": "e4e3564add0c7df7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10000.0, "surface_area": 5430.0, "principal_moments": [1570000.0, 1570000.0, 3080000.0], "n_faces": 237, "n_edges": 705, "n_vertices": 470}, "params": {"module": {"type": "float", "default": 1.25, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 39, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.6, "min": 2.2, "max": 14.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 9.2, "min": 2.0, "max": 27.4, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008495 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.25, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 39, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.6, \"min\": 2.2, \"max\": 14.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 9.2, \"min\": 2.0, \"max\": 27.4, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad230_1092", "family": "bracket", "tier": 3, "seed": 2468008496, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "3ea20476e133cefc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28000.0, "surface_area": 12900.0, "principal_moments": [9460000.0, 13499999.999999998, 17600000.0], "n_faces": 17, "n_edges": 39, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 48.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 6.4, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008496 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 48.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad231_1093", "family": "plate", "tier": 3, "seed": 2468008497, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "ae6f4b0c3e7d40d1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12700.0, "surface_area": 13700.0, "principal_moments": [5060000.0, 8910000.0, 13999999.999999998], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 71.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 13.0, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "boss_d": {"type": "float", "default": 8.9, "min": 4.5, "max": 17.8, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 5.8, "min": 2.3, "max": 14.5, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.2, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008497 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 71.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 13.0, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"boss_d\": {\"type\": 'float', \"default\": 8.9, \"min\": 4.5, \"max\": 17.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.3, \"max\": 14.5, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.2, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08770628697834683)\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad232_1094", "family": "revolved", "tier": 1, "seed": 2468008498, "symmetry": "radial", "op_count": 1, "ir_hash": "dd79c92bf4a1725f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 555000.0, "surface_area": 74800.0, "principal_moments": [469000000.0, 1600000000.0, 1600000000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 65, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 198.9, "min": 59.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 94.7, "min": 78.0, "max": 195.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 30.9, "min": 9.3, "max": 99.5, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008498 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 198.9, \"min\": 59.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 94.7, \"min\": 78.0, \"max\": 195.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 30.9, \"min\": 9.3, \"max\": 99.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad233_1095", "family": "bracket", "tier": 3, "seed": 2468008499, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "b5b72ab377809010", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6740.0, "surface_area": 3780.0, "principal_moments": [544000.0, 1640000.0, 1890000.0], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 39.55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 41.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 16.71, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 6.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.1, "min": 2.5, "max": 8.4, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008499 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 39.55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 41.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 16.71, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 6.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.1, \"min\": 2.5, \"max\": 8.4, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad234_1096", "family": "compound", "tier": 1, "seed": 2468008500, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "1d48b0a700a9d4e0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23400.0, "surface_area": 5890.0, "principal_moments": [2500000.0, 3940000.0, 4480000.0], "n_faces": 16, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 27.94, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 37.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 22.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 4.8, "min": 2.4, "max": 7.8, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 10.4, "min": 2.7, "max": 35.5, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 4.0, "min": 2.0, "max": 6.4, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008500 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 27.94, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 37.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 22.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 4.8, \"min\": 2.4, \"max\": 7.8, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 10.4, \"min\": 2.7, \"max\": 35.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 6.4, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad236_1098", "family": "enclosure", "tier": 3, "seed": 2468008502, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "2527471d88804298", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45700.0, "surface_area": 24300.0, "principal_moments": [28099999.999999996, 30199999.999999996, 45799999.99999999], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 65, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 61.5, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 36.8, "min": 14.7, "max": 73.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.9, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008502 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 65, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 61.5, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 36.8, \"min\": 14.7, \"max\": 73.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.9, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.044065649742746064)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad237_1099", "family": "bracket", "tier": 1, "seed": 2468008503, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "4cb6b8576876c382", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 62100.0, "surface_area": 18900.0, "principal_moments": [28899999.999999996, 66299999.99999999, 68600000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 71.16, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 79.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 54.8, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008503 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 71.16, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 79.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 54.8, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad23a_1102", "family": "block", "tier": 1, "seed": 2468008506, "symmetry": "none", "op_count": 2, "ir_hash": "05f4deb6effe7da0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6940.0, "surface_area": 2920.0, "principal_moments": [357000.0, 481000.0, 635000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 25.92, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 13.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 21.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.3, "min": 2.0, "max": 3.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008506 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25.92, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 13.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 21.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.3, \"min\": 2.0, \"max\": 3.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad23b_1103", "family": "flanged", "tier": 2, "seed": 2468008507, "symmetry": "none", "op_count": 2, "ir_hash": "7bc2236b4cc70bf3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 141000.0, "surface_area": 31500.0, "principal_moments": [111000000.0, 111000000.0, 111000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 52.4, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 63.7, "min": 19.1, "max": 159.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 28.8, "min": 2.0, "max": 36.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 96.8, "min": 68.1, "max": 157.2, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.7, "min": 2.6, "max": 25.5, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 29.0, "min": 19.4, "max": 43.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008507 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 52.4, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 63.7, \"min\": 19.1, \"max\": 159.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 28.8, \"min\": 2.0, \"max\": 36.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 96.8, \"min\": 68.1, \"max\": 157.2, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.7, \"min\": 2.6, \"max\": 25.5, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 29.0, \"min\": 19.4, \"max\": 43.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad23c_1104", "family": "gear", "tier": 2, "seed": 2468008508, "symmetry": "none", "op_count": 1, "ir_hash": "8e587613e5fd765e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7150.0, "surface_area": 4110.0, "principal_moments": [796000.0, 796000.0, 1550000.0], "n_faces": 315, "n_edges": 1017, "n_vertices": 704}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 39, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.7, "min": 2.3, "max": 14.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 19.9, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": -0.29, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.29, "min": 0.0, "max": 0.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 8.0, "min": 2.0, "max": 21.9, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008508 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 39, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.3, \"max\": 14.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 19.9, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.29, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.29, \"min\": 0.0, \"max\": 0.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 21.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad23d_1105", "family": "enclosure", "tier": 2, "seed": 2468008509, "symmetry": "none", "op_count": 4, "ir_hash": "c16a27b0cb578cda", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42900.0, "surface_area": 25400.0, "principal_moments": [18000000.0, 41300000.0, 45100000.0], "n_faces": 35, "n_edges": 108, "n_vertices": 72}, "params": {"enc_w": {"type": "float", "default": 83.79, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 42.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 40.6, "min": 16.2, "max": 81.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 9.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008509 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 83.79, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 42.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 40.6, \"min\": 16.2, \"max\": 81.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 9.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.04962933404472552)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad23e_1106", "family": "compound", "tier": 1, "seed": 2468008510, "symmetry": "none", "op_count": 2, "ir_hash": "d33a69f8c066377f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5310.0, "surface_area": 2120.0, "principal_moments": [283000.0, 365000.0, 365000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 13.25, "min": 7.9, "max": 21.2, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 7.3, "min": 2.9, "max": 18.2, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 12.6, "min": 6.3, "max": 18.4, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 15.9, "min": 4.8, "max": 39.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008510 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 13.25, \"min\": 7.9, \"max\": 21.2, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 7.3, \"min\": 2.9, \"max\": 18.2, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 12.6, \"min\": 6.3, \"max\": 18.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 15.9, \"min\": 4.8, \"max\": 39.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad23f_1107", "family": "plate", "tier": 2, "seed": 2468008511, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "a1721876f5e0e5e8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3400.0, "surface_area": 2130.0, "principal_moments": [94500.0, 449000.0, 529000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 40, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 17.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008511 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 17.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.04411283379078197)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad241_1109", "family": "compound", "tier": 2, "seed": 2468008513, "symmetry": "none", "op_count": 2, "ir_hash": "6554d87013b9376a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42500.0, "surface_area": 9810.0, "principal_moments": [7290000.0, 12799999.999999998, 12799999.999999998], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 36.8, "min": 18.4, "max": 66.2, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 36.4, "min": 14.6, "max": 72.8, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 25.9, "min": 12.9, "max": 33.1, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 19.4, "min": 5.8, "max": 48.5, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 12.1, "min": 2.0, "max": 18.6, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008513 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 36.8, \"min\": 18.4, \"max\": 66.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 36.4, \"min\": 14.6, \"max\": 72.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 25.9, \"min\": 12.9, \"max\": 33.1, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 19.4, \"min\": 5.8, \"max\": 48.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 12.1, \"min\": 2.0, \"max\": 18.6, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad242_1110", "family": "block", "tier": 2, "seed": 2468008514, "symmetry": "none", "op_count": 3, "ir_hash": "000eb600e4f497b6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 181000.0, "surface_area": 32600.0, "principal_moments": [94499999.99999999, 161000000.0, 227000000.0], "n_faces": 25, "n_edges": 81, "n_vertices": 54}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 29.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.2, "min": 2.0, "max": 2.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "pocket_w": {"type": "float", "default": 31.3, "min": 15.7, "max": 56.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 14.7, "min": 7.3, "max": 23.3, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 43.6, "min": 17.4, "max": 85.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008514 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 29.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 2.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"pocket_w\": {\"type\": 'float', \"default\": 31.3, \"min\": 15.7, \"max\": 56.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 14.7, \"min\": 7.3, \"max\": 23.3, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 43.6, \"min\": 17.4, \"max\": 85.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 13.1\n _ssy = 13.5\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad244_1112", "family": "plate", "tier": 1, "seed": 2468008516, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "45523a35dc1645ac", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1570.0, "surface_area": 1450.0, "principal_moments": [53300.0, 95600.0, 147000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 27.3, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 20.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008516 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 27.3, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 20.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad245_1113", "family": "plate", "tier": 1, "seed": 2468008517, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3d6be0e9a553a870", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9720.0, "surface_area": 6110.0, "principal_moments": [1810000.0, 2350000.0, 4140000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 48.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 10.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008517 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 48.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 10.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad246_1114", "family": "plate", "tier": 2, "seed": 2468008518, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "fe194cdd82b01cee", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4060.0, "surface_area": 2090.0, "principal_moments": [91100.0, 367000.0, 370000.0], "n_faces": 30, "n_edges": 84, "n_vertices": 56}, "params": {"plate_w": {"type": "float", "default": 31.67, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 11.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.6, "min": 2.0, "max": 2.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "cb_d": {"type": "float", "default": 5.2, "min": 3.9, "max": 7.8, "step": 0.5, "group": "Holes", "label": "Counterbore diameter (mm)"}, "cb_depth": {"type": "float", "default": 2.1, "min": 1.1, "max": 4.2, "step": 0.5, "group": "Holes", "label": "Counterbore depth (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008518 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 31.67, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 11.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.6, \"min\": 2.0, \"max\": 2.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"cb_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 3.9, \"max\": 7.8, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Counterbore diameter (mm)'},\n \"cb_depth\": {\"type\": 'float', \"default\": 2.1, \"min\": 1.1, \"max\": 4.2, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Counterbore depth (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cboreHole(p[\"hole_d\"], p[\"cb_d\"], p[\"cb_depth\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08042359258048658)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad247_1115", "family": "gear", "tier": 1, "seed": 2468008519, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "d37d93484fe902cd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 124000.0, "surface_area": 24300.0, "principal_moments": [70500000.0, 70500000.0, 132000000.0], "n_faces": 93, "n_edges": 273, "n_vertices": 182}, "params": {"module": {"type": "float", "default": 6.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 15, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 20.4, "min": 8.2, "max": 51.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 13.0, "min": 2.0, "max": 45.0, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008519 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 6.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 15, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 20.4, \"min\": 8.2, \"max\": 51.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 13.0, \"min\": 2.0, \"max\": 45.0, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad248_1116", "family": "compound", "tier": 1, "seed": 2468008520, "symmetry": "none", "op_count": 2, "ir_hash": "3b165e5f18b61f0d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7920.0, "surface_area": 3370.0, "principal_moments": [262000.0, 1430000.0, 1430000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 16.39, "min": 8.2, "max": 29.5, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 35.1, "min": 14.0, "max": 70.2, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 9.9, "min": 5.0, "max": 14.8, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 15.9, "min": 4.8, "max": 39.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 4.2, "min": 2.0, "max": 7.1, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008520 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 16.39, \"min\": 8.2, \"max\": 29.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 35.1, \"min\": 14.0, \"max\": 70.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 9.9, \"min\": 5.0, \"max\": 14.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 15.9, \"min\": 4.8, \"max\": 39.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 4.2, \"min\": 2.0, \"max\": 7.1, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad249_1117", "family": "plate", "tier": 1, "seed": 2468008521, "symmetry": "none", "op_count": 2, "ir_hash": "a48b1887352b26eb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 113000.0, "surface_area": 24500.0, "principal_moments": [71400000.0, 114000000.0, 183000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 110, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 86.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008521 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 110, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 86.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad24a_1118", "family": "flanged", "tier": 1, "seed": 2468008522, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "bf211f9c7c5d9845", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30500.0, "surface_area": 14100.0, "principal_moments": [9270000.0, 10600000.0, 10600000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 30, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 43.4, "min": 13.0, "max": 108.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 15.6, "min": 2.0, "max": 21.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 70.7, "min": 39.0, "max": 90.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 2.6, "min": 0.8, "max": 17.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 21.2, "min": 14.1, "max": 31.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008522 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 43.4, \"min\": 13.0, \"max\": 108.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 15.6, \"min\": 2.0, \"max\": 21.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 70.7, \"min\": 39.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 2.6, \"min\": 0.8, \"max\": 17.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 21.2, \"min\": 14.1, \"max\": 31.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad24c_1120", "family": "threaded", "tier": 2, "seed": 2468008524, "symmetry": "none", "op_count": 1, "ir_hash": "3fb9a03841e8e258", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3110.0, "surface_area": 2650.0, "principal_moments": [29500.0, 788000.0, 788000.0], "n_faces": 265, "n_edges": 681, "n_vertices": 418}, "params": {"thread_size": {"type": "enum", "default": "3/8", "choices": ["1/4", "5/16", "3/8", "1/2", "5/8", "3/4", "7/8", "1", "1 1/4", "1 1/2"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 55.0, "min": 22.0, "max": 110.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008524 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '3/8', \"choices\": ['1/4', '5/16', '3/8', '1/2', '5/8', '3/4', '7/8', '1', '1 1/4', '1 1/2'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 55.0, \"min\": 22.0, \"max\": 110.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.AcmeThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad24e_1122", "family": "gear", "tier": 1, "seed": 2468008526, "symmetry": "none", "op_count": 1, "ir_hash": "3f451862f8feb009", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2760.0, "surface_area": 2390.0, "principal_moments": [199000.0, 199000.0, 393000.0], "n_faces": 201, "n_edges": 597, "n_vertices": 398}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 33, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 3.4, "min": 1.4, "max": 8.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 6.9, "min": 2.0, "max": 18.3, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008526 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 33, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 3.4, \"min\": 1.4, \"max\": 8.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 6.9, \"min\": 2.0, \"max\": 18.3, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad24f_1123", "family": "bracket", "tier": 1, "seed": 2468008527, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "a1bec89c91bec0be", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41600.0, "surface_area": 14700.0, "principal_moments": [12799999.999999998, 95799999.99999999, 105000000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 22.43, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 78.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 9.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008527 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 22.43, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 78.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 9.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad250_1124", "family": "plate", "tier": 1, "seed": 2468008528, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3c1f92183f00c29a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5030.0, "surface_area": 2370.0, "principal_moments": [141000.0, 468000.0, 488000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 31.63, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 14.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.9, "min": 2.0, "max": 3.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008528 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 31.63, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 14.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.9, \"min\": 2.0, \"max\": 3.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad251_1125", "family": "block", "tier": 2, "seed": 2468008529, "symmetry": "radial", "op_count": 3, "ir_hash": "16304c11a6de0db6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23500.0, "surface_area": 14400.0, "principal_moments": [4480000.0, 6960000.0, 9110000.0], "n_faces": 28, "n_edges": 72, "n_vertices": 44}, "params": {"block_w": {"type": "float", "default": 35.21, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 23.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 49.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 10.6, "min": 7.0, "max": 15.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "boss_d": {"type": "float", "default": 17.8, "min": 8.9, "max": 35.6, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 10.0, "min": 4.0, "max": 25.0, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 12.5, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008529 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35.21, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 23.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 49.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 10.6, \"min\": 7.0, \"max\": 15.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"boss_d\": {\"type\": 'float', \"default\": 17.8, \"min\": 8.9, \"max\": 35.6, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 25.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 12.5, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad252_1126", "family": "flanged", "tier": 1, "seed": 2468008530, "symmetry": "none", "op_count": 2, "ir_hash": "95f1b82f8cd32833", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 58800.0, "surface_area": 17500.0, "principal_moments": [21700000.0, 21700000.0, 35600000.0], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 50, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 26.5, "min": 7.9, "max": 66.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 20.2, "min": 2.0, "max": 35.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 85.8, "min": 65.0, "max": 150.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.4, "min": 1.3, "max": 10.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 25.7, "min": 17.2, "max": 38.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008530 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 26.5, \"min\": 7.9, \"max\": 66.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 20.2, \"min\": 2.0, \"max\": 35.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 85.8, \"min\": 65.0, \"max\": 150.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.4, \"min\": 1.3, \"max\": 10.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 25.7, \"min\": 17.2, \"max\": 38.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad254_1128", "family": "block", "tier": 1, "seed": 2468008532, "symmetry": "none", "op_count": 2, "ir_hash": "890d1228c2ec8578", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 599000.0, "surface_area": 48400.0, "principal_moments": [629000000.0, 724000000.0, 904000000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 90, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 67.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008532 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 90, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 67.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 33.8\n _ssy = 29.5\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad255_1129", "family": "plate", "tier": 1, "seed": 2468008533, "symmetry": "none", "op_count": 2, "ir_hash": "f3c74a50781d97c6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5000.0, "surface_area": 3700.0, "principal_moments": [255000.0, 1260000.0, 1500000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"plate_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 24.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.8, "min": 2.0, "max": 2.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008533 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 24.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.8, \"min\": 2.0, \"max\": 2.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(14.7, 6.5, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad256_1130", "family": "ribbed", "tier": 2, "seed": 2468008534, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "8e6c13337251fdd7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 56900.0, "surface_area": 19000.0, "principal_moments": [19000000.0, 26599999.999999996, 42800000.0], "n_faces": 39, "n_edges": 108, "n_vertices": 72}, "params": {"base_w": {"type": "float", "default": 75, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 63.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 9.3, "min": 3.7, "max": 18.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.1, "min": 1.0, "max": 12.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008534 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 75, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 63.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 9.3, \"min\": 3.7, \"max\": 18.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.1, \"min\": 1.0, \"max\": 12.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad257_1131", "family": "compound", "tier": 1, "seed": 2468008535, "symmetry": "none", "op_count": 2, "ir_hash": "03ef0bbe34722a20", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 321000.0, "surface_area": 36200.0, "principal_moments": [231000000.0, 296000000.0, 366000000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 47.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 89.9, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 31.9, "min": 12.8, "max": 52.5, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 30.1, "min": 9.6, "max": 127.6, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 19.0, "min": 2.0, "max": 23.0, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008535 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 47.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 89.9, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 31.9, \"min\": 12.8, \"max\": 52.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 30.1, \"min\": 9.6, \"max\": 127.6, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 19.0, \"min\": 2.0, \"max\": 23.0, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad258_1132", "family": "plate", "tier": 1, "seed": 2468008536, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "434c01383f858b65", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1890.0, "surface_area": 1300.0, "principal_moments": [24300.0, 146000.0, 159000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 30.19, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 11.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.3, "min": 2.0, "max": 2.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008536 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30.19, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 11.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.3, \"min\": 2.0, \"max\": 2.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad259_1133", "family": "profiled", "tier": 0, "seed": 2468008537, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "f391a5612c0929cc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8110.0, "surface_area": 3090.0, "principal_moments": [154000.0, 3290000.0, 3290000.0], "n_faces": 7, "n_edges": 15, "n_vertices": 10}, "params": {"circ_r": {"type": "float", "default": 7.03, "min": 3.5, "max": 14.1, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 69.0, "min": 20.7, "max": 207.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008537 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 7.03, \"min\": 3.5, \"max\": 14.1, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 69.0, \"min\": 20.7, \"max\": 207.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad25a_1134", "family": "block", "tier": 2, "seed": 2468008538, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "ac7c34b6e7f6bf3e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5920.0, "surface_area": 2940.0, "principal_moments": [231000.0, 485000.0, 581000.0], "n_faces": 42, "n_edges": 120, "n_vertices": 80}, "params": {"block_w": {"type": "float", "default": 30, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 12.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 18.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.5, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008538 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 12.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 18.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.5, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.09240736969255575)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad25b_1135", "family": "compound", "tier": 1, "seed": 2468008539, "symmetry": "none", "op_count": 3, "ir_hash": "83980e7bba380056", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 150000.0, "surface_area": 20200.0, "principal_moments": [66199999.99999999, 73000000.0, 82200000.0], "n_faces": 22, "n_edges": 58, "n_vertices": 38}, "params": {"block_w": {"type": "float", "default": 59.09, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 54.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 47.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 7.0, "min": 3.5, "max": 10.7, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 8.5, "min": 2.8, "max": 34.0, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 6.3, "min": 2.0, "max": 8.2, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008539 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 59.09, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 54.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 47.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 7.0, \"min\": 3.5, \"max\": 10.7, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 8.5, \"min\": 2.8, \"max\": 34.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 6.3, \"min\": 2.0, \"max\": 8.2, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad25c_1136", "family": "block", "tier": 2, "seed": 2468008540, "symmetry": "radial", "op_count": 3, "ir_hash": "6da69dbed1d4c90f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 93400.0, "surface_area": 22700.0, "principal_moments": [29999999.999999996, 44100000.0, 58599999.99999999], "n_faces": 40, "n_edges": 114, "n_vertices": 76}, "params": {"block_w": {"type": "float", "default": 67.02, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 32.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 53.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 20.1, "min": 13.4, "max": 30.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008540 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 67.02, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 32.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 53.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 20.1, \"min\": 13.4, \"max\": 30.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.09149154542718624)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad25d_1137", "family": "block", "tier": 3, "seed": 2468008541, "symmetry": "none", "op_count": 5, "ir_hash": "abbfff596b09e9e4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24800.0, "surface_area": 9370.0, "principal_moments": [2590000.0, 6080000.0, 7180000.0], "n_faces": 21, "n_edges": 51, "n_vertices": 34}, "params": {"block_w": {"type": "float", "default": 30, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 18.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 47.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 13.0, "min": 6.5, "max": 26.0, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 10.7, "min": 4.3, "max": 26.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.1, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}, "filleted2": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "side_tube_d": {"type": "float", "default": 6.0, "min": 2.4, "max": 15.0, "step": 1.0, "group": "Side Tube", "label": "Side tube diameter (mm)"}, "side_tube_len": {"type": "float", "default": 7.0, "min": 2.1, "max": 18.0, "step": 1.0, "group": "Side Tube", "label": "Side tube length (mm)"}, "side_bore_d": {"type": "float", "default": 3.3, "min": 2.0, "max": 4.5, "step": 0.5, "group": "Side Tube", "label": "Side bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008541 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 18.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 47.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 13.0, \"min\": 6.5, \"max\": 26.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 10.7, \"min\": 4.3, \"max\": 26.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.1, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n \"filleted2\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"side_tube_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.4, \"max\": 15.0, \"step\": 1.0, \"group\": 'Side Tube', \"label\": 'Side tube diameter (mm)'},\n \"side_tube_len\": {\"type\": 'float', \"default\": 7.0, \"min\": 2.1, \"max\": 18.0, \"step\": 1.0, \"group\": 'Side Tube', \"label\": 'Side tube length (mm)'},\n \"side_bore_d\": {\"type\": 'float', \"default\": 3.3, \"min\": 2.0, \"max\": 4.5, \"step\": 0.5, \"group\": 'Side Tube', \"label\": 'Side bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.0551183752643744)\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"side_tube_d\"] / 2).extrude(p[\"side_tube_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"side_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad25e_1138", "family": "bracket", "tier": 1, "seed": 2468008542, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "9a7ac50164d79064", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30400.0, "surface_area": 13000.0, "principal_moments": [7660000.0, 53699999.99999999, 58199999.99999999], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 66.14, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 77.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 71.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008542 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 66.14, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 77.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 71.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad25f_1139", "family": "compound", "tier": 1, "seed": 2468008543, "symmetry": "none", "op_count": 3, "ir_hash": "b6c6e9ef5982d5d4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 36700.0, "surface_area": 11400.0, "principal_moments": [7890000.0, 17600000.0, 23199999.999999996], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"base_w": {"type": "float", "default": 74.77, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 47.9, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 10.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 4.2, "min": 2.1, "max": 11.9, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 36.5, "min": 10.9, "max": 109.5, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 3.5, "min": 2.0, "max": 5.2, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 10.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008543 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 74.77, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 47.9, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 10.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 4.2, \"min\": 2.1, \"max\": 11.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 36.5, \"min\": 10.9, \"max\": 109.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 3.5, \"min\": 2.0, \"max\": 5.2, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 10.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad260_1140", "family": "bracket", "tier": 1, "seed": 2468008544, "symmetry": "none", "op_count": 1, "ir_hash": "1fd8ca8e7a8a347a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29100.0, "surface_area": 11600.0, "principal_moments": [9060000.0, 14699999.999999998, 17900000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 48.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008544 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 48.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad263_1143", "family": "gear", "tier": 1, "seed": 2468008547, "symmetry": "none", "op_count": 1, "ir_hash": "95be51f45cb9a8d9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12500.0, "surface_area": 5400.0, "principal_moments": [1600000.0, 1600000.0, 3040000.0], "n_faces": 177, "n_edges": 525, "n_vertices": 350}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 29, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 8.7, "min": 3.5, "max": 21.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 6.9, "min": 2.0, "max": 23.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008547 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 29, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 8.7, \"min\": 3.5, \"max\": 21.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 6.9, \"min\": 2.0, \"max\": 23.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad264_1144", "family": "threaded", "tier": 1, "seed": 2468008548, "symmetry": "none", "op_count": 1, "ir_hash": "ac9db59b0181b8b8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6400.0, "surface_area": 3830.0, "principal_moments": [326000.0, 773000.0, 773000.0], "n_faces": 183, "n_edges": 665, "n_vertices": 484}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 33.9, "min": 13.6, "max": 67.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008548 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 33.9, \"min\": 13.6, \"max\": 67.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad266_1146", "family": "plate", "tier": 1, "seed": 2468008550, "symmetry": "radial", "op_count": 2, "ir_hash": "0298001ccc7e7790", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16200.0, "surface_area": 5190.0, "principal_moments": [1150000.0, 5000000.0, 5880000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 27.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 18.0, "min": 12.0, "max": 27.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008550 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 27.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 18.0, \"min\": 12.0, \"max\": 27.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad267_1147", "family": "gear", "tier": 1, "seed": 2468008551, "symmetry": "none", "op_count": 1, "ir_hash": "276882b62b600e64", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9320.0, "surface_area": 4240.0, "principal_moments": [850000.0, 850000.0, 1560000.0], "n_faces": 147, "n_edges": 435, "n_vertices": 290}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 24, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 9.5, "min": 3.8, "max": 23.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 5.5, "min": 2.0, "max": 19.3, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008551 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 24, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 9.5, \"min\": 3.8, \"max\": 23.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.0, \"max\": 19.3, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad268_1148", "family": "block", "tier": 3, "seed": 2468008552, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "93da6aabc3d8da2a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16800.0, "surface_area": 5770.0, "principal_moments": [1650000.0, 1670000.0, 2120000.0], "n_faces": 49, "n_edges": 142, "n_vertices": 96}, "params": {"block_w": {"type": "float", "default": 30, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 21.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 22.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 6.4, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "boss_d": {"type": "float", "default": 21.3, "min": 10.7, "max": 42.6, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 7.5, "min": 3.0, "max": 18.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 14.9, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}, "filleted2": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008552 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 21.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 22.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 6.4, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 21.3, \"min\": 10.7, \"max\": 42.6, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 7.5, \"min\": 3.0, \"max\": 18.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 14.9, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n \"filleted2\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.07536041461003966)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad269_1149", "family": "revolved", "tier": 1, "seed": 2468008553, "symmetry": "radial", "op_count": 1, "ir_hash": "cd543347d6f3a380", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61300.0, "surface_area": 14000.0, "principal_moments": [19300000.0, 21000000.0, 21000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 45.82, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 55.8, "min": 16.7, "max": 167.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008553 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45.82, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 55.8, \"min\": 16.7, \"max\": 167.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad26a_1150", "family": "revolved", "tier": 1, "seed": 2468008554, "symmetry": "none", "op_count": 2, "ir_hash": "1be0c7acd8c79560", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2030.0, "surface_area": 1550.0, "principal_moments": [29900.0, 188000.0, 188000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 9.98, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 33.3, "min": 10.0, "max": 99.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 7.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 1.4, "min": 0.1, "max": 4.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008554 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 9.98, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 33.3, \"min\": 10.0, \"max\": 99.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 7.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.4, \"min\": 0.1, \"max\": 4.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad26d_1153", "family": "revolved", "tier": 1, "seed": 2468008557, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "703ea0688bd65910", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1130000.0, "surface_area": 92300.0, "principal_moments": [948000000.0, 6810000000.0, 6810000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 78.29, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 259.5, "min": 77.8, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 24.3, "min": 2.0, "max": 54.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008557 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 78.29, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 259.5, \"min\": 77.8, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 24.3, \"min\": 2.0, \"max\": 54.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad270_1156", "family": "gear", "tier": 3, "seed": 2468008560, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "21842a27f4d8e2d4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 43600.0, "surface_area": 12300.0, "principal_moments": [11799999.999999998, 11799999.999999998, 22100000.0], "n_faces": 353, "n_edges": 876, "n_vertices": 526}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 29, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 13.9, "min": 5.6, "max": 34.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 24.5, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": -0.08, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.54, "min": 0.0, "max": 1.0, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 8.3, "min": 2.0, "max": 31.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}, "hub_d": {"type": "float", "default": 14.9, "min": 11.6, "max": 29.0, "step": 1.0, "group": "Hub", "label": "Hub diameter (mm)"}, "hub_h": {"type": "float", "default": 5.6, "min": 1.7, "max": 11.2, "step": 0.5, "group": "Hub", "label": "Hub height (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008560 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 29, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 13.9, \"min\": 5.6, \"max\": 34.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 24.5, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.08, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.54, \"min\": 0.0, \"max\": 1.0, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 8.3, \"min\": 2.0, \"max\": 31.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n \"hub_d\": {\"type\": 'float', \"default\": 14.9, \"min\": 11.6, \"max\": 29.0, \"step\": 1.0, \"group\": 'Hub', \"label\": 'Hub diameter (mm)'},\n \"hub_h\": {\"type\": 'float', \"default\": 5.6, \"min\": 1.7, \"max\": 11.2, \"step\": 0.5, \"group\": 'Hub', \"label\": 'Hub height (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=True, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"hub_d\"] / 2).extrude(p[\"hub_h\"])\n )\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad271_1157", "family": "block", "tier": 2, "seed": 2468008561, "symmetry": "none", "op_count": 3, "ir_hash": "a6517c40df2d2356", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 304000.0, "surface_area": 32500.0, "principal_moments": [172000000.0, 285000000.0, 317000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 92.59, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 53.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 63.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 11.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 9.5, "min": 4.8, "max": 19.0, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 11.2, "min": 4.5, "max": 28.0, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008561 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 92.59, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 53.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 63.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 11.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 9.5, \"min\": 4.8, \"max\": 19.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 11.2, \"min\": 4.5, \"max\": 28.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad272_1158", "family": "revolved", "tier": 1, "seed": 2468008562, "symmetry": "radial", "op_count": 2, "ir_hash": "e82e0a88c1ac7e41", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 820.0, "surface_area": 679.0, "principal_moments": [15700.0, 15700.0, 26500.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 14.88, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 7.4, "min": 2.2, "max": 22.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008562 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 14.88, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 7.4, \"min\": 2.2, \"max\": 22.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 3.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad274_1160", "family": "gear", "tier": 3, "seed": 2468008564, "symmetry": "none", "op_count": 1, "ir_hash": "5c5c895bd7fc53e1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8440.0, "surface_area": 4430.0, "principal_moments": [644000.0, 644000.0, 850000.0], "n_faces": 71, "n_edges": 204, "n_vertices": 136}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 11, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 14.5, "min": 5.8, "max": 36.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 12.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}, "hub_d": {"type": "float", "default": 6.9, "min": 5.3, "max": 13.8, "step": 1.0, "group": "Hub", "label": "Hub diameter (mm)"}, "hub_h": {"type": "float", "default": 14.1, "min": 4.2, "max": 28.2, "step": 0.5, "group": "Hub", "label": "Hub height (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008564 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 11, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 14.5, \"min\": 5.8, \"max\": 36.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 12.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n \"hub_d\": {\"type\": 'float', \"default\": 6.9, \"min\": 5.3, \"max\": 13.8, \"step\": 1.0, \"group\": 'Hub', \"label\": 'Hub diameter (mm)'},\n \"hub_h\": {\"type\": 'float', \"default\": 14.1, \"min\": 4.2, \"max\": 28.2, \"step\": 0.5, \"group\": 'Hub', \"label\": 'Hub height (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.CycloidGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"hub_d\"] / 2).extrude(p[\"hub_h\"])\n )\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad275_1161", "family": "bracket", "tier": 1, "seed": 2468008565, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "78ac89d3b30d29b7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19200.0, "surface_area": 14400.0, "principal_moments": [5370000.0, 36700000.0, 39000000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 70.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30.91, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 74.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008565 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 70.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30.91, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 74.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad276_1162", "family": "compound", "tier": 2, "seed": 2468008566, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "159a008c7e4f8d0b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21600.0, "surface_area": 5610.0, "principal_moments": [2700000.0, 2810000.0, 3980000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 30, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 34.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 20.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 4.3, "min": 2.1, "max": 7.3, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 16.7, "min": 2.2, "max": 29.8, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 3.4, "min": 2.0, "max": 5.4, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008566 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 34.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 20.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.1, \"max\": 7.3, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 16.7, \"min\": 2.2, \"max\": 29.8, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 3.4, \"min\": 2.0, \"max\": 5.4, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad277_1163", "family": "ribbed", "tier": 2, "seed": 2468008567, "symmetry": "none", "op_count": 2, "ir_hash": "aaf17db50b08a571", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 48200.0, "surface_area": 19300.0, "principal_moments": [11499999.999999998, 25399999.999999996, 33299999.999999996], "n_faces": 54, "n_edges": 132, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 77.97, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 40.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 12.2, "min": 4.9, "max": 24.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.7, "min": 1.0, "max": 9.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008567 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 77.97, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 40.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 12.2, \"min\": 4.9, \"max\": 24.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.7, \"min\": 1.0, \"max\": 9.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad278_1164", "family": "bracket", "tier": 1, "seed": 2468008568, "symmetry": "none", "op_count": 1, "ir_hash": "3d36b621a1f8db07", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10800.0, "surface_area": 5720.0, "principal_moments": [1380000.0, 6560000.0, 7210000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 44.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008568 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 44.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad27a_1166", "family": "bracket", "tier": 3, "seed": 2468008570, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "7dd822cf00f2ef4a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7720.0, "surface_area": 5850.0, "principal_moments": [1260000.0, 1500000.0, 1810000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 29.29, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.8, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008570 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 29.29, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.8, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad27b_1167", "family": "enclosure", "tier": 1, "seed": 2468008571, "symmetry": "none", "op_count": 2, "ir_hash": "51b13b6caf15c34e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24400.0, "surface_area": 23800.0, "principal_moments": [8970000.0, 22400000.0, 22600000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 80, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 33.9, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 42.8, "min": 17.1, "max": 85.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.1, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008571 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 80, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 33.9, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 42.8, \"min\": 17.1, \"max\": 85.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.1, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad27c_1168", "family": "profiled", "tier": 1, "seed": 2468008572, "symmetry": "none", "op_count": 1, "ir_hash": "90872c283da65e15", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5930.0, "surface_area": 4490.0, "principal_moments": [246000.0, 1570000.0, 1570000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 15.35, "min": 7.7, "max": 30.7, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 54.1, "min": 16.2, "max": 162.3, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 9.8, "min": 2.0, "max": 12.3, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008572 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 15.35, \"min\": 7.7, \"max\": 30.7, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 54.1, \"min\": 16.2, \"max\": 162.3, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 9.8, \"min\": 2.0, \"max\": 12.3, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad27d_1169", "family": "revolved", "tier": 0, "seed": 2468008573, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "194403c1bcbb665b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 91300.0, "surface_area": 17500.0, "principal_moments": [43700000.0, 43700000.0, 77000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 31.0, "min": 9.3, "max": 93.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008573 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 31.0, \"min\": 9.3, \"max\": 93.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad27e_1170", "family": "gear", "tier": 1, "seed": 2468008574, "symmetry": "none", "op_count": 1, "ir_hash": "987257c948067012", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15000.0, "surface_area": 6630.0, "principal_moments": [2670000.0, 2670000.0, 5210000.0], "n_faces": 159, "n_edges": 471, "n_vertices": 314}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 26, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 7.3, "min": 2.9, "max": 18.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 7.6, "min": 2.0, "max": 28.2, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008574 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 26, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 7.3, \"min\": 2.9, \"max\": 18.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 7.6, \"min\": 2.0, \"max\": 28.2, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad27f_1171", "family": "bracket", "tier": 2, "seed": 2468008575, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "61f9d79d178af0cc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11300.0, "surface_area": 5630.0, "principal_moments": [1840000.0, 1880000.0, 2940000.0], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 30.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.4, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008575 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 30.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.4, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad280_1172", "family": "bracket", "tier": 3, "seed": 2468008576, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "a1dca33dfd42c230", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17800.0, "surface_area": 9220.0, "principal_moments": [2960000.0, 24799999.999999996, 26999999.999999996], "n_faces": 22, "n_edges": 54, "n_vertices": 36}, "params": {"base_len": {"type": "float", "default": 76.09, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 60.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 16.51, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 64.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 6.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 6.6, "min": 2.5, "max": 8.3, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008576 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 76.09, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 60.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 16.51, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 64.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 6.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.6, \"min\": 2.5, \"max\": 8.3, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad281_1173", "family": "bracket", "tier": 1, "seed": 2468008577, "symmetry": "none", "op_count": 1, "ir_hash": "768c906228ed65c8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 44500.0, "surface_area": 15400.0, "principal_moments": [10200000.0, 103000000.0, 108000000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 86.03, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 64.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008577 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 86.03, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 64.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad282_1174", "family": "bracket", "tier": 1, "seed": 2468008578, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "dca3ebfae9cffa0d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22600.0, "surface_area": 9670.0, "principal_moments": [5590000.0, 20400000.0, 23099999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 81.39, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 62.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 27.41, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008578 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 81.39, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 62.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 27.41, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad285_1177", "family": "block", "tier": 2, "seed": 2468008581, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "7359e64d64c8cad6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 77500.0, "surface_area": 18400.0, "principal_moments": [22300000.0, 37200000.0, 50899999.99999999], "n_faces": 19, "n_edges": 57, "n_vertices": 38}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 24.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 75.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "pocket_w": {"type": "float", "default": 31.3, "min": 15.7, "max": 40.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 16.8, "min": 8.4, "max": 19.7, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 27.4, "min": 11.0, "max": 64.3, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008581 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 24.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 75.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"pocket_w\": {\"type\": 'float', \"default\": 31.3, \"min\": 15.7, \"max\": 40.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 16.8, \"min\": 8.4, \"max\": 19.7, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 27.4, \"min\": 11.0, \"max\": 64.3, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 18.8\n _ssy = 17.5\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad286_1178", "family": "threaded", "tier": 2, "seed": 2468008582, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "81c8a6ecfcf9ff77", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3230.0, "surface_area": 2060.0, "principal_moments": [49100.0, 342000.0, 342000.0], "n_faces": 204, "n_edges": 522, "n_vertices": 320}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 34.5, "min": 13.8, "max": 69.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008582 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 34.5, \"min\": 13.8, \"max\": 69.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad287_1179", "family": "ribbed", "tier": 1, "seed": 2468008583, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "81bfd3f688cecb04", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30500.0, "surface_area": 11000.0, "principal_moments": [6480000.0, 13099999.999999998, 19000000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 70, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 48.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 6.1, "min": 2.4, "max": 12.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.3, "min": 1.0, "max": 8.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008583 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 48.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 6.1, \"min\": 2.4, \"max\": 12.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.3, \"min\": 1.0, \"max\": 8.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad288_1180", "family": "compound", "tier": 2, "seed": 2468008584, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "592cbff437752990", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 40100.0, "surface_area": 7760.0, "principal_moments": [6900000.0, 10800000.0, 10800000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"base_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 24.23, "min": 14.5, "max": 38.8, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 18.6, "min": 7.4, "max": 46.5, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 24.4, "min": 12.2, "max": 31.4, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 30.3, "min": 9.1, "max": 75.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008584 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 24.23, \"min\": 14.5, \"max\": 38.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 18.6, \"min\": 7.4, \"max\": 46.5, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 24.4, \"min\": 12.2, \"max\": 31.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 30.3, \"min\": 9.1, \"max\": 75.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad289_1181", "family": "block", "tier": 2, "seed": 2468008585, "symmetry": "radial", "op_count": 3, "ir_hash": "4ee28250ef5c4708", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 320000.0, "surface_area": 39100.0, "principal_moments": [260000000.0, 312000000.0, 497000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 90, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 36.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 27.0, "min": 18.0, "max": 40.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "boss_d": {"type": "float", "default": 24.8, "min": 12.4, "max": 49.6, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 10.7, "min": 4.3, "max": 26.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 13.0, "min": 2.0, "max": 17.4, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008585 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 90, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 36.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 27.0, \"min\": 18.0, \"max\": 40.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"boss_d\": {\"type\": 'float', \"default\": 24.8, \"min\": 12.4, \"max\": 49.6, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 10.7, \"min\": 4.3, \"max\": 26.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 13.0, \"min\": 2.0, \"max\": 17.4, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad28a_1182", "family": "plate", "tier": 3, "seed": 2468008586, "symmetry": "none", "op_count": 4, "ir_hash": "54b1f4c5eee5456f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22100.0, "surface_area": 10900.0, "principal_moments": [2890000.0, 25199999.999999996, 27899999.999999996], "n_faces": 22, "n_edges": 57, "n_vertices": 38}, "params": {"plate_w": {"type": "float", "default": 111.65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 37.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "pocket_w": {"type": "float", "default": 57.8, "min": 28.9, "max": 89.3, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 21.6, "min": 10.8, "max": 30.2, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 2.3, "min": 0.9, "max": 5.1, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008586 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 111.65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 37.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"pocket_w\": {\"type\": 'float', \"default\": 57.8, \"min\": 28.9, \"max\": 89.3, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 21.6, \"min\": 10.8, \"max\": 30.2, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 2.3, \"min\": 0.9, \"max\": 5.1, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 27.9\n _ssy = 26.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07878325298380426)\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad28b_1183", "family": "plate", "tier": 1, "seed": 2468008587, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "f953e175c324c6f1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1210.0, "surface_area": 933.0, "principal_moments": [13400.0, 49000.0, 55100.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 21.49, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 10.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008587 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 21.49, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad28c_1184", "family": "block", "tier": 1, "seed": 2468008588, "symmetry": "none", "op_count": 2, "ir_hash": "44f2d235c64b5973", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 226000.0, "surface_area": 28400.0, "principal_moments": [124000000.0, 145000000.0, 188000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 47.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 66.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 10.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008588 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 47.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 66.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 10.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad28d_1185", "family": "revolved", "tier": 1, "seed": 2468008589, "symmetry": "radial", "op_count": 2, "ir_hash": "6025798c3fc3585a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 102000.0, "surface_area": 23900.0, "principal_moments": [24399999.999999996, 101000000.0, 101000000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 40, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 121.4, "min": 36.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008589 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 121.4, \"min\": 36.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 3.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad28f_1187", "family": "block", "tier": 2, "seed": 2468008591, "symmetry": "radial", "op_count": 3, "ir_hash": "5b0c6d6326ff39f4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 231000.0, "surface_area": 29200.0, "principal_moments": [113000000.0, 180000000.0, 181000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 80.43, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 54.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 54.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.1, "min": 16.1, "max": 36.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008591 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80.43, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 54.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 54.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.1, \"min\": 16.1, \"max\": 36.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.10364752291741089)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad290_1188", "family": "revolved", "tier": 1, "seed": 2468008592, "symmetry": "none", "op_count": 2, "ir_hash": "7a94a25db83e8d5a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1170000.0, "surface_area": 118000.0, "principal_moments": [1490000000.0, 8490000000.0, 8490000000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 75.07, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 259.1, "min": 77.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 34.1, "min": 2.0, "max": 52.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 128.4, "min": 90.1, "max": 225.2, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 30.4, "min": 9.1, "max": 129.6, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 1.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008592 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75.07, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 259.1, \"min\": 77.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 34.1, \"min\": 2.0, \"max\": 52.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 128.4, \"min\": 90.1, \"max\": 225.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 30.4, \"min\": 9.1, \"max\": 129.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 1.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z or Z or Z or 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad295_1193", "family": "compound", "tier": 2, "seed": 2468008597, "symmetry": "none", "op_count": 3, "ir_hash": "b9f9c213f2e7636c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 66800.0, "surface_area": 20000.0, "principal_moments": [31499999.999999996, 59199999.99999999, 71900000.0], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"base_w": {"type": "float", "default": 103.33, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 68.7, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 8.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 9.3, "min": 4.7, "max": 17.2, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 47.9, "min": 14.4, "max": 143.7, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008597 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 103.33, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 68.7, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 9.3, \"min\": 4.7, \"max\": 17.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 47.9, \"min\": 14.4, \"max\": 143.7, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad296_1194", "family": "profiled", "tier": 1, "seed": 2468008598, "symmetry": "none", "op_count": 1, "ir_hash": "9f551ebca516b9b6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 56300.0, "surface_area": 9840.0, "principal_moments": [5280000.0, 46099999.99999999, 46099999.99999999], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"circ_r": {"type": "float", "default": 15, "min": 7.5, "max": 30.0, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 96.3, "min": 28.9, "max": 288.9, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008598 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 15, \"min\": 7.5, \"max\": 30.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 96.3, \"min\": 28.9, \"max\": 288.9, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad297_1195", "family": "revolved", "tier": 2, "seed": 2468008599, "symmetry": "none", "op_count": 2, "ir_hash": "d269e5fdec1f1b62", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45600.0, "surface_area": 9610.0, "principal_moments": [11999999.999999998, 11999999.999999998, 17300000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 50, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 30.0, "min": 9.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 23.4, "min": 2.0, "max": 35.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 1.4, "min": 0.1, "max": 4.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008599 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 30.0, \"min\": 9.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 23.4, \"min\": 2.0, \"max\": 35.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.4, \"min\": 0.1, \"max\": 4.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad299_1197", "family": "flanged", "tier": 1, "seed": 2468008601, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "2f0fefdd531bc17c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 75900.0, "surface_area": 20700.0, "principal_moments": [35500000.0, 37700000.0, 37700000.0], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 41.82, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 51.0, "min": 15.3, "max": 127.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.8, "min": 2.0, "max": 29.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 83.4, "min": 54.4, "max": 125.5, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.8, "min": 1.4, "max": 20.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 25.0, "min": 16.7, "max": 37.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008601 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 41.82, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 51.0, \"min\": 15.3, \"max\": 127.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.8, \"min\": 2.0, \"max\": 29.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 83.4, \"min\": 54.4, \"max\": 125.5, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.8, \"min\": 1.4, \"max\": 20.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 25.0, \"min\": 16.7, \"max\": 37.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad29a_1198", "family": "enclosure", "tier": 1, "seed": 2468008602, "symmetry": "none", "op_count": 2, "ir_hash": "3282c607cbf08a58", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 60900.0, "surface_area": 22600.0, "principal_moments": [24099999.999999996, 43200000.0, 46099999.99999999], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 70, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 36.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 48.2, "min": 19.3, "max": 96.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.7, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008602 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 70, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 36.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 48.2, \"min\": 19.3, \"max\": 96.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad29b_1199", "family": "block", "tier": 2, "seed": 2468008603, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "a598dc3f0a4e4367", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 352000.0, "surface_area": 60000.0, "principal_moments": [330000000.0, 368000000.0, 527000000.0], "n_faces": 27, "n_edges": 72, "n_vertices": 48}, "params": {"block_w": {"type": "float", "default": 88.35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 51.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 10.1, "min": 2.0, "max": 15.2, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "pocket_w": {"type": "float", "default": 50.7, "min": 25.4, "max": 70.7, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 27.1, "min": 13.6, "max": 41.5, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 48.1, "min": 19.2, "max": 85.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008603 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 88.35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 51.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.1, \"min\": 2.0, \"max\": 15.2, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 50.7, \"min\": 25.4, \"max\": 70.7, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 27.1, \"min\": 13.6, \"max\": 41.5, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 48.1, \"min\": 19.2, \"max\": 85.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad29c_1200", "family": "revolved", "tier": 1, "seed": 2468008604, "symmetry": "radial", "op_count": 1, "ir_hash": "f1944c0c4238f8fa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 311000.0, "surface_area": 37000.0, "principal_moments": [187000000.0, 416000000.0, 416000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 64.67, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 111.5, "min": 33.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 25.1, "min": 2.0, "max": 45.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008604 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 64.67, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 111.5, \"min\": 33.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 25.1, \"min\": 2.0, \"max\": 45.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad29d_1201", "family": "gear", "tier": 2, "seed": 2468008605, "symmetry": "none", "op_count": 1, "ir_hash": "bdaa80c8f67fead7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23400.0, "surface_area": 10200.0, "principal_moments": [7290000.0, 7290000.0, 14399999.999999998], "n_faces": 201, "n_edges": 597, "n_vertices": 398}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 33, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.3, "min": 2.5, "max": 15.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 15.0, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.3, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.5, "min": 0.0, "max": 1.0, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 8.8, "min": 2.0, "max": 36.6, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008605 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 33, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.3, \"min\": 2.5, \"max\": 15.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 15.0, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.3, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.5, \"min\": 0.0, \"max\": 1.0, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 8.8, \"min\": 2.0, \"max\": 36.6, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad2a0_1204", "family": "revolved", "tier": 0, "seed": 2468008608, "symmetry": "radial", "op_count": 1, "ir_hash": "1fcf21921dd27b66", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29000.0, "surface_area": 9460.0, "principal_moments": [3960000.0, 8370000.0, 8370000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 30.16, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 60.9, "min": 18.3, "max": 182.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008608 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30.16, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 60.9, \"min\": 18.3, \"max\": 182.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad2a1_1205", "family": "enclosure", "tier": 1, "seed": 2468008609, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f4f7bc964242ecea", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 96800.0, "surface_area": 38800.0, "principal_moments": [76300000.0, 118000000.0, 146000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 90.39, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 63.9, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 49.8, "min": 19.9, "max": 99.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008609 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 90.39, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 63.9, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 49.8, \"min\": 19.9, \"max\": 99.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2a2_1206", "family": "bracket", "tier": 2, "seed": 2468008610, "symmetry": "none", "op_count": 1, "ir_hash": "937a7baa02692c0e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19400.0, "surface_area": 8020.0, "principal_moments": [3980000.0, 4510000.0, 7630000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 27.33, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 7.6, "min": 3.0, "max": 18.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008610 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 27.33, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 7.6, \"min\": 3.0, \"max\": 18.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad2a3_1207", "family": "ribbed", "tier": 1, "seed": 2468008611, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "edfb76c36e0a2ea1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 43400.0, "surface_area": 19900.0, "principal_moments": [13899999.999999998, 26299999.999999996, 38700000.0], "n_faces": 54, "n_edges": 132, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 85.56, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 55.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 9.3, "min": 3.7, "max": 18.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.9, "min": 1.0, "max": 9.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008611 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 85.56, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 55.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 9.3, \"min\": 3.7, \"max\": 18.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.9, \"min\": 1.0, \"max\": 9.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad2a4_1208", "family": "compound", "tier": 2, "seed": 2468008612, "symmetry": "none", "op_count": 3, "ir_hash": "5f8c1e62c2ee9fca", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 138000.0, "surface_area": 18100.0, "principal_moments": [24699999.999999996, 196000000.0, 196000000.0], "n_faces": 12, "n_edges": 24, "n_vertices": 16}, "params": {"shaft_d": {"type": "float", "default": 40.28, "min": 20.1, "max": 72.5, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 88.5, "min": 35.4, "max": 177.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 24.6, "min": 12.3, "max": 36.3, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 46.2, "min": 13.9, "max": 115.5, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "head_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Head", "label": "Drive head sides"}, "head_r": {"type": "float", "default": 9.8, "min": 5.9, "max": 11.8, "step": 1.0, "group": "Head", "label": "Drive head circumradius (mm)"}, "head_len": {"type": "float", "default": 12.6, "min": 3.8, "max": 25.2, "step": 1.0, "group": "Head", "label": "Drive head length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008612 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 40.28, \"min\": 20.1, \"max\": 72.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 88.5, \"min\": 35.4, \"max\": 177.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 24.6, \"min\": 12.3, \"max\": 36.3, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 46.2, \"min\": 13.9, \"max\": 115.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"head_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Head', \"label\": 'Drive head sides'},\n \"head_r\": {\"type\": 'float', \"default\": 9.8, \"min\": 5.9, \"max\": 11.8, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head circumradius (mm)'},\n \"head_len\": {\"type\": 'float', \"default\": 12.6, \"min\": 3.8, \"max\": 25.2, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"head_sides\"], p[\"head_r\"] * 2).extrude(p[\"head_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad2a5_1209", "family": "block", "tier": 1, "seed": 2468008613, "symmetry": "none", "op_count": 2, "ir_hash": "a28d3b57a1d8b9da", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 119000.0, "surface_area": 21400.0, "principal_moments": [43500000.0, 55299999.99999999, 80500000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 60, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 31.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 68.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 7.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008613 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 60, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 31.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 68.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 7.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad2a6_1210", "family": "block", "tier": 2, "seed": 2468008614, "symmetry": "radial", "op_count": 3, "ir_hash": "71a639ee607ea3cf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 899000.0, "surface_area": 60000.0, "principal_moments": [1360000000.0, 1360000000.0, 1490000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 100.0, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 91.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 30.0, "min": 20.0, "max": 45.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008614 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 100.0, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 91.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 30.0, \"min\": 20.0, \"max\": 45.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.10764621444228775)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2a7_1211", "family": "bracket", "tier": 3, "seed": 2468008615, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "e854ccfe1a33390d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13400.0, "surface_area": 6540.0, "principal_moments": [1860000.0, 4660000.0, 4960000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 50.38, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 36.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 31.69, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.7, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008615 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50.38, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 36.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 31.69, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad2a8_1212", "family": "enclosure", "tier": 3, "seed": 2468008616, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "54c16ad605d5d2ad", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 108000.0, "surface_area": 50300.0, "principal_moments": [105000000.0, 134000000.0, 184000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 92.92, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 41.4, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 86.6, "min": 34.6, "max": 173.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.4, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 9.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008616 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 92.92, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 41.4, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 86.6, \"min\": 34.6, \"max\": 173.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.4, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 9.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2a9_1213", "family": "bracket", "tier": 1, "seed": 2468008617, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "0b8c9b739e66ae65", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7940.0, "surface_area": 5130.0, "principal_moments": [1220000.0, 4660000.0, 5460000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 65.47, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 52.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 17.74, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 7.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008617 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 65.47, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 52.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 17.74, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 7.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad2ab_1215", "family": "block", "tier": 2, "seed": 2468008619, "symmetry": "none", "op_count": 3, "ir_hash": "cc8eb7975f96ab1d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 48800.0, "surface_area": 12300.0, "principal_moments": [8600000.0, 14399999.999999998, 18100000.0], "n_faces": 21, "n_edges": 47, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 39.52, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 24.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 49.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.4, "min": 2.0, "max": 2.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "boss_d": {"type": "float", "default": 20.7, "min": 10.3, "max": 41.4, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 10.0, "min": 4.0, "max": 25.0, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 14.5, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008619 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 39.52, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 24.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 49.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 2.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"boss_d\": {\"type\": 'float', \"default\": 20.7, \"min\": 10.3, \"max\": 41.4, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 25.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 14.5, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 9.9\n _ssy = 10.0\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad2ac_1216", "family": "gear", "tier": 2, "seed": 2468008620, "symmetry": "none", "op_count": 1, "ir_hash": "6aaf2e513cfc5ba6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2970.0, "surface_area": 1870.0, "principal_moments": [109000.0, 109000.0, 184000.0], "n_faces": 115, "n_edges": 339, "n_vertices": 226}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 14, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 8.4, "min": 3.4, "max": 21.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": 0.23, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.38, "min": 0.0, "max": 0.75, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 3.0, "min": 2.0, "max": 10.3, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008620 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 14, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.4, \"max\": 21.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.23, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.38, \"min\": 0.0, \"max\": 0.75, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 10.3, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2ad_1217", "family": "bracket", "tier": 1, "seed": 2468008621, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "7d9b2af0552c7811", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29900.0, "surface_area": 16600.0, "principal_moments": [13399999.999999998, 29099999.999999996, 30799999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 70.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008621 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 70.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2af_1219", "family": "bracket", "tier": 2, "seed": 2468008623, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "af4e30a5b1cc858e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17600.0, "surface_area": 13500.0, "principal_moments": [6220000.0, 20800000.0, 24799999.999999996], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 87.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 29.24, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 2.4, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008623 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 87.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 29.24, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.4, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad2b0_1220", "family": "gear", "tier": 1, "seed": 2468008624, "symmetry": "none", "op_count": 1, "ir_hash": "8210b36c43b1c491", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19400.0, "surface_area": 8010.0, "principal_moments": [4320000.0, 4320000.0, 8440000.0], "n_faces": 141, "n_edges": 417, "n_vertices": 278}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 23, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 7.9, "min": 3.2, "max": 19.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 11.5, "min": 2.0, "max": 30.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008624 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 23, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 7.9, \"min\": 3.2, \"max\": 19.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 11.5, \"min\": 2.0, \"max\": 30.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad2b1_1221", "family": "profiled", "tier": 1, "seed": 2468008625, "symmetry": "none", "op_count": 1, "ir_hash": "7b8899324adc3b05", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 197000.0, "surface_area": 30700.0, "principal_moments": [27399999.999999996, 1370000000.0, 1390000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 40.01, "min": 20.0, "max": 80.0, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 19.04, "min": 9.5, "max": 38.1, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 288.1, "min": 86.4, "max": 864.3, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008625 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 40.01, \"min\": 20.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 19.04, \"min\": 9.5, \"max\": 38.1, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 288.1, \"min\": 86.4, \"max\": 864.3, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad2b2_1222", "family": "ribbed", "tier": 1, "seed": 2468008626, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "a398b3394379785e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23800.0, "surface_area": 10900.0, "principal_moments": [4450000.0, 7250000.0, 9980000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 42.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.8, "min": 6.7, "max": 33.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.4, "min": 1.0, "max": 6.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008626 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 42.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.8, \"min\": 6.7, \"max\": 33.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.4, \"min\": 1.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad2b3_1223", "family": "gear", "tier": 2, "seed": 2468008627, "symmetry": "none", "op_count": 1, "ir_hash": "d53a2dc72981af3f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2080.0, "surface_area": 1590.0, "principal_moments": [75500.0, 75500.0, 141000.0], "n_faces": 179, "n_edges": 531, "n_vertices": 354}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 22, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.4, "min": 2.2, "max": 13.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 11.2, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.15, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.21, "min": 0.0, "max": 0.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 4.4, "min": 2.0, "max": 11.7, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008627 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 22, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.4, \"min\": 2.2, \"max\": 13.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 11.2, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.15, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.21, \"min\": 0.0, \"max\": 0.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 4.4, \"min\": 2.0, \"max\": 11.7, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad2b4_1224", "family": "revolved", "tier": 1, "seed": 2468008628, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "9289d0603f4907d1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9760.0, "surface_area": 4520.0, "principal_moments": [925000.0, 1070000.0, 1070000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 17.98, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 34.1, "min": 10.2, "max": 102.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 31.2, "min": 21.6, "max": 53.9, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.8, "min": 2.3, "max": 17.1, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008628 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 17.98, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 34.1, \"min\": 10.2, \"max\": 102.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 31.2, \"min\": 21.6, \"max\": 53.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.8, \"min\": 2.3, \"max\": 17.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad2b5_1225", "family": "enclosure", "tier": 1, "seed": 2468008629, "symmetry": "none", "op_count": 2, "ir_hash": "c47cf95153e47070", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 67600.0, "surface_area": 28900.0, "principal_moments": [40500000.0, 58799999.99999999, 72200000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 75, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 55.2, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 45.0, "min": 18.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.9, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008629 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 75, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 55.2, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 45.0, \"min\": 18.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad2b6_1226", "family": "flanged", "tier": 1, "seed": 2468008630, "symmetry": "none", "op_count": 2, "ir_hash": "e8652c1ffc8412a2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 416000.0, "surface_area": 63100.0, "principal_moments": [616000000.0, 616000000.0, 795000000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 70, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 75.0, "min": 22.5, "max": 187.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 27.5, "min": 2.0, "max": 49.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 154.7, "min": 91.0, "max": 210.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 11.6, "min": 3.5, "max": 30.0, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 46.4, "min": 30.9, "max": 69.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008630 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 75.0, \"min\": 22.5, \"max\": 187.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 27.5, \"min\": 2.0, \"max\": 49.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 154.7, \"min\": 91.0, \"max\": 210.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 11.6, \"min\": 3.5, \"max\": 30.0, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 46.4, \"min\": 30.9, \"max\": 69.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad2b7_1227", "family": "block", "tier": 1, "seed": 2468008631, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "458cc027b3d6fc32", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18000.0, "surface_area": 5740.0, "principal_moments": [1770000.0, 2450000.0, 3050000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 27.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 19.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.6, "min": 2.0, "max": 2.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008631 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 27.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 19.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.6, \"min\": 2.0, \"max\": 2.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 6.6\n _ssy = 6.2\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad2b8_1228", "family": "gear", "tier": 0, "seed": 2468008632, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "bc52fae8e40d727f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 100000.0, "surface_area": 21500.0, "principal_moments": [52999999.99999999, 52999999.99999999, 102000000.0], "n_faces": 218, "n_edges": 648, "n_vertices": 432}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 36, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 15.9, "min": 6.4, "max": 39.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008632 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 36, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 15.9, \"min\": 6.4, \"max\": 39.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2b9_1229", "family": "bracket", "tier": 2, "seed": 2468008633, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "0d2ade9d9b33173b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 88400.0, "surface_area": 26500.0, "principal_moments": [40500000.0, 190000000.0, 194000000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 86.47, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 87.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 59.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 6.9, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008633 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 86.47, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 87.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 59.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.9, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2ba_1230", "family": "bracket", "tier": 1, "seed": 2468008634, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ac85e7d77937ecf8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27800.0, "surface_area": 15500.0, "principal_moments": [11799999.999999998, 23599999.999999996, 26099999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 61.87, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 69.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55.33, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008634 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 61.87, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 69.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55.33, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.058786257194080295)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad2bd_1233", "family": "block", "tier": 1, "seed": 2468008637, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "37d9c46147f08e5c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 100000.0, "surface_area": 19000.0, "principal_moments": [24299999.999999996, 58299999.99999999, 68000000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 45, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 29.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 78.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.2, "min": 2.0, "max": 2.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008637 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 29.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 78.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 2.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 8.4\n _ssy = 6.8\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2be_1234", "family": "bracket", "tier": 1, "seed": 2468008638, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ae60df5bf28b39ad", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7520.0, "surface_area": 4630.0, "principal_moments": [971000.0, 1370000.0, 1800000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 28.65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 33.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 32.99, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008638 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 28.65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 33.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 32.99, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad2c0_1236", "family": "flanged", "tier": 1, "seed": 2468008640, "symmetry": "none", "op_count": 2, "ir_hash": "baaa915c07197789", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 605000.0, "surface_area": 90400.0, "principal_moments": [1190000000.0, 1190000000.0, 1310000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 84.21, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 92.8, "min": 27.8, "max": 232.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 32.2, "min": 2.0, "max": 58.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 187.3, "min": 109.5, "max": 252.6, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.5, "min": 2.2, "max": 37.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 56.2, "min": 37.5, "max": 84.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008640 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 84.21, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 92.8, \"min\": 27.8, \"max\": 232.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 32.2, \"min\": 2.0, \"max\": 58.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 187.3, \"min\": 109.5, \"max\": 252.6, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.5, \"min\": 2.2, \"max\": 37.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 56.2, \"min\": 37.5, \"max\": 84.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad2c1_1237", "family": "compound", "tier": 1, "seed": 2468008641, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "debd6bd94ac3f2ea", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61500.0, "surface_area": 11500.0, "principal_moments": [13199999.999999998, 18400000.0, 22600000.0], "n_faces": 28, "n_edges": 76, "n_vertices": 50}, "params": {"block_w": {"type": "float", "default": 51.54, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 40.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 29.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 4.2, "min": 2.1, "max": 6.7, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 10.5, "min": 1.9, "max": 23.3, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 4.2, "min": 2.0, "max": 5.6, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008641 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 51.54, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 40.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 29.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 4.2, \"min\": 2.1, \"max\": 6.7, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 10.5, \"min\": 1.9, \"max\": 23.3, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 4.2, \"min\": 2.0, \"max\": 5.6, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2c2_1238", "family": "bracket", "tier": 1, "seed": 2468008642, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "a84d0f178324f732", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14400.0, "surface_area": 6470.0, "principal_moments": [2260000.0, 7280000.0, 8220000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 50.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 59.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 23.38, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 9.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008642 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 59.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 23.38, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 9.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad2c4_1240", "family": "ribbed", "tier": 1, "seed": 2468008644, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "460f121c30c4fa7a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8920.0, "surface_area": 5860.0, "principal_moments": [1170000.0, 1760000.0, 2770000.0], "n_faces": 21, "n_edges": 48, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 39.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 7.3, "min": 2.9, "max": 14.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.5, "min": 1.0, "max": 11.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008644 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 39.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 7.3, \"min\": 2.9, \"max\": 14.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.0, \"max\": 11.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad2c5_1241", "family": "threaded", "tier": 2, "seed": 2468008645, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "7b488e9138f58338", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2170.0, "surface_area": 1690.0, "principal_moments": [70500.0, 92600.0, 92600.0], "n_faces": 119, "n_edges": 321, "n_vertices": 204}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 17.9, "min": 7.2, "max": 35.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008645 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 17.9, \"min\": 7.2, \"max\": 35.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad2c6_1242", "family": "revolved", "tier": 0, "seed": 2468008646, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "2b906bdaa9082f1f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 36200.0, "surface_area": 9520.0, "principal_moments": [8130000.0, 8130000.0, 9500000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 41.81, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 39.6, "min": 11.9, "max": 118.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008646 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 41.81, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 39.6, \"min\": 11.9, \"max\": 118.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad2c7_1243", "family": "revolved", "tier": 2, "seed": 2468008647, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "ef423409a702404f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4890.0, "surface_area": 2170.0, "principal_moments": [319000.0, 319000.0, 523000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 26.32, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 12.2, "min": 3.7, "max": 36.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 12.9, "min": 2.0, "max": 18.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 1.1, "min": 0.1, "max": 3.3, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008647 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 26.32, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 12.2, \"min\": 3.7, \"max\": 36.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 12.9, \"min\": 2.0, \"max\": 18.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.1, \"min\": 0.1, \"max\": 3.3, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad2ca_1246", "family": "threaded", "tier": 2, "seed": 2468008650, "symmetry": "none", "op_count": 1, "ir_hash": "15b794b57ec5d6a3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3160.0, "surface_area": 2370.0, "principal_moments": [103000.0, 230000.0, 230000.0], "n_faces": 172, "n_edges": 468, "n_vertices": 298}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 26.1, "min": 10.4, "max": 52.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008650 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 26.1, \"min\": 10.4, \"max\": 52.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad2cb_1247", "family": "threaded", "tier": 1, "seed": 2468008651, "symmetry": "none", "op_count": 1, "ir_hash": "114a63fe20039d16", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 441.0, "surface_area": 658.0, "principal_moments": [1150.0, 28100.0, 28100.0], "n_faces": 350, "n_edges": 900, "n_vertices": 552}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 27.5, "min": 11.0, "max": 55.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008651 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 27.5, \"min\": 11.0, \"max\": 55.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad2cc_1248", "family": "revolved", "tier": 0, "seed": 2468008652, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "c588a1520205bc47", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 131000.0, "surface_area": 23100.0, "principal_moments": [70800000.0, 73200000.0, 73200000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 60, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 69.6, "min": 20.9, "max": 208.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008652 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 69.6, \"min\": 20.9, \"max\": 208.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad2cd_1249", "family": "revolved", "tier": 0, "seed": 2468008653, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "f180fcd5111ef9e1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 79300.0, "surface_area": 17700.0, "principal_moments": [24099999.999999996, 38400000.0, 38400000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 45, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 74.8, "min": 22.4, "max": 224.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008653 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 74.8, \"min\": 22.4, \"max\": 224.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad2ce_1250", "family": "revolved", "tier": 0, "seed": 2468008654, "symmetry": "none", "op_count": 1, "ir_hash": "42397695f762ceb5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5150.0, "surface_area": 2710.0, "principal_moments": [303000.0, 344000.0, 344000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 19.8, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 25.1, "min": 7.5, "max": 75.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008654 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 19.8, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 25.1, \"min\": 7.5, \"max\": 75.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad2cf_1251", "family": "enclosure", "tier": 3, "seed": 2468008655, "symmetry": "none", "op_count": 3, "ir_hash": "96fa31c822e9bf60", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23400.0, "surface_area": 20100.0, "principal_moments": [8870000.0, 11999999.999999998, 16299999.999999998], "n_faces": 19, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 60.07, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 25.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 54.0, "min": 21.6, "max": 108.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.4, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008655 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 60.07, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 25.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 54.0, \"min\": 21.6, \"max\": 108.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad2d0_1252", "family": "revolved", "tier": 2, "seed": 2468008656, "symmetry": "none", "op_count": 1, "ir_hash": "3c6338b70e72204c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 322000.0, "surface_area": 43200.0, "principal_moments": [166000000.0, 762000000.0, 762000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 50, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 147.4, "min": 44.2, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.1, "min": 2.0, "max": 35.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 82.0, "min": 60.0, "max": 150.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 20.0, "min": 6.0, "max": 73.7, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008656 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 147.4, \"min\": 44.2, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.1, \"min\": 2.0, \"max\": 35.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 82.0, \"min\": 60.0, \"max\": 150.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 20.0, \"min\": 6.0, \"max\": 73.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2d1_1253", "family": "bracket", "tier": 2, "seed": 2468008657, "symmetry": "none", "op_count": 1, "ir_hash": "a40d23eeac09ebd5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9020.0, "surface_area": 6750.0, "principal_moments": [1290000.0, 2760000.0, 3450000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 31.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 36.47, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 25.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 3.7, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008657 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 31.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 36.47, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 25.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.7, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2d2_1254", "family": "bracket", "tier": 2, "seed": 2468008658, "symmetry": "none", "op_count": 1, "ir_hash": "da7c12f506b204d2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35500.0, "surface_area": 13500.0, "principal_moments": [10000000.0, 32999999.999999996, 36000000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 85.04, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 65.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 36.46, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 8.8, "min": 3.0, "max": 18.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008658 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85.04, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 65.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 36.46, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 8.8, \"min\": 3.0, \"max\": 18.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad2d3_1255", "family": "gear", "tier": 1, "seed": 2468008659, "symmetry": "none", "op_count": 1, "ir_hash": "d82012db23754cfb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5710.0, "surface_area": 3030.0, "principal_moments": [348000.0, 348000.0, 604000.0], "n_faces": 87, "n_edges": 255, "n_vertices": 170}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 14, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 9.9, "min": 4.0, "max": 24.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 5.2, "min": 2.0, "max": 13.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008659 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 14, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 9.9, \"min\": 4.0, \"max\": 24.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 13.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad2d4_1256", "family": "plate", "tier": 3, "seed": 2468008660, "symmetry": "none", "op_count": 4, "ir_hash": "72a7ccca286dc854", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41500.0, "surface_area": 18900.0, "principal_moments": [21600000.0, 37300000.0, 58599999.99999999], "n_faces": 29, "n_edges": 78, "n_vertices": 52}, "params": {"plate_w": {"type": "float", "default": 105, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 79.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.5, "group": "Holes", "label": "Slot width (mm)"}, "hole_slot_len": {"type": "float", "default": 6.2, "min": 4.8, "max": 23.9, "step": 0.5, "group": "Holes", "label": "Slot length (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "boss_d": {"type": "float", "default": 10.6, "min": 5.3, "max": 21.2, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 5.9, "min": 2.4, "max": 14.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 7.4, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008660 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 105, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 79.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot width (mm)'},\n \"hole_slot_len\": {\"type\": 'float', \"default\": 6.2, \"min\": 4.8, \"max\": 23.9, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot length (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"boss_d\": {\"type\": 'float', \"default\": 10.6, \"min\": 5.3, \"max\": 21.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 5.9, \"min\": 2.4, \"max\": 14.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 7.4, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.11069051877027747)\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad2d5_1257", "family": "plate", "tier": 2, "seed": 2468008661, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "15945b5d90b4606e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8890.0, "surface_area": 3800.0, "principal_moments": [369000.0, 2230000.0, 2510000.0], "n_faces": 42, "n_edges": 120, "n_vertices": 80}, "params": {"plate_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 21.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 6.2, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008661 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 21.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 6.2, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08491836535027113)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad2d6_1258", "family": "flanged", "tier": 1, "seed": 2468008662, "symmetry": "none", "op_count": 2, "ir_hash": "d49543e68146dd69", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 184000.0, "surface_area": 38000.0, "principal_moments": [151000000.0, 160000000.0, 160000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 58.17, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 67.3, "min": 20.2, "max": 168.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 24.6, "min": 2.0, "max": 40.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 113.9, "min": 75.6, "max": 174.5, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.2, "min": 1.6, "max": 26.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 34.2, "min": 22.8, "max": 51.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008662 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 58.17, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 67.3, \"min\": 20.2, \"max\": 168.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 24.6, \"min\": 2.0, \"max\": 40.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 113.9, \"min\": 75.6, \"max\": 174.5, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.2, \"min\": 1.6, \"max\": 26.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 34.2, \"min\": 22.8, \"max\": 51.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad2d8_1260", "family": "plate", "tier": 2, "seed": 2468008664, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "e118925dca943665", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38100.0, "surface_area": 15700.0, "principal_moments": [11999999.999999998, 36500000.0, 48299999.99999999], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 110.05, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 63.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 13.0, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008664 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 110.05, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 63.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 13.0, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.11974915420175014)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad2d9_1261", "family": "flanged", "tier": 1, "seed": 2468008665, "symmetry": "none", "op_count": 2, "ir_hash": "307f36081cc39c03", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39400.0, "surface_area": 12600.0, "principal_moments": [10700000.0, 10700000.0, 12799999.999999998], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 38.63, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 33.3, "min": 10.0, "max": 83.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.6, "min": 2.0, "max": 27.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 65.0, "min": 50.2, "max": 115.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.0, "min": 1.2, "max": 13.3, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 19.5, "min": 13.0, "max": 29.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008665 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 38.63, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 33.3, \"min\": 10.0, \"max\": 83.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.6, \"min\": 2.0, \"max\": 27.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 65.0, \"min\": 50.2, \"max\": 115.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.2, \"max\": 13.3, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 19.5, \"min\": 13.0, \"max\": 29.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad2da_1262", "family": "threaded", "tier": 0, "seed": 2468008666, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "3f9f21108ed15565", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 667.0, "surface_area": 660.0, "principal_moments": [4440.0, 16700.0, 16700.0], "n_faces": 140, "n_edges": 354, "n_vertices": 216}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 16.3, "min": 6.5, "max": 32.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008666 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 16.3, \"min\": 6.5, \"max\": 32.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad2db_1263", "family": "compound", "tier": 1, "seed": 2468008667, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "7eabbf12aef98230", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 84900.0, "surface_area": 12700.0, "principal_moments": [11599999.999999998, 78400000.0, 78400000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 35, "min": 17.5, "max": 63.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 71.5, "min": 28.6, "max": 143.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 22.5, "min": 11.2, "max": 31.5, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 40.6, "min": 12.2, "max": 101.5, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008667 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 35, \"min\": 17.5, \"max\": 63.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 71.5, \"min\": 28.6, \"max\": 143.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 22.5, \"min\": 11.2, \"max\": 31.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 40.6, \"min\": 12.2, \"max\": 101.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad2dc_1264", "family": "block", "tier": 2, "seed": 2468008668, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "d6c9e50304ee2d33", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 319000.0, "surface_area": 34300.0, "principal_moments": [184000000.0, 322000000.0, 393000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 46.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 10.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008668 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 46.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 10.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.09525709409342459)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad2dd_1265", "family": "block", "tier": 2, "seed": 2468008669, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "e32d8cea11b82ac7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 408000.0, "surface_area": 35300.0, "principal_moments": [327000000.0, 384000000.0, 499000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 91.23, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 81.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 55.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008669 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 91.23, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 81.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 55.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.10251870697595211)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad2de_1266", "family": "block", "tier": 1, "seed": 2468008670, "symmetry": "none", "op_count": 2, "ir_hash": "b3c5f1e76db4cf39", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24600.0, "surface_area": 7020.0, "principal_moments": [3530000.0, 3870000.0, 6270000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 40, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 16.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 38.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.7, "min": 2.0, "max": 1.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008670 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 16.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 38.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.7, \"min\": 2.0, \"max\": 1.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 10.0\n _ssy = 9.4\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad2df_1267", "family": "gear", "tier": 0, "seed": 2468008671, "symmetry": "none", "op_count": 1, "ir_hash": "18d0412d4bd1205c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 101000.0, "surface_area": 25600.0, "principal_moments": [74800000.0, 74800000.0, 147000000.0], "n_faces": 218, "n_edges": 648, "n_vertices": 432}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 36, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 11.1, "min": 4.4, "max": 27.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008671 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 36, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 11.1, \"min\": 4.4, \"max\": 27.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad2e0_1268", "family": "compound", "tier": 1, "seed": 2468008672, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "95f0aa2249796337", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 150000.0, "surface_area": 22800.0, "principal_moments": [72100000.0, 81600000.0, 87300000.0], "n_faces": 16, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 56.06, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 50.9, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 51.7, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 11.5, "min": 5.8, "max": 18.1, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 37.7, "min": 6.4, "max": 85.0, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 12.9, "min": 2.0, "max": 15.3, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008672 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 56.06, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 50.9, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 51.7, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 11.5, \"min\": 5.8, \"max\": 18.1, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 37.7, \"min\": 6.4, \"max\": 85.0, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 12.9, \"min\": 2.0, \"max\": 15.3, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad2e2_1270", "family": "plate", "tier": 0, "seed": 2468008674, "symmetry": "none", "op_count": 1, "ir_hash": "95b1ad048e983f6e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 44900.0, "surface_area": 13800.0, "principal_moments": [9970000.0, 45500000.0, 54999999.99999999], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 110, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 51.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008674 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 110, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 51.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad2e3_1271", "family": "threaded", "tier": 1, "seed": 2468008675, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "f3f665f6321aae52", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3080.0, "surface_area": 2300.0, "principal_moments": [32400.0, 588000.0, 588000.0], "n_faces": 320, "n_edges": 822, "n_vertices": 504}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 47.4, "min": 19.0, "max": 94.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008675 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 47.4, \"min\": 19.0, \"max\": 94.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad2e4_1272", "family": "gear", "tier": 1, "seed": 2468008676, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8bddc9f5a869f5c0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5340.0, "surface_area": 3360.0, "principal_moments": [487000.0, 487000.0, 950000.0], "n_faces": 225, "n_edges": 669, "n_vertices": 446}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 37, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.2, "min": 2.1, "max": 13.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 7.2, "min": 2.0, "max": 20.7, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008676 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 37, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.1, \"max\": 13.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 7.2, \"min\": 2.0, \"max\": 20.7, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad2e5_1273", "family": "enclosure", "tier": 2, "seed": 2468008677, "symmetry": "none", "op_count": 4, "ir_hash": "ed26f65ba1f5fb11", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 54100.0, "surface_area": 37100.0, "principal_moments": [38300000.0, 68300000.0, 71100000.0], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 87.85, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 50.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 56.6, "min": 22.6, "max": 113.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.9, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 11.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008677 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 87.85, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 50.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 56.6, \"min\": 22.6, \"max\": 113.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.9, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 11.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.11798885988794511)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad2e6_1274", "family": "revolved", "tier": 2, "seed": 2468008678, "symmetry": "none", "op_count": 1, "ir_hash": "6622806e72798117", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 286000.0, "surface_area": 41100.0, "principal_moments": [239000000.0, 289000000.0, 289000000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 48.1, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 114.2, "min": 34.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 89.4, "min": 57.7, "max": 144.3, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 33.2, "min": 10.0, "max": 57.1, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008678 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 48.1, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 114.2, \"min\": 34.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 89.4, \"min\": 57.7, \"max\": 144.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 33.2, \"min\": 10.0, \"max\": 57.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad2e7_1275", "family": "ribbed", "tier": 1, "seed": 2468008679, "symmetry": "none", "op_count": 2, "ir_hash": "a63d7dca2c1ee12f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 91700.0, "surface_area": 26200.0, "principal_moments": [59599999.99999999, 74600000.0, 132000000.0], "n_faces": 26, "n_edges": 60, "n_vertices": 40}, "params": {"base_w": {"type": "float", "default": 97.84, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 88.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 8.1, "min": 3.2, "max": 16.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.2, "min": 1.0, "max": 5.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008679 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 97.84, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 88.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 8.1, \"min\": 3.2, \"max\": 16.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.2, \"min\": 1.0, \"max\": 5.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad2e8_1276", "family": "compound", "tier": 2, "seed": 2468008680, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "cc38efd8aacb8a76", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 193000.0, "surface_area": 25800.0, "principal_moments": [103000000.0, 112000000.0, 166000000.0], "n_faces": 20, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 72.9, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 39.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 48.8, "min": 19.5, "max": 78.1, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 25.7, "min": 10.3, "max": 41.1, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.7, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 34.4, "min": 17.2, "max": 56.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 49.5, "min": 24.8, "max": 58.3, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 13.1, "min": 5.2, "max": 33.8, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008680 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 72.9, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 39.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 48.8, \"min\": 19.5, \"max\": 78.1, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 25.7, \"min\": 10.3, \"max\": 41.1, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.7, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 34.4, \"min\": 17.2, \"max\": 56.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 49.5, \"min\": 24.8, \"max\": 58.3, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 13.1, \"min\": 5.2, \"max\": 33.8, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad2e9_1277", "family": "profiled", "tier": 1, "seed": 2468008681, "symmetry": "none", "op_count": 1, "ir_hash": "5f3f3531cab039f8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 146000.0, "surface_area": 31100.0, "principal_moments": [38100000.0, 294000000.0, 294000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 40.77, "min": 20.4, "max": 81.5, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 150.7, "min": 45.2, "max": 452.1, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 20.8, "min": 2.0, "max": 32.6, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008681 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40.77, \"min\": 20.4, \"max\": 81.5, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 150.7, \"min\": 45.2, \"max\": 452.1, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 20.8, \"min\": 2.0, \"max\": 32.6, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2ea_1278", "family": "bracket", "tier": 1, "seed": 2468008682, "symmetry": "none", "op_count": 1, "ir_hash": "6c8dd03d00e44ca7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18600.0, "surface_area": 6630.0, "principal_moments": [2810000.0, 5100000.0, 5960000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 44.38, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 33.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 33.99, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008682 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 44.38, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 33.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 33.99, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad2f2_1286", "family": "threaded", "tier": 1, "seed": 2468008690, "symmetry": "none", "op_count": 1, "ir_hash": "577ff672da80af53", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2310.0, "surface_area": 1750.0, "principal_moments": [24200.0, 253000.0, 253000.0], "n_faces": 244, "n_edges": 626, "n_vertices": 384}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 35.6, "min": 14.2, "max": 71.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008690 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 35.6, \"min\": 14.2, \"max\": 71.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2f3_1287", "family": "bracket", "tier": 2, "seed": 2468008691, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "18a61791a9df763c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11600.0, "surface_area": 6800.0, "principal_moments": [1570000.0, 3500000.0, 4450000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 29.56, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 57.42, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.7, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008691 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 29.56, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 57.42, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.7, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2f4_1288", "family": "bracket", "tier": 1, "seed": 2468008692, "symmetry": "none", "op_count": 1, "ir_hash": "418590f75ca94d79", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9810.0, "surface_area": 5830.0, "principal_moments": [1520000.0, 2590000.0, 3080000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 40, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 34.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008692 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 40, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 34.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z or Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad2f7_1291", "family": "compound", "tier": 3, "seed": 2468008695, "symmetry": "none", "op_count": 4, "ir_hash": "f01a797caa003cd5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18400.0, "surface_area": 5890.0, "principal_moments": [888000.0, 8230000.0, 8230000.0], "n_faces": 15, "n_edges": 31, "n_vertices": 20}, "params": {"shaft_d": {"type": "float", "default": 20.92, "min": 10.5, "max": 37.7, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 43.2, "min": 17.3, "max": 86.4, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 12.3, "min": 6.2, "max": 18.8, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 33.8, "min": 10.1, "max": 84.5, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "head_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Head", "label": "Drive head sides"}, "head_r": {"type": "float", "default": 4.8, "min": 2.9, "max": 5.9, "step": 1.0, "group": "Head", "label": "Drive head circumradius (mm)"}, "head_len": {"type": "float", "default": 6.7, "min": 2.0, "max": 13.4, "step": 1.0, "group": "Head", "label": "Drive head length (mm)"}, "axial_bore": {"type": "float", "default": 3.5, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}, "chamfer_d": {"type": "float", "default": 0.9, "min": 0.5, "max": 3.0, "step": 0.5, "group": "Body", "label": "Chamfer distance (mm)"}, "chamfered": {"type": "bool", "default": true, "group": "Body", "label": "Chamfer edges"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008695 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 20.92, \"min\": 10.5, \"max\": 37.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 43.2, \"min\": 17.3, \"max\": 86.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 12.3, \"min\": 6.2, \"max\": 18.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 33.8, \"min\": 10.1, \"max\": 84.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"head_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Head', \"label\": 'Drive head sides'},\n \"head_r\": {\"type\": 'float', \"default\": 4.8, \"min\": 2.9, \"max\": 5.9, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head circumradius (mm)'},\n \"head_len\": {\"type\": 'float', \"default\": 6.7, \"min\": 2.0, \"max\": 13.4, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 3.5, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n \"chamfer_d\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.5, \"max\": 3.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Chamfer distance (mm)'},\n \"chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Chamfer edges'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"head_sides\"], p[\"head_r\"] * 2).extrude(p[\"head_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n if p[\"chamfered\"]:\n result = result.edges('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad2f9_1293", "family": "flanged", "tier": 3, "seed": 2468008697, "symmetry": "radial", "op_count": 2, "ir_hash": "8be476c179b2f29c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 293000.0, "surface_area": 56500.0, "principal_moments": [367000000.0, 367000000.0, 563000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 67.04, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 55.9, "min": 16.8, "max": 139.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 25.9, "min": 2.0, "max": 46.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 156.3, "min": 87.2, "max": 201.1, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.1, "min": 2.4, "max": 22.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 46.9, "min": 31.3, "max": 70.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008697 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 67.04, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 55.9, \"min\": 16.8, \"max\": 139.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 25.9, \"min\": 2.0, \"max\": 46.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 156.3, \"min\": 87.2, \"max\": 201.1, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.1, \"min\": 2.4, \"max\": 22.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 46.9, \"min\": 31.3, \"max\": 70.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad2fa_1294", "family": "revolved", "tier": 2, "seed": 2468008698, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "f3f0c3f3e81ac624", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15900.0, "surface_area": 7480.0, "principal_moments": [953000.0, 5890000.0, 5890000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 20, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 75.8, "min": 22.7, "max": 227.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008698 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 20, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 75.8, \"min\": 22.7, \"max\": 227.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad2fb_1295", "family": "enclosure", "tier": 2, "seed": 2468008699, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "9eb454de05a838c1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 47500.0, "surface_area": 28400.0, "principal_moments": [35000000.0, 38400000.0, 62199999.99999999], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 74.6, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 69.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 34.2, "min": 13.7, "max": 68.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.5, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008699 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 74.6, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 69.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 34.2, \"min\": 13.7, \"max\": 68.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad2fc_1296", "family": "ribbed", "tier": 2, "seed": 2468008700, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "c2b14478646d75c4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 123000.0, "surface_area": 36400.0, "principal_moments": [70400000.0, 105000000.0, 162000000.0], "n_faces": 54, "n_edges": 132, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 100.0, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 78.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.6, "min": 6.6, "max": 33.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.6, "min": 1.0, "max": 14.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008700 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 100.0, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 78.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.6, \"min\": 6.6, \"max\": 33.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 1.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad2fd_1297", "family": "revolved", "tier": 0, "seed": 2468008701, "symmetry": "none", "op_count": 1, "ir_hash": "0c9b3b7aa74a40f8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 397000.0, "surface_area": 63700.0, "principal_moments": [205000000.0, 1240000000.0, 1240000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 58.67, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 220.0, "min": 66.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008701 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 58.67, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 220.0, \"min\": 66.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2fe_1298", "family": "bracket", "tier": 1, "seed": 2468008702, "symmetry": "none", "op_count": 1, "ir_hash": "e56a63feb0601fdc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 43900.0, "surface_area": 19800.0, "principal_moments": [22899999.999999996, 58399999.99999999, 58999999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 85.97, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 79.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008702 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85.97, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 79.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.0926597355977199)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad300_1300", "family": "threaded", "tier": 3, "seed": 2468008704, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "0da129b31818abd8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24000.0, "surface_area": 7300.0, "principal_moments": [2000000.0, 5390000.0, 5390000.0], "n_faces": 100, "n_edges": 250, "n_vertices": 152}, "params": {"thread_size": {"type": "enum", "default": "28x5", "choices": ["8x1.5", "10x2", "12x3", "14x3", "16x4", "18x4", "20x4", "24x5", "28x5", "30x6", "36x6", "40x7"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 47.5, "min": 19.0, "max": 95.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008704 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '28x5', \"choices\": ['8x1.5', '10x2', '12x3', '14x3', '16x4', '18x4', '20x4', '24x5', '28x5', '30x6', '36x6', '40x7'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 47.5, \"min\": 19.0, \"max\": 95.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.MetricTrapezoidalThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad301_1301", "family": "profiled", "tier": 1, "seed": 2468008705, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "713711f224db6bee", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 333000.0, "surface_area": 41800.0, "principal_moments": [61199999.99999999, 3140000000.0, 3170000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 45, "min": 22.5, "max": 90.0, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 25.0, "min": 12.5, "max": 50.0, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 335.8, "min": 100.7, "max": 1007.4, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008705 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 45, \"min\": 22.5, \"max\": 90.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 25.0, \"min\": 12.5, \"max\": 50.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 335.8, \"min\": 100.7, \"max\": 1007.4, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad302_1302", "family": "gear", "tier": 3, "seed": 2468008706, "symmetry": "none", "op_count": 1, "ir_hash": "ca039c908d5744c3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21300.0, "surface_area": 7670.0, "principal_moments": [3170000.0, 3170000.0, 5640000.0], "n_faces": 111, "n_edges": 327, "n_vertices": 218}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 18, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 14.1, "min": 5.6, "max": 35.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 23.2, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008706 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 18, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 14.1, \"min\": 5.6, \"max\": 35.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 23.2, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.CycloidGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad303_1303", "family": "bracket", "tier": 2, "seed": 2468008707, "symmetry": "none", "op_count": 1, "ir_hash": "199e335f7a1c053a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9220.0, "surface_area": 7180.0, "principal_moments": [1570000.0, 4910000.0, 5680000.0], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 58.08, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 58.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 24.15, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 9.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 2.5, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008707 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 58.08, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 58.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 24.15, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 9.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad305_1305", "family": "plate", "tier": 0, "seed": 2468008709, "symmetry": "radial", "op_count": 1, "ir_hash": "06edb189238fe3e4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3520.0, "surface_area": 1540.0, "principal_moments": [69500.0, 296000.0, 306000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 30.11, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 11.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008709 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30.11, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 11.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad306_1306", "family": "plate", "tier": 1, "seed": 2468008710, "symmetry": "none", "op_count": 2, "ir_hash": "15ce8adf458fd94e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3530.0, "surface_area": 2600.0, "principal_moments": [230000.0, 340000.0, 561000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 35.08, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 28.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 6.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008710 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 35.08, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 28.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 6.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad307_1307", "family": "threaded", "tier": 1, "seed": 2468008711, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "1c853a9aace7859f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4380.0, "surface_area": 2750.0, "principal_moments": [66600.0, 823000.0, 823000.0], "n_faces": 274, "n_edges": 704, "n_vertices": 432}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 46.7, "min": 18.7, "max": 93.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008711 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 46.7, \"min\": 18.7, \"max\": 93.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad308_1308", "family": "compound", "tier": 2, "seed": 2468008712, "symmetry": "mirror_x", "op_count": 5, "ir_hash": "d1c8ba8a844d8ffb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 516000.0, "surface_area": 49700.0, "principal_moments": [554000000.0, 557000000.0, 587000000.0], "n_faces": 20, "n_edges": 47, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 81.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 78.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 19.4, "min": 7.8, "max": 35.3, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 21.1, "min": 4.8, "max": 58.2, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 8.4, "min": 2.0, "max": 14.0, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008712 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 81.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 78.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 19.4, \"min\": 7.8, \"max\": 35.3, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 21.1, \"min\": 4.8, \"max\": 58.2, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad309_1309", "family": "gear", "tier": 0, "seed": 2468008713, "symmetry": "none", "op_count": 1, "ir_hash": "df6aee3646378e01", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5170.0, "surface_area": 3650.0, "principal_moments": [558000.0, 558000.0, 1100000.0], "n_faces": 200, "n_edges": 594, "n_vertices": 396}, "params": {"module": {"type": "float", "default": 1.25, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 33, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 3.9, "min": 1.6, "max": 9.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008713 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.25, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 33, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 3.9, \"min\": 1.6, \"max\": 9.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad30a_1310", "family": "flanged", "tier": 2, "seed": 2468008714, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "8e6fd4107c23c2ce", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32200.0, "surface_area": 13400.0, "principal_moments": [10000000.0, 10000000.0, 13199999.999999998], "n_faces": 34, "n_edges": 77, "n_vertices": 46}, "params": {"outer_d": {"type": "float", "default": 32.79, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 33.1, "min": 9.9, "max": 82.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.8, "min": 2.0, "max": 23.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 72.3, "min": 42.6, "max": 98.4, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.1, "min": 1.2, "max": 13.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 21.7, "min": 14.5, "max": 32.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008714 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 32.79, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 33.1, \"min\": 9.9, \"max\": 82.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.8, \"min\": 2.0, \"max\": 23.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 72.3, \"min\": 42.6, \"max\": 98.4, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.1, \"min\": 1.2, \"max\": 13.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 21.7, \"min\": 14.5, \"max\": 32.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad30d_1313", "family": "plate", "tier": 0, "seed": 2468008717, "symmetry": "none", "op_count": 1, "ir_hash": "7a6ed7969db7c7a8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3040.0, "surface_area": 1390.0, "principal_moments": [95600.0, 133000.0, 196000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 21.47, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 17.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008717 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 21.47, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 17.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad30e_1314", "family": "plate", "tier": 2, "seed": 2468008718, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "4ad9c6f3853c2341", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28000.0, "surface_area": 9260.0, "principal_moments": [4590000.0, 15299999.999999998, 19600000.0], "n_faces": 18, "n_edges": 44, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 81.01, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 43.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 9.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "cs_angle": {"type": "float", "default": 82.0, "min": 60.0, "max": 120.0, "step": 15.0, "group": "Holes", "label": "Countersink angle (\u00b0)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008718 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 81.01, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 43.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 9.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"cs_angle\": {\"type\": 'float', \"default\": 82.0, \"min\": 60.0, \"max\": 120.0, \"step\": 15.0, \"group\": 'Holes', \"label\": 'Countersink angle (\u00b0)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cskHole(p[\"hole_d\"], p[\"hole_d\"] * 2, p[\"cs_angle\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09072155796526521)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad30f_1315", "family": "plate", "tier": 0, "seed": 2468008719, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "83666911fab4a6a0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4070.0, "surface_area": 1990.0, "principal_moments": [178000.0, 332000.0, 486000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 30.71, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 22.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008719 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30.71, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 22.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad310_1316", "family": "bracket", "tier": 1, "seed": 2468008720, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "b0575c55e11e91ca", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11100.0, "surface_area": 4910.0, "principal_moments": [1470000.0, 1690000.0, 2550000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 38.35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008720 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 38.35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad315_1321", "family": "threaded", "tier": 2, "seed": 2468008725, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "09ddecd90e558dd1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2340.0, "surface_area": 2220.0, "principal_moments": [42600.0, 247000.0, 247000.0], "n_faces": 279, "n_edges": 761, "n_vertices": 484}, "params": {"major_d": {"type": "float", "default": 6.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.0, "min": 0.5, "max": 2.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 34.1, "min": 13.6, "max": 68.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008725 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.5, \"max\": 2.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 34.1, \"min\": 13.6, \"max\": 68.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad316_1322", "family": "compound", "tier": 1, "seed": 2468008726, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "8b5e7cd57f559164", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 76300.0, "surface_area": 18500.0, "principal_moments": [30999999.999999996, 39800000.0, 58899999.99999999], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"base_w": {"type": "float", "default": 75, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 64.5, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 16.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 5.5, "min": 2.8, "max": 16.1, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 56.5, "min": 16.9, "max": 169.5, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 5.9, "min": 2.0, "max": 6.9, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008726 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 75, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 64.5, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 16.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.8, \"max\": 16.1, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 56.5, \"min\": 16.9, \"max\": 169.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 5.9, \"min\": 2.0, \"max\": 6.9, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad317_1323", "family": "profiled", "tier": 2, "seed": 2468008727, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "88b1d7569e6828df", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 113000.0, "surface_area": 34500.0, "principal_moments": [15199999.999999998, 391000000.0, 391000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 239.2, "min": 71.8, "max": 717.6, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008727 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 239.2, \"min\": 71.8, \"max\": 717.6, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad318_1324", "family": "plate", "tier": 1, "seed": 2468008728, "symmetry": "none", "op_count": 2, "ir_hash": "bf0ce31c8d1dafb6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4860.0, "surface_area": 3880.0, "principal_moments": [554000.0, 837000.0, 1380000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"plate_w": {"type": "float", "default": 45.26, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 36.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008728 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 45.26, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 36.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 17.0\n _ssy = 17.4\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad319_1325", "family": "threaded", "tier": 0, "seed": 2468008729, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "4d1d9787641179c7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 149.0, "surface_area": 286.0, "principal_moments": [245.0, 2850.0, 2850.0], "n_faces": 220, "n_edges": 564, "n_vertices": 346}, "params": {"major_d": {"type": "float", "default": 4.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.7, "min": 0.35, "max": 1.4, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 14.9, "min": 6.0, "max": 29.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008729 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.35, \"max\": 1.4, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 14.9, \"min\": 6.0, \"max\": 29.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad31a_1326", "family": "bracket", "tier": 1, "seed": 2468008730, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "da245d93d0bba466", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45200.0, "surface_area": 20600.0, "principal_moments": [13499999.999999998, 76900000.0, 81700000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 74.36, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 45.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 49.22, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 74.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008730 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 74.36, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 45.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 49.22, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 74.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad31b_1327", "family": "compound", "tier": 3, "seed": 2468008731, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "f579bcd4dd9145da", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 122000.0, "surface_area": 21200.0, "principal_moments": [26099999.999999996, 150000000.0, 150000000.0], "n_faces": 15, "n_edges": 31, "n_vertices": 20}, "params": {"shaft_d": {"type": "float", "default": 43.39, "min": 21.7, "max": 78.1, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 72.2, "min": 28.9, "max": 144.4, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 21.0, "min": 10.5, "max": 39.1, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 61.5, "min": 18.4, "max": 153.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "head_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Head", "label": "Drive head sides"}, "head_r": {"type": "float", "default": 8.5, "min": 5.1, "max": 10.1, "step": 1.0, "group": "Head", "label": "Drive head circumradius (mm)"}, "head_len": {"type": "float", "default": 16.4, "min": 4.9, "max": 32.8, "step": 1.0, "group": "Head", "label": "Drive head length (mm)"}, "axial_bore": {"type": "float", "default": 8.3, "min": 2.0, "max": 10.6, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}, "chamfer_d": {"type": "float", "default": 2.9, "min": 0.5, "max": 3.0, "step": 0.5, "group": "Body", "label": "Chamfer distance (mm)"}, "chamfered": {"type": "bool", "default": true, "group": "Body", "label": "Chamfer edges"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008731 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 43.39, \"min\": 21.7, \"max\": 78.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 72.2, \"min\": 28.9, \"max\": 144.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 21.0, \"min\": 10.5, \"max\": 39.1, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 61.5, \"min\": 18.4, \"max\": 153.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"head_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Head', \"label\": 'Drive head sides'},\n \"head_r\": {\"type\": 'float', \"default\": 8.5, \"min\": 5.1, \"max\": 10.1, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head circumradius (mm)'},\n \"head_len\": {\"type\": 'float', \"default\": 16.4, \"min\": 4.9, \"max\": 32.8, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 8.3, \"min\": 2.0, \"max\": 10.6, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n \"chamfer_d\": {\"type\": 'float', \"default\": 2.9, \"min\": 0.5, \"max\": 3.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Chamfer distance (mm)'},\n \"chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Chamfer edges'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"head_sides\"], p[\"head_r\"] * 2).extrude(p[\"head_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n if p[\"chamfered\"]:\n result = result.edges(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad31f_1331", "family": "compound", "tier": 1, "seed": 2468008735, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "ac4237c56f9a0453", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 70200.0, "surface_area": 14900.0, "principal_moments": [14899999.999999998, 37000000.0, 37000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 40, "min": 20.0, "max": 72.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 55.3, "min": 22.1, "max": 110.6, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 27.6, "min": 13.8, "max": 36.0, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 24.0, "min": 7.2, "max": 60.0, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 14.8, "min": 2.0, "max": 19.9, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008735 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 72.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 55.3, \"min\": 22.1, \"max\": 110.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 27.6, \"min\": 13.8, \"max\": 36.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 24.0, \"min\": 7.2, \"max\": 60.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 14.8, \"min\": 2.0, \"max\": 19.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad320_1332", "family": "bracket", "tier": 3, "seed": 2468008736, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "990bc6d496d950f5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 46600.0, "surface_area": 18000.0, "principal_moments": [18200000.0, 50299999.99999999, 52599999.99999999], "n_faces": 17, "n_edges": 39, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 73.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 47.05, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 6.8, "min": 3.0, "max": 18.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008736 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 73.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 47.05, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.8, \"min\": 3.0, \"max\": 18.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad321_1333", "family": "compound", "tier": 2, "seed": 2468008737, "symmetry": "none", "op_count": 3, "ir_hash": "b046a9807a19913d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 50600.0, "surface_area": 12300.0, "principal_moments": [11200000.0, 19700000.0, 19700000.0], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 24.14, "min": 14.5, "max": 38.6, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 27.4, "min": 11.0, "max": 68.5, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 24.3, "min": 12.2, "max": 33.4, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 38.1, "min": 11.4, "max": 95.2, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 12.9, "min": 2.0, "max": 17.5, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008737 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 24.14, \"min\": 14.5, \"max\": 38.6, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 27.4, \"min\": 11.0, \"max\": 68.5, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 24.3, \"min\": 12.2, \"max\": 33.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 38.1, \"min\": 11.4, \"max\": 95.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 12.9, \"min\": 2.0, \"max\": 17.5, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_r\"], p[\"base_r\"]) * 0.04072103986582472)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad322_1334", "family": "bracket", "tier": 1, "seed": 2468008738, "symmetry": "none", "op_count": 1, "ir_hash": "13746d36e329038b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24200.0, "surface_area": 13500.0, "principal_moments": [9560000.0, 14099999.999999998, 18100000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 57.45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 52.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 57.69, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008738 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 57.45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 52.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 57.69, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad325_1337", "family": "compound", "tier": 1, "seed": 2468008741, "symmetry": "none", "op_count": 2, "ir_hash": "27b149aa7d16d25a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 265000.0, "surface_area": 28000.0, "principal_moments": [151000000.0, 209000000.0, 226000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 60, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 80.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 54.9, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_w": {"type": "float", "default": 13.7, "min": 6.8, "max": 30.7, "step": 0.5, "group": "Spigot", "label": "Spigot width (mm)"}, "spig_slot_l": {"type": "float", "default": 24.1, "min": 16.4, "max": 38.4, "step": 1.0, "group": "Spigot", "label": "Spigot slot length (mm)"}, "spig_len": {"type": "float", "default": 16.4, "min": 4.1, "max": 54.8, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 8.3, "min": 2.0, "max": 9.9, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008741 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 60, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 80.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 54.9, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_w\": {\"type\": 'float', \"default\": 13.7, \"min\": 6.8, \"max\": 30.7, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Spigot width (mm)'},\n \"spig_slot_l\": {\"type\": 'float', \"default\": 24.1, \"min\": 16.4, \"max\": 38.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot slot length (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 16.4, \"min\": 4.1, \"max\": 54.8, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 8.3, \"min\": 2.0, \"max\": 9.9, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .slot2D(p[\"spig_slot_l\"], p[\"spig_w\"]).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad326_1338", "family": "bracket", "tier": 1, "seed": 2468008742, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "3cd18aa174461143", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45000.0, "surface_area": 14500.0, "principal_moments": [15799999.999999998, 44400000.0, 48099999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 71.34, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 78.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008742 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 71.34, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 78.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"spig_sides\"], p[\"spig_r\"] * 2).extrude(p[\"spig_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad329_1341", "family": "bracket", "tier": 2, "seed": 2468008745, "symmetry": "none", "op_count": 1, "ir_hash": "0983398fe297e615", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24200.0, "surface_area": 7940.0, "principal_moments": [4110000.0, 8540000.0, 9020000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 46.79, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 44.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 34.53, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 9.7, "min": 4.0, "max": 17.3, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008745 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 46.79, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 44.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 34.53, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 9.7, \"min\": 4.0, \"max\": 17.3, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad32a_1342", "family": "bracket", "tier": 1, "seed": 2468008746, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "52acfa5269cb55b4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14900.0, "surface_area": 11000.0, "principal_moments": [4460000.0, 9270000.0, 10100000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 60, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 51.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 46.13, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008746 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 60, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 51.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 46.13, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad32e_1346", "family": "threaded", "tier": 0, "seed": 2468008750, "symmetry": "none", "op_count": 1, "ir_hash": "bab8291c4f75b861", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3080.0, "surface_area": 1970.0, "principal_moments": [46800.0, 298000.0, 298000.0], "n_faces": 195, "n_edges": 499, "n_vertices": 306}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 32.9, "min": 13.2, "max": 65.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008750 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 32.9, \"min\": 13.2, \"max\": 65.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad330_1348", "family": "compound", "tier": 2, "seed": 2468008752, "symmetry": "none", "op_count": 5, "ir_hash": "09445f6611d08854", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 46000.0, "surface_area": 9660.0, "principal_moments": [7160000.0, 12999999.999999998, 13699999.999999998], "n_faces": 20, "n_edges": 47, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 32.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 29.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 5.5, "min": 2.2, "max": 13.1, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 7.4, "min": 1.4, "max": 16.5, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 2.5, "min": 2.0, "max": 4.0, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008752 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 32.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 29.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.2, \"max\": 13.1, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 7.4, \"min\": 1.4, \"max\": 16.5, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 2.5, \"min\": 2.0, \"max\": 4.0, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad331_1349", "family": "plate", "tier": 1, "seed": 2468008753, "symmetry": "none", "op_count": 2, "ir_hash": "eff5140c6a94d751", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5980.0, "surface_area": 5030.0, "principal_moments": [673000.0, 1590000.0, 2250000.0], "n_faces": 30, "n_edges": 84, "n_vertices": 56}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 37.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}, "hole_slot_len": {"type": "float", "default": 10.4, "min": 6.4, "max": 10.4, "step": 0.5, "group": "Holes", "label": "Slot length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008753 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 37.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n \"hole_slot_len\": {\"type\": 'float', \"default\": 10.4, \"min\": 6.4, \"max\": 10.4, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot length (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(48.0, 14.9, p[\"hole_nx\"], p[\"hole_ny\"])\n .slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad333_1351", "family": "bracket", "tier": 3, "seed": 2468008755, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "9f4603c4ff0584f5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15500.0, "surface_area": 9130.0, "principal_moments": [2490000.0, 5650000.0, 6260000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"base_len": {"type": "float", "default": 26.33, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 59.14, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.9, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008755 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 26.33, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 59.14, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.9, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad334_1352", "family": "revolved", "tier": 1, "seed": 2468008756, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "926c11caef7f9eae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 108000.0, "surface_area": 22600.0, "principal_moments": [37700000.0, 70100000.0, 70100000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 39.66, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 92.0, "min": 27.6, "max": 276.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 57.7, "min": 47.6, "max": 119.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 23.4, "min": 7.0, "max": 46.0, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008756 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 39.66, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 92.0, \"min\": 27.6, \"max\": 276.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 57.7, \"min\": 47.6, \"max\": 119.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 23.4, \"min\": 7.0, \"max\": 46.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad335_1353", "family": "threaded", "tier": 1, "seed": 2468008757, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "f00b4030c4123c12", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1220.0, "surface_area": 1150.0, "principal_moments": [8130.0, 92000.0, 92000.0], "n_faces": 240, "n_edges": 614, "n_vertices": 376}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 29.6, "min": 11.8, "max": 59.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008757 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 29.6, \"min\": 11.8, \"max\": 59.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad336_1354", "family": "compound", "tier": 2, "seed": 2468008758, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "f6df706ce01e0c1c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 102000.0, "surface_area": 27300.0, "principal_moments": [68300000.0, 86100000.0, 122000000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_w": {"type": "float", "default": 100, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 86.2, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 10.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 26.4, "min": 10.6, "max": 43.1, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 45.5, "min": 13.7, "max": 136.5, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 12.7, "min": 2.0, "max": 19.0, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008758 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 100, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 86.2, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 10.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 26.4, \"min\": 10.6, \"max\": 43.1, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 45.5, \"min\": 13.7, \"max\": 136.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 12.7, \"min\": 2.0, \"max\": 19.0, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad338_1356", "family": "enclosure", "tier": 1, "seed": 2468008760, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "5e4cab1ff9b6c60d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 101000.0, "surface_area": 44300.0, "principal_moments": [68400000.0, 168000000.0, 171000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 109.66, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 47.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 59.4, "min": 23.8, "max": 118.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.7, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008760 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 109.66, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 47.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 59.4, \"min\": 23.8, \"max\": 118.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.7, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad339_1357", "family": "block", "tier": 2, "seed": 2468008761, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "56cdaa7eb069b963", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39300.0, "surface_area": 8900.0, "principal_moments": [5230000.0, 11000000.0, 12899999.999999998], "n_faces": 18, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 22.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 29.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "boss_d": {"type": "float", "default": 22.2, "min": 11.1, "max": 44.4, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 7.3, "min": 2.9, "max": 18.2, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008761 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 22.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 29.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"boss_d\": {\"type\": 'float', \"default\": 22.2, \"min\": 11.1, \"max\": 44.4, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 7.3, \"min\": 2.9, \"max\": 18.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 13.8\n _ssy = 14.4\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad33b_1359", "family": "revolved", "tier": 1, "seed": 2468008763, "symmetry": "radial", "op_count": 1, "ir_hash": "dfc901d43a3ef1ed", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 85800.0, "surface_area": 17000.0, "principal_moments": [41700000.0, 41700000.0, 75400000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 76.51, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 28.0, "min": 8.4, "max": 84.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008763 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 76.51, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 28.0, \"min\": 8.4, \"max\": 84.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad33c_1360", "family": "compound", "tier": 2, "seed": 2468008764, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "065c144265fe9427", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31500.0, "surface_area": 6230.0, "principal_moments": [3190000.0, 9020000.0, 9020000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 30, "min": 15.0, "max": 54.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 39.0, "min": 15.6, "max": 78.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 13.6, "min": 6.8, "max": 27.0, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 26.8, "min": 8.0, "max": 67.0, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008764 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 54.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 39.0, \"min\": 15.6, \"max\": 78.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 13.6, \"min\": 6.8, \"max\": 27.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 26.8, \"min\": 8.0, \"max\": 67.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad33d_1361", "family": "revolved", "tier": 0, "seed": 2468008765, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ea44bd8b4edd2831", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 288000.0, "surface_area": 49400.0, "principal_moments": [133000000.0, 616000000.0, 616000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 55.45, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 179.1, "min": 53.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008765 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55.45, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 179.1, \"min\": 53.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad33e_1362", "family": "compound", "tier": 1, "seed": 2468008766, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "ce2cf8dcef84925f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 138000.0, "surface_area": 34500.0, "principal_moments": [134000000.0, 220000000.0, 243000000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_w": {"type": "float", "default": 82.1, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 98.5, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 12.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 24.9, "min": 10.0, "max": 41.0, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 113.6, "min": 34.1, "max": 340.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 11.6, "min": 2.0, "max": 17.9, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008766 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 82.1, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 98.5, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 12.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 24.9, \"min\": 10.0, \"max\": 41.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 113.6, \"min\": 34.1, \"max\": 340.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 11.6, \"min\": 2.0, \"max\": 17.9, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad33f_1363", "family": "plate", "tier": 0, "seed": 2468008767, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "6d0b50ce3bf23ca1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6590.0, "surface_area": 3030.0, "principal_moments": [347000.0, 1130000.0, 1440000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 24.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008767 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 24.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad340_1364", "family": "gear", "tier": 0, "seed": 2468008768, "symmetry": "none", "op_count": 1, "ir_hash": "bfdf73055e193023", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 422000.0, "surface_area": 53200.0, "principal_moments": [515000000.0, 515000000.0, 967000000.0], "n_faces": 164, "n_edges": 486, "n_vertices": 324}, "params": {"module": {"type": "float", "default": 5.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 27, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 29.8, "min": 11.9, "max": 74.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008768 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 5.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 27, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 29.8, \"min\": 11.9, \"max\": 74.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad341_1365", "family": "compound", "tier": 2, "seed": 2468008769, "symmetry": "none", "op_count": 3, "ir_hash": "2e45ad807f90338f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 97600.0, "surface_area": 13900.0, "principal_moments": [16900000.0, 85500000.0, 85500000.0], "n_faces": 12, "n_edges": 24, "n_vertices": 16}, "params": {"shaft_d": {"type": "float", "default": 40, "min": 20.0, "max": 72.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 63.0, "min": 25.2, "max": 126.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 21.9, "min": 10.9, "max": 36.0, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 43.5, "min": 13.0, "max": 108.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "head_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Head", "label": "Drive head sides"}, "head_r": {"type": "float", "default": 9.3, "min": 5.6, "max": 10.5, "step": 1.0, "group": "Head", "label": "Drive head circumradius (mm)"}, "head_len": {"type": "float", "default": 9.0, "min": 2.7, "max": 18.0, "step": 1.0, "group": "Head", "label": "Drive head length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008769 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 72.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 63.0, \"min\": 25.2, \"max\": 126.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 21.9, \"min\": 10.9, \"max\": 36.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 43.5, \"min\": 13.0, \"max\": 108.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"head_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Head', \"label\": 'Drive head sides'},\n \"head_r\": {\"type\": 'float', \"default\": 9.3, \"min\": 5.6, \"max\": 10.5, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head circumradius (mm)'},\n \"head_len\": {\"type\": 'float', \"default\": 9.0, \"min\": 2.7, \"max\": 18.0, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"head_sides\"], p[\"head_r\"] * 2).extrude(p[\"head_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad342_1366", "family": "flanged", "tier": 2, "seed": 2468008770, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "7144f3d3282a6667", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 669000.0, "surface_area": 90000.0, "principal_moments": [1460000000.0, 1460000000.0, 1820000000.0], "n_faces": 22, "n_edges": 47, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 78.26, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 93.6, "min": 28.1, "max": 234.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 31.3, "min": 2.0, "max": 54.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 186.4, "min": 101.7, "max": 234.8, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 13.0, "min": 3.9, "max": 37.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 55.9, "min": 37.3, "max": 83.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008770 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 78.26, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 93.6, \"min\": 28.1, \"max\": 234.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 31.3, \"min\": 2.0, \"max\": 54.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 186.4, \"min\": 101.7, \"max\": 234.8, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 13.0, \"min\": 3.9, \"max\": 37.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 55.9, \"min\": 37.3, \"max\": 83.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad344_1368", "family": "profiled", "tier": 0, "seed": 2468008772, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "630f7eecfee5cda8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 111000.0, "surface_area": 15000.0, "principal_moments": [18100000.0, 121000000.0, 121000000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"circ_r": {"type": "float", "default": 19.76, "min": 9.9, "max": 39.5, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 109.8, "min": 32.9, "max": 329.4, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008772 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 19.76, \"min\": 9.9, \"max\": 39.5, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 109.8, \"min\": 32.9, \"max\": 329.4, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad345_1369", "family": "bracket", "tier": 2, "seed": 2468008773, "symmetry": "none", "op_count": 1, "ir_hash": "f5172e0d9d673fdc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 60500.0, "surface_area": 22900.0, "principal_moments": [31899999.999999996, 85100000.0, 92799999.99999999], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 88.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 58.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 8.8, "min": 3.0, "max": 18.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008773 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 88.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 58.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 8.8, \"min\": 3.0, \"max\": 18.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad346_1370", "family": "plate", "tier": 2, "seed": 2468008774, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "2114b17df9d0cb3e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14300.0, "surface_area": 6450.0, "principal_moments": [1320000.0, 6620000.0, 7850000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 75, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 33.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 7.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008774 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 75, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 33.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 7.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.05181884976808321)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad348_1372", "family": "enclosure", "tier": 1, "seed": 2468008776, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "50408b46dd3fc6c5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 101000.0, "surface_area": 60200.0, "principal_moments": [123000000.0, 159000000.0, 195000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 96.51, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 52.9, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 89.3, "min": 35.7, "max": 178.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.4, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008776 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 96.51, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 52.9, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 89.3, \"min\": 35.7, \"max\": 178.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.4, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad349_1373", "family": "plate", "tier": 0, "seed": 2468008777, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "41cc618c61f2d886", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26400.0, "surface_area": 7610.0, "principal_moments": [2350000.0, 16099999.999999998, 18000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 31.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008777 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 31.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad34a_1374", "family": "plate", "tier": 0, "seed": 2468008778, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "936bc6ae997ae9e0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20200.0, "surface_area": 8310.0, "principal_moments": [2190000.0, 15299999.999999998, 17300000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 35.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008778 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 35.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad34b_1375", "family": "block", "tier": 1, "seed": 2468008779, "symmetry": "none", "op_count": 2, "ir_hash": "5869c93c53d84c45", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4160.0, "surface_area": 2350.0, "principal_moments": [154000.0, 234000.0, 327000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 19.22, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 9.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 24.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008779 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 19.22, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 9.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 24.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad34c_1376", "family": "ribbed", "tier": 3, "seed": 2468008780, "symmetry": "none", "op_count": 2, "ir_hash": "ddcff30707f0fc20", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8030.0, "surface_area": 4540.0, "principal_moments": [607000.0, 958000.0, 1360000.0], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 26.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 8.1, "min": 3.2, "max": 16.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.7, "min": 1.0, "max": 11.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008780 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 26.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 8.1, \"min\": 3.2, \"max\": 16.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.7, \"min\": 1.0, \"max\": 11.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad34d_1377", "family": "enclosure", "tier": 1, "seed": 2468008781, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "19d5f14e3764d404", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42700.0, "surface_area": 19300.0, "principal_moments": [17100000.0, 19500000.0, 26699999.999999996], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 55.23, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 29.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 55.1, "min": 22.0, "max": 110.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008781 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 55.23, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 29.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 55.1, \"min\": 22.0, \"max\": 110.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad34f_1379", "family": "bracket", "tier": 1, "seed": 2468008783, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "91f0a7ea46765059", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17400.0, "surface_area": 8380.0, "principal_moments": [3990000.0, 4280000.0, 7460000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 29.38, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 51.18, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008783 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 29.38, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 51.18, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad350_1380", "family": "compound", "tier": 3, "seed": 2468008784, "symmetry": "mirror_x", "op_count": 7, "ir_hash": "6897c2dc31b5184b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 100000.0, "surface_area": 15400.0, "principal_moments": [32999999.999999996, 35400000.0, 46199999.99999999], "n_faces": 20, "n_edges": 42, "n_vertices": 28}, "params": {"block_w": {"type": "float", "default": 53.48, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 50.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 37.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 11.3, "min": 4.5, "max": 16.7, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 8.3, "min": 2.8, "max": 33.9, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 11.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008784 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 53.48, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 50.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 37.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 11.3, \"min\": 4.5, \"max\": 16.7, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 8.3, \"min\": 2.8, \"max\": 33.9, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 11.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.058725746505228174)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad351_1381", "family": "block", "tier": 2, "seed": 2468008785, "symmetry": "none", "op_count": 3, "ir_hash": "bde66f92bb915395", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 239000.0, "surface_area": 38100.0, "principal_moments": [146000000.0, 185000000.0, 275000000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 78.5, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 38.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 86.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 8.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 24.2, "min": 12.1, "max": 48.4, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 10.5, "min": 4.2, "max": 26.2, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 16.9, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008785 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 78.5, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 38.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 86.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 8.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 24.2, \"min\": 12.1, \"max\": 48.4, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 10.5, \"min\": 4.2, \"max\": 26.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 16.9, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad352_1382", "family": "block", "tier": 1, "seed": 2468008786, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "e737235dece4825d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 180000.0, "surface_area": 29900.0, "principal_moments": [61999999.99999999, 168000000.0, 195000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 55.23, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 34.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.2, "min": 2.0, "max": 10.1, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008786 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55.23, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 34.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 10.1, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad353_1383", "family": "block", "tier": 1, "seed": 2468008787, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "4a5b112b0deda814", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 354000.0, "surface_area": 35600.0, "principal_moments": [232000000.0, 361000000.0, 460000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 47.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 10.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008787 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 47.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 10.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad354_1384", "family": "revolved", "tier": 1, "seed": 2468008788, "symmetry": "radial", "op_count": 2, "ir_hash": "729d7bd44e7e18a0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 393000.0, "surface_area": 60600.0, "principal_moments": [220000000.0, 1050000000.0, 1050000000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 61.13, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 200.7, "min": 60.2, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.1, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008788 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 61.13, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 200.7, \"min\": 60.2, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.1, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"head_sides\"], p[\"head_r\"] * 2).extrude(p[\"head_len\"])\n )\n if p[\"chamfered\"]:\n result = result.edges(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad35a_1390", "family": "revolved", "tier": 0, "seed": 2468008794, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ce684b747346a8f4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 83800.0, "surface_area": 16200.0, "principal_moments": [33700000.0, 33700000.0, 53099999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 65, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 37.9, "min": 11.4, "max": 113.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008794 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 37.9, \"min\": 11.4, \"max\": 113.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad35b_1391", "family": "plate", "tier": 1, "seed": 2468008795, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "ffecd9315b17c782", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1040.0, "surface_area": 1340.0, "principal_moments": [30400.0, 73800.0, 103000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 30, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 19.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008795 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 19.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad35d_1393", "family": "bracket", "tier": 1, "seed": 2468008797, "symmetry": "none", "op_count": 1, "ir_hash": "7cbb2027ecd1ba21", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25500.0, "surface_area": 10600.0, "principal_moments": [6820000.0, 18800000.0, 20400000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 64.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008797 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 64.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad360_1396", "family": "revolved", "tier": 1, "seed": 2468008800, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "e34eb08fdc4839eb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 55700.0, "surface_area": 17300.0, "principal_moments": [7680000.0, 47999999.99999999, 47999999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 30.33, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 115.6, "min": 34.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008800 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30.33, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 115.6, \"min\": 34.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad362_1398", "family": "revolved", "tier": 2, "seed": 2468008802, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "7756edc216ab0757", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 120000.0, "surface_area": 26300.0, "principal_moments": [36600000.0, 110000000.0, 110000000.0], "n_faces": 7, "n_edges": 10, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 45.3, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 112.9, "min": 33.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "groove_depth": {"type": "float", "default": 1.91, "min": 0.76, "max": 5.73, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 5.81, "min": 2.32, "max": 17.43, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 56.1, "min": 16.9, "max": 96.0, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008802 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45.3, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 112.9, \"min\": 33.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 1.91, \"min\": 0.76, \"max\": 5.73, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 5.81, \"min\": 2.32, \"max\": 17.43, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 56.1, \"min\": 16.9, \"max\": 96.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad363_1399", "family": "revolved", "tier": 1, "seed": 2468008803, "symmetry": "radial", "op_count": 1, "ir_hash": "00b45c8ee3f83434", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7350.0, "surface_area": 3210.0, "principal_moments": [562000.0, 562000.0, 785000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 26.69, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 19.7, "min": 5.9, "max": 59.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008803 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 26.69, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 19.7, \"min\": 5.9, \"max\": 59.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad364_1400", "family": "plate", "tier": 1, "seed": 2468008804, "symmetry": "none", "op_count": 2, "ir_hash": "e0153714946bace3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 49600.0, "surface_area": 12500.0, "principal_moments": [9430000.0, 34000000.0, 42300000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 90, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 46.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008804 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 46.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(24.0, 37.3, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad365_1401", "family": "bracket", "tier": 1, "seed": 2468008805, "symmetry": "none", "op_count": 1, "ir_hash": "12351554752245a0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24200.0, "surface_area": 11800.0, "principal_moments": [8450000.0, 29199999.999999996, 33900000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 78.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008805 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 78.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad368_1404", "family": "bracket", "tier": 1, "seed": 2468008808, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "bc94e124b4b44baa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41500.0, "surface_area": 13500.0, "principal_moments": [14099999.999999998, 42600000.0, 48199999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 76.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008808 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 76.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cskHole(p[\"hole_d\"], p[\"hole_d\"] * 2, p[\"cs_angle\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07693792216648077)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad36a_1406", "family": "compound", "tier": 1, "seed": 2468008810, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "1b94534d2c6e4853", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11800.0, "surface_area": 4220.0, "principal_moments": [1250000.0, 1250000.0, 1250000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 16.14, "min": 9.7, "max": 25.8, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 12.4, "min": 5.0, "max": 31.0, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 18.9, "min": 9.4, "max": 23.9, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 15.1, "min": 4.5, "max": 37.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 8.5, "min": 2.0, "max": 13.6, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008810 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 16.14, \"min\": 9.7, \"max\": 25.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 12.4, \"min\": 5.0, \"max\": 31.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 18.9, \"min\": 9.4, \"max\": 23.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 15.1, \"min\": 4.5, \"max\": 37.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 8.5, \"min\": 2.0, \"max\": 13.6, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad36b_1407", "family": "compound", "tier": 1, "seed": 2468008811, "symmetry": "none", "op_count": 3, "ir_hash": "e927191b66fded7e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 76400.0, "surface_area": 24200.0, "principal_moments": [60599999.99999999, 92899999.99999999, 105000000.0], "n_faces": 16, "n_edges": 39, "n_vertices": 26}, "params": {"base_w": {"type": "float", "default": 97.23, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 79.1, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 6.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 11.8, "min": 5.9, "max": 19.8, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 93.7, "min": 28.1, "max": 281.1, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008811 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 97.23, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 79.1, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 11.8, \"min\": 5.9, \"max\": 19.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 93.7, \"min\": 28.1, \"max\": 281.1, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad36c_1408", "family": "threaded", "tier": 1, "seed": 2468008812, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ac19b9de9a15e3ec", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14300.0, "surface_area": 7020.0, "principal_moments": [1050000.0, 3830000.0, 3830000.0], "n_faces": 363, "n_edges": 1021, "n_vertices": 660}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 52.7, "min": 21.1, "max": 105.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008812 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 52.7, \"min\": 21.1, \"max\": 105.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad36d_1409", "family": "profiled", "tier": 1, "seed": 2468008813, "symmetry": "none", "op_count": 1, "ir_hash": "22077374df4b0264", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28100.0, "surface_area": 7290.0, "principal_moments": [1130000.0, 30499999.999999996, 30499999.999999996], "n_faces": 7, "n_edges": 15, "n_vertices": 10}, "params": {"circ_r": {"type": "float", "default": 10.22, "min": 5.1, "max": 20.4, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 113.1, "min": 33.9, "max": 339.3, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008813 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 10.22, \"min\": 5.1, \"max\": 20.4, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 113.1, \"min\": 33.9, \"max\": 339.3, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad36e_1410", "family": "flanged", "tier": 3, "seed": 2468008814, "symmetry": "none", "op_count": 2, "ir_hash": "9d3c4f771a3885e2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 79800.0, "surface_area": 20200.0, "principal_moments": [37600000.0, 37600000.0, 45000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 40.42, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 44.7, "min": 13.4, "max": 111.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 14.6, "min": 2.0, "max": 28.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 85.0, "min": 52.5, "max": 121.3, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.0, "min": 2.1, "max": 17.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 25.5, "min": 17.0, "max": 38.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008814 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40.42, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 44.7, \"min\": 13.4, \"max\": 111.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 14.6, \"min\": 2.0, \"max\": 28.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 85.0, \"min\": 52.5, \"max\": 121.3, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.0, \"min\": 2.1, \"max\": 17.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 25.5, \"min\": 17.0, \"max\": 38.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad36f_1411", "family": "plate", "tier": 2, "seed": 2468008815, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "fecf0bdd3fd88c7e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17600.0, "surface_area": 7410.0, "principal_moments": [2680000.0, 7100000.0, 9680000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 69.86, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 42.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 9.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008815 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 69.86, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 42.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 9.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09343455394837222)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad370_1412", "family": "bracket", "tier": 1, "seed": 2468008816, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "62d5ce0e9ca610d5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16500.0, "surface_area": 9990.0, "principal_moments": [6540000.0, 11300000.0, 16099999.999999998], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 61.05, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 57.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008816 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 61.05, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 57.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad371_1413", "family": "flanged", "tier": 2, "seed": 2468008817, "symmetry": "radial", "op_count": 3, "ir_hash": "c52112f64084eec0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 91900.0, "surface_area": 20900.0, "principal_moments": [36900000.0, 48299999.99999999, 48299999.99999999], "n_faces": 44, "n_edges": 114, "n_vertices": 67}, "params": {"outer_d": {"type": "float", "default": 44.82, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 57.5, "min": 17.2, "max": 143.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.9, "min": 2.0, "max": 31.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 78.1, "min": 58.3, "max": 134.5, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.6, "min": 1.4, "max": 23.0, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 23.4, "min": 15.6, "max": 35.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.6, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008817 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 44.82, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 57.5, \"min\": 17.2, \"max\": 143.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.9, \"min\": 2.0, \"max\": 31.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 78.1, \"min\": 58.3, \"max\": 134.5, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.6, \"min\": 1.4, \"max\": 23.0, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 23.4, \"min\": 15.6, \"max\": 35.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.6, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad373_1415", "family": "threaded", "tier": 2, "seed": 2468008819, "symmetry": "none", "op_count": 1, "ir_hash": "4f83cea57da34183", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2020.0, "surface_area": 2010.0, "principal_moments": [13800.0, 404000.0, 404000.0], "n_faces": 330, "n_edges": 848, "n_vertices": 520}, "params": {"thread_size": {"type": "enum", "default": "8x1.5", "choices": ["8x1.5", "10x2", "12x3", "14x3", "16x4", "18x4", "20x4", "24x5", "28x5", "30x6", "36x6", "40x7"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 48.8, "min": 19.5, "max": 97.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008819 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '8x1.5', \"choices\": ['8x1.5', '10x2', '12x3', '14x3', '16x4', '18x4', '20x4', '24x5', '28x5', '30x6', '36x6', '40x7'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 48.8, \"min\": 19.5, \"max\": 97.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.MetricTrapezoidalThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad374_1416", "family": "block", "tier": 3, "seed": 2468008820, "symmetry": "radial", "op_count": 5, "ir_hash": "cf31ac25c168f209", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 51100.0, "surface_area": 15000.0, "principal_moments": [10500000.0, 20200000.0, 25199999.999999996], "n_faces": 42, "n_edges": 120, "n_vertices": 80}, "params": {"block_w": {"type": "float", "default": 60, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 25.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 44.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 18.0, "min": 12.0, "max": 27.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "pocket_w": {"type": "float", "default": 26.6, "min": 13.3, "max": 48.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 14.5, "min": 7.2, "max": 20.1, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 13.4, "min": 5.4, "max": 37.4, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}, "filleted2": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "side_tube_d": {"type": "float", "default": 9.0, "min": 3.6, "max": 12.6, "step": 1.0, "group": "Side Tube", "label": "Side tube diameter (mm)"}, "side_tube_len": {"type": "float", "default": 10.3, "min": 3.1, "max": 27.0, "step": 1.0, "group": "Side Tube", "label": "Side tube length (mm)"}, "side_bore_d": {"type": "float", "default": 4.9, "min": 2.0, "max": 6.8, "step": 0.5, "group": "Side Tube", "label": "Side bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008820 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 60, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 25.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 44.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 18.0, \"min\": 12.0, \"max\": 27.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"pocket_w\": {\"type\": 'float', \"default\": 26.6, \"min\": 13.3, \"max\": 48.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 14.5, \"min\": 7.2, \"max\": 20.1, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 13.4, \"min\": 5.4, \"max\": 37.4, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n \"filleted2\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"side_tube_d\": {\"type\": 'float', \"default\": 9.0, \"min\": 3.6, \"max\": 12.6, \"step\": 1.0, \"group\": 'Side Tube', \"label\": 'Side tube diameter (mm)'},\n \"side_tube_len\": {\"type\": 'float', \"default\": 10.3, \"min\": 3.1, \"max\": 27.0, \"step\": 1.0, \"group\": 'Side Tube', \"label\": 'Side tube length (mm)'},\n \"side_bore_d\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.0, \"max\": 6.8, \"step\": 0.5, \"group\": 'Side Tube', \"label\": 'Side bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.06520120003838574)\n result = (\n result.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad377_1419", "family": "revolved", "tier": 1, "seed": 2468008823, "symmetry": "none", "op_count": 2, "ir_hash": "e16cac96d0c92b9a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6150.0, "surface_area": 3020.0, "principal_moments": [368000.0, 498000.0, 498000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 20, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 29.5, "min": 8.8, "max": 88.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.7, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008823 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 20, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 29.5, \"min\": 8.8, \"max\": 88.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.7, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad379_1421", "family": "flanged", "tier": 1, "seed": 2468008825, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "dab9aacd7d92e905", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 706000.0, "surface_area": 86300.0, "principal_moments": [1400000000.0, 1400000000.0, 2150000000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 97.6, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 72.9, "min": 21.9, "max": 182.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 47.7, "min": 2.0, "max": 68.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 180.4, "min": 126.9, "max": 292.8, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 16.3, "min": 4.9, "max": 29.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 54.1, "min": 36.1, "max": 81.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008825 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 97.6, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 72.9, \"min\": 21.9, \"max\": 182.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 47.7, \"min\": 2.0, \"max\": 68.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 180.4, \"min\": 126.9, \"max\": 292.8, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 16.3, \"min\": 4.9, \"max\": 29.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 54.1, \"min\": 36.1, \"max\": 81.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad37a_1422", "family": "bracket", "tier": 1, "seed": 2468008826, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d25963146d89aea2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6860.0, "surface_area": 3770.0, "principal_moments": [547000.0, 1740000.0, 1810000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 43.18, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 31.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20.24, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 8.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008826 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 43.18, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 31.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20.24, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 8.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"spig_sides\"], p[\"spig_r\"] * 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad37d_1425", "family": "bracket", "tier": 1, "seed": 2468008829, "symmetry": "none", "op_count": 1, "ir_hash": "66b777ffa1815697", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7840.0, "surface_area": 4800.0, "principal_moments": [682000.0, 1920000.0, 2230000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 27.45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008829 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 27.45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad37e_1426", "family": "compound", "tier": 1, "seed": 2468008830, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "8fe4bc27fc4f3a5d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 237000.0, "surface_area": 25800.0, "principal_moments": [130000000.0, 166000000.0, 220000000.0], "n_faces": 23, "n_edges": 56, "n_vertices": 37}, "params": {"block_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 68.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 43.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 5.2, "min": 2.6, "max": 9.8, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 9.0, "min": 2.3, "max": 27.0, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 4.8, "min": 2.0, "max": 6.5, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008830 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 68.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 43.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.6, \"max\": 9.8, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 9.0, \"min\": 2.3, \"max\": 27.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 4.8, \"min\": 2.0, \"max\": 6.5, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad380_1428", "family": "bracket", "tier": 1, "seed": 2468008832, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "27233e4dd03055a9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32500.0, "surface_area": 15000.0, "principal_moments": [12799999.999999998, 29399999.999999996, 30299999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 66.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008832 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 66.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad384_1432", "family": "revolved", "tier": 1, "seed": 2468008836, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "930f94ecb02259b7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 511000.0, "surface_area": 56100.0, "principal_moments": [278000000.0, 1720000000.0, 1720000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 62.17, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 192.6, "min": 57.8, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 22.0, "min": 2.0, "max": 43.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.5, "min": 0.1, "max": 1.5, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008836 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 62.17, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 192.6, \"min\": 57.8, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 22.0, \"min\": 2.0, \"max\": 43.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.5, \"min\": 0.1, \"max\": 1.5, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad386_1434", "family": "enclosure", "tier": 3, "seed": 2468008838, "symmetry": "none", "op_count": 3, "ir_hash": "e9d630a3c0536d0f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 125000.0, "surface_area": 45000.0, "principal_moments": [127000000.0, 153000000.0, 176000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 80.87, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 67.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 64.5, "min": 25.8, "max": 129.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008838 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 80.87, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 67.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 64.5, \"min\": 25.8, \"max\": 129.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad387_1435", "family": "ribbed", "tier": 1, "seed": 2468008839, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "18cf60ea28f1cca5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28900.0, "surface_area": 10800.0, "principal_moments": [5670000.0, 8970000.0, 13499999.999999998], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 58.38, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 45.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 9.3, "min": 3.7, "max": 18.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.4, "min": 1.0, "max": 11.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008839 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 58.38, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 45.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 9.3, \"min\": 3.7, \"max\": 18.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.4, \"min\": 1.0, \"max\": 11.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad388_1436", "family": "enclosure", "tier": 1, "seed": 2468008840, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "ab7b9d3a68f67f06", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 104000.0, "surface_area": 46600.0, "principal_moments": [93599999.99999999, 132000000.0, 160000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 90, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 46.7, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 77.0, "min": 30.8, "max": 154.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008840 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 90, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 46.7, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 77.0, \"min\": 30.8, \"max\": 154.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad389_1437", "family": "block", "tier": 1, "seed": 2468008841, "symmetry": "none", "op_count": 2, "ir_hash": "e54c24688ac0cbda", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2760.0, "surface_area": 1730.0, "principal_moments": [82900.0, 106000.0, 154000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 20, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 8.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 16.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008841 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 8.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 16.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad38a_1438", "family": "enclosure", "tier": 1, "seed": 2468008842, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "7ad57f1aae6dd65c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34800.0, "surface_area": 21900.0, "principal_moments": [18400000.0, 23599999.999999996, 35900000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 70, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 58.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 29.6, "min": 11.8, "max": 59.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008842 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 70, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 58.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 29.6, \"min\": 11.8, \"max\": 59.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad38b_1439", "family": "block", "tier": 1, "seed": 2468008843, "symmetry": "none", "op_count": 2, "ir_hash": "e6576db270cc7bab", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 58500.0, "surface_area": 12200.0, "principal_moments": [13499999.999999998, 15699999.999999998, 16299999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 38.63, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 37.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 43.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 8.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008843 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 38.63, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 37.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 43.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 8.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad38c_1440", "family": "block", "tier": 2, "seed": 2468008844, "symmetry": "none", "op_count": 3, "ir_hash": "7c0a0ec470bcd771", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 298000.0, "surface_area": 37700.0, "principal_moments": [168000000.0, 281000000.0, 315000000.0], "n_faces": 42, "n_edges": 120, "n_vertices": 80}, "params": {"block_w": {"type": "float", "default": 65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 52.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 92.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 7.7, "min": 2.0, "max": 15.4, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008844 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 52.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 92.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 7.7, \"min\": 2.0, \"max\": 15.4, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.04757608717006273)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad38d_1441", "family": "plate", "tier": 3, "seed": 2468008845, "symmetry": "radial", "op_count": 4, "ir_hash": "4c8194e7d47a8b1c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10000.0, "surface_area": 10300.0, "principal_moments": [1850000.0, 7880000.0, 9710000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"plate_w": {"type": "float", "default": 100, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 48.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 30.0, "min": 20.0, "max": 45.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "boss_d": {"type": "float", "default": 12.1, "min": 6.0, "max": 24.2, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 4.6, "min": 1.8, "max": 11.5, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008845 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 100, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 48.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 30.0, \"min\": 20.0, \"max\": 45.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"boss_d\": {\"type\": 'float', \"default\": 12.1, \"min\": 6.0, \"max\": 24.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 4.6, \"min\": 1.8, \"max\": 11.5, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08924855038633019)\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad38f_1443", "family": "revolved", "tier": 1, "seed": 2468008847, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "e22c92650dcdc176", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2290.0, "surface_area": 1450.0, "principal_moments": [31200.0, 211000.0, 211000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 10, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 32.0, "min": 9.6, "max": 96.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 3.0, "min": 2.0, "max": 7.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008847 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 10, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 32.0, \"min\": 9.6, \"max\": 96.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 7.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad390_1444", "family": "bracket", "tier": 2, "seed": 2468008848, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "cb3af3bfc505ffcf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24800.0, "surface_area": 13900.0, "principal_moments": [7530000.0, 22200000.0, 22700000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 55.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.2, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008848 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 55.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.2, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad391_1445", "family": "plate", "tier": 1, "seed": 2468008849, "symmetry": "none", "op_count": 2, "ir_hash": "2ad25e85b8029bb2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1300.0, "surface_area": 1600.0, "principal_moments": [41100.0, 134000.0, 174000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"plate_w": {"type": "float", "default": 35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 19.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 1.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008849 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 19.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 1.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 8.8\n _ssy = 7.4\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad392_1446", "family": "bracket", "tier": 2, "seed": 2468008850, "symmetry": "none", "op_count": 1, "ir_hash": "bd4c92e0ef349e64", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27900.0, "surface_area": 12700.0, "principal_moments": [8580000.0, 15099999.999999998, 17500000.0], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 54.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 6.0, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008850 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 54.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad395_1449", "family": "ribbed", "tier": 2, "seed": 2468008853, "symmetry": "none", "op_count": 3, "ir_hash": "be1e9c46588e983c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4120.0, "surface_area": 3230.0, "principal_moments": [248000.0, 599000.0, 727000.0], "n_faces": 30, "n_edges": 88, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 31.88, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 21.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 9.7, "min": 3.9, "max": 19.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.5, "min": 1.0, "max": 13.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008853 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 31.88, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 21.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 9.7, \"min\": 3.9, \"max\": 19.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.5, \"min\": 1.0, \"max\": 13.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad396_1450", "family": "plate", "tier": 2, "seed": 2468008854, "symmetry": "radial", "op_count": 3, "ir_hash": "3959ea23ad07c2b5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 478.0, "surface_area": 663.0, "principal_moments": [5470.0, 22100.0, 27200.0], "n_faces": 28, "n_edges": 78, "n_vertices": 52}, "params": {"plate_w": {"type": "float", "default": 23.09, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 11.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 6.9, "min": 4.6, "max": 10.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008854 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 23.09, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 11.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 6.9, \"min\": 4.6, \"max\": 10.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.10473265285543065)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad397_1451", "family": "plate", "tier": 1, "seed": 2468008855, "symmetry": "radial", "op_count": 2, "ir_hash": "9599b352e1aa7537", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 48400.0, "surface_area": 14000.0, "principal_moments": [8860000.0, 49399999.99999999, 57499999.99999999], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"plate_w": {"type": "float", "default": 110, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 45.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 33.0, "min": 22.0, "max": 49.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008855 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 110, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 45.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 33.0, \"min\": 22.0, \"max\": 49.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad398_1452", "family": "compound", "tier": 1, "seed": 2468008856, "symmetry": "none", "op_count": 2, "ir_hash": "abcf58474452a8d4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2630.0, "surface_area": 1230.0, "principal_moments": [40900.0, 202000.0, 202000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 12.0, "min": 6.0, "max": 21.6, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 18.4, "min": 7.4, "max": 36.8, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 7.1, "min": 3.5, "max": 10.8, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 13.9, "min": 4.2, "max": 34.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008856 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 6.0, \"max\": 21.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 18.4, \"min\": 7.4, \"max\": 36.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 7.1, \"min\": 3.5, \"max\": 10.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 13.9, \"min\": 4.2, \"max\": 34.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad399_1453", "family": "bracket", "tier": 1, "seed": 2468008857, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "365dbe71cb296310", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22500.0, "surface_area": 10600.0, "principal_moments": [6740000.0, 7000000.0, 12599999.999999998], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 57.06, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 29.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008857 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 57.06, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 29.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad39a_1454", "family": "threaded", "tier": 0, "seed": 2468008858, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "08e97b24e5ac43b6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1820.0, "surface_area": 1400.0, "principal_moments": [19100.0, 129000.0, 129000.0], "n_faces": 195, "n_edges": 499, "n_vertices": 306}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 28.2, "min": 11.3, "max": 56.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008858 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 28.2, \"min\": 11.3, \"max\": 56.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad39b_1455", "family": "revolved", "tier": 2, "seed": 2468008859, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "bae171c71cc9463d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 123000.0, "surface_area": 23600.0, "principal_moments": [65799999.99999999, 73200000.0, 73200000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 49.11, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 57.7, "min": 17.3, "max": 173.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.2, "min": 2.0, "max": 34.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 85.1, "min": 58.9, "max": 147.3, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.3, "min": 2.2, "max": 28.9, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.6, "min": 0.1, "max": 1.8, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008859 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 49.11, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 57.7, \"min\": 17.3, \"max\": 173.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.2, \"min\": 2.0, \"max\": 34.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 85.1, \"min\": 58.9, \"max\": 147.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.3, \"min\": 2.2, \"max\": 28.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.6, \"min\": 0.1, \"max\": 1.8, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad39d_1457", "family": "block", "tier": 1, "seed": 2468008861, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "b5bdecf71026941b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 409000.0, "surface_area": 49700.0, "principal_moments": [366000000.0, 412000000.0, 636000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 95, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 46.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 10.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008861 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 95, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 46.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 10.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad39e_1458", "family": "compound", "tier": 2, "seed": 2468008862, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3b09668b7976eec0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11700.0, "surface_area": 4520.0, "principal_moments": [1150000.0, 1620000.0, 1620000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 16.37, "min": 9.8, "max": 26.2, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 14.1, "min": 5.6, "max": 35.2, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 12.2, "min": 6.1, "max": 22.7, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 26.5, "min": 7.9, "max": 66.2, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 6.2, "min": 2.0, "max": 8.8, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008862 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 16.37, \"min\": 9.8, \"max\": 26.2, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 14.1, \"min\": 5.6, \"max\": 35.2, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 12.2, \"min\": 6.1, \"max\": 22.7, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 26.5, \"min\": 7.9, \"max\": 66.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 6.2, \"min\": 2.0, \"max\": 8.8, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad39f_1459", "family": "ribbed", "tier": 2, "seed": 2468008863, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "0e079eeaba070586", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20800.0, "surface_area": 8260.0, "principal_moments": [2920000.0, 7500000.0, 9850000.0], "n_faces": 30, "n_edges": 88, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 37.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 7.3, "min": 2.9, "max": 14.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.8, "min": 1.0, "max": 14.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 8.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008863 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 37.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 7.3, \"min\": 2.9, \"max\": 14.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.8, \"min\": 1.0, \"max\": 14.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 8.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad3a0_1460", "family": "profiled", "tier": 1, "seed": 2468008864, "symmetry": "none", "op_count": 1, "ir_hash": "5863cb59dfebcbf6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30200.0, "surface_area": 7490.0, "principal_moments": [1260000.0, 34500000.0, 34500000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"circ_r": {"type": "float", "default": 10, "min": 5.0, "max": 20.0, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 116.1, "min": 34.8, "max": 348.3, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008864 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 10, \"min\": 5.0, \"max\": 20.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 116.1, \"min\": 34.8, \"max\": 348.3, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad3a1_1461", "family": "revolved", "tier": 2, "seed": 2468008865, "symmetry": "none", "op_count": 2, "ir_hash": "8fb8e6308fcec6b1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 709000.0, "surface_area": 87000.0, "principal_moments": [651000000.0, 3170000000.0, 3170000000.0], "n_faces": 12, "n_edges": 20, "n_vertices": 12}, "params": {"outer_d": {"type": "float", "default": 76.03, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 218.3, "min": 65.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 40.0, "min": 2.0, "max": 53.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 2.97, "min": 1.19, "max": 8.91, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 11.61, "min": 4.64, "max": 34.83, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 99.7, "min": 32.7, "max": 185.6, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.6, "min": 0.1, "max": 1.8, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008865 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 76.03, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 218.3, \"min\": 65.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 40.0, \"min\": 2.0, \"max\": 53.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 2.97, \"min\": 1.19, \"max\": 8.91, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 11.61, \"min\": 4.64, \"max\": 34.83, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 99.7, \"min\": 32.7, \"max\": 185.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.6, \"min\": 0.1, \"max\": 1.8, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3a4_1464", "family": "block", "tier": 3, "seed": 2468008868, "symmetry": "none", "op_count": 4, "ir_hash": "ef2219ea4ec628cd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 473000.0, "surface_area": 57400.0, "principal_moments": [390000000.0, 586000000.0, 615000000.0], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"block_w": {"type": "float", "default": 75.7, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 70.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 13.0, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 24.7, "min": 12.3, "max": 49.4, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 11.9, "min": 4.8, "max": 29.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 17.3, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}, "filleted2": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008868 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75.7, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 70.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 13.0, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 24.7, \"min\": 12.3, \"max\": 49.4, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 11.9, \"min\": 4.8, \"max\": 29.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 17.3, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n \"filleted2\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.11395178760318661)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad3a5_1465", "family": "ribbed", "tier": 2, "seed": 2468008869, "symmetry": "none", "op_count": 2, "ir_hash": "7de8c0c13720db12", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12400.0, "surface_area": 11500.0, "principal_moments": [1950000.0, 2350000.0, 3420000.0], "n_faces": 36, "n_edges": 84, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 44.25, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 41.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.2, "min": 6.5, "max": 32.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.0, "min": 1.0, "max": 5.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008869 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 44.25, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 41.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.2, \"min\": 6.5, \"max\": 32.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 5.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad3a6_1466", "family": "flanged", "tier": 1, "seed": 2468008870, "symmetry": "radial", "op_count": 2, "ir_hash": "dcff1b48ebc0222e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 95300.0, "surface_area": 25600.0, "principal_moments": [55899999.99999999, 55899999.99999999, 66099999.99999999], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 45, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 49.0, "min": 14.7, "max": 122.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 19.5, "min": 2.0, "max": 31.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 98.4, "min": 58.5, "max": 135.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.4, "min": 1.6, "max": 19.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 29.5, "min": 19.7, "max": 44.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008870 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 49.0, \"min\": 14.7, \"max\": 122.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 19.5, \"min\": 2.0, \"max\": 31.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 98.4, \"min\": 58.5, \"max\": 135.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.4, \"min\": 1.6, \"max\": 19.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 29.5, \"min\": 19.7, \"max\": 44.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad3a7_1467", "family": "revolved", "tier": 0, "seed": 2468008871, "symmetry": "none", "op_count": 1, "ir_hash": "cdba7d67758436ce", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14000.0, "surface_area": 6740.0, "principal_moments": [804000.0, 4410000.0, 4410000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 19.59, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 69.5, "min": 20.8, "max": 208.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008871 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 19.59, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 69.5, \"min\": 20.8, \"max\": 208.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3a8_1468", "family": "block", "tier": 2, "seed": 2468008872, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "08dcd007772ed113", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12600.0, "surface_area": 5820.0, "principal_moments": [703000.0, 2240000.0, 2310000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 20, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 18.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 34.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 14.4, "min": 7.2, "max": 28.8, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 11.6, "min": 4.6, "max": 29.0, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 10.1, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008872 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 18.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 34.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 14.4, \"min\": 7.2, \"max\": 28.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 11.6, \"min\": 4.6, \"max\": 29.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 10.1, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad3a9_1469", "family": "revolved", "tier": 2, "seed": 2468008873, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "30a8b77111df589e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 75300.0, "surface_area": 16200.0, "principal_moments": [19500000.0, 42400000.0, 42400000.0], "n_faces": 8, "n_edges": 12, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 41.64, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 71.4, "min": 21.4, "max": 214.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 19.1, "min": 2.0, "max": 29.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 1.81, "min": 0.72, "max": 5.43, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 6.69, "min": 2.68, "max": 20.07, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 34.9, "min": 10.7, "max": 60.7, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008873 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 41.64, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 71.4, \"min\": 21.4, \"max\": 214.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 19.1, \"min\": 2.0, \"max\": 29.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 1.81, \"min\": 0.72, \"max\": 5.43, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 6.69, \"min\": 2.68, \"max\": 20.07, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 34.9, \"min\": 10.7, \"max\": 60.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad3ab_1471", "family": "bracket", "tier": 1, "seed": 2468008875, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "6f975b64e877a1ae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10700.0, "surface_area": 5020.0, "principal_moments": [1390000.0, 1800000.0, 2150000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 29.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 23.8, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 9.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008875 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 29.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 23.8, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 9.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad3ad_1473", "family": "ribbed", "tier": 1, "seed": 2468008877, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "4d4b0c41669e4ff0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 43100.0, "surface_area": 19000.0, "principal_moments": [10300000.0, 16900000.0, 22799999.999999996], "n_faces": 54, "n_edges": 132, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 45.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.3, "min": 6.5, "max": 32.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.7, "min": 1.0, "max": 6.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008877 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 45.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.3, \"min\": 6.5, \"max\": 32.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.7, \"min\": 1.0, \"max\": 6.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad3ae_1474", "family": "bracket", "tier": 1, "seed": 2468008878, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "e5b49174cc2e007d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18700.0, "surface_area": 6350.0, "principal_moments": [2950000.0, 3730000.0, 5570000.0], "n_faces": 9, "n_edges": 21, "n_vertices": 14}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008878 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad3b1_1477", "family": "compound", "tier": 1, "seed": 2468008881, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "baad54c12af61f14", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 85500.0, "surface_area": 16200.0, "principal_moments": [13499999.999999998, 75800000.0, 75800000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 36.02, "min": 18.0, "max": 64.8, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 78.0, "min": 31.2, "max": 156.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 20.7, "min": 10.3, "max": 32.4, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 36.7, "min": 11.0, "max": 91.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 8.4, "min": 2.0, "max": 14.9, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008881 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 36.02, \"min\": 18.0, \"max\": 64.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 78.0, \"min\": 31.2, \"max\": 156.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 20.7, \"min\": 10.3, \"max\": 32.4, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 36.7, \"min\": 11.0, \"max\": 91.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 14.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad3b2_1478", "family": "threaded", "tier": 0, "seed": 2468008882, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "4c34b74833b26875", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 294.0, "surface_area": 447.0, "principal_moments": [764.0, 8590.0, 8590.0], "n_faces": 235, "n_edges": 603, "n_vertices": 370}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 18.4, "min": 7.4, "max": 36.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008882 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 18.4, \"min\": 7.4, \"max\": 36.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad3b3_1479", "family": "revolved", "tier": 1, "seed": 2468008883, "symmetry": "none", "op_count": 1, "ir_hash": "c123202aee99f62d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24200.0, "surface_area": 8080.0, "principal_moments": [3820000.0, 7460000.0, 7460000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 20, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 51.6, "min": 15.5, "max": 154.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 8.9, "min": 2.0, "max": 14.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 42.2, "min": 24.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 10.3, "min": 3.1, "max": 25.8, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008883 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 20, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 51.6, \"min\": 15.5, \"max\": 154.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 8.9, \"min\": 2.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 42.2, \"min\": 24.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 10.3, \"min\": 3.1, \"max\": 25.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad3b4_1480", "family": "revolved", "tier": 1, "seed": 2468008884, "symmetry": "radial", "op_count": 1, "ir_hash": "e6ad2f44a536b14f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15400.0, "surface_area": 6550.0, "principal_moments": [1190000.0, 3570000.0, 3570000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 22.68, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 57.1, "min": 17.1, "max": 171.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008884 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 22.68, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 57.1, \"min\": 17.1, \"max\": 171.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad3b5_1481", "family": "compound", "tier": 3, "seed": 2468008885, "symmetry": "mirror_x", "op_count": 5, "ir_hash": "fcf5a489aa001cd5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 59300.0, "surface_area": 23300.0, "principal_moments": [56299999.99999999, 88500000.0, 101000000.0], "n_faces": 51, "n_edges": 120, "n_vertices": 72}, "params": {"base_w": {"type": "float", "default": 102.61, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 81.1, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 5.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 8.1, "min": 4.0, "max": 20.2, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 115.0, "min": 34.5, "max": 345.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "chamfer_d": {"type": "float", "default": 2.2, "min": 0.5, "max": 3.0, "step": 0.5, "group": "Body", "label": "Chamfer distance (mm)"}, "chamfered": {"type": "bool", "default": true, "group": "Body", "label": "Chamfer edges"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008885 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 102.61, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 81.1, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 8.1, \"min\": 4.0, \"max\": 20.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 115.0, \"min\": 34.5, \"max\": 345.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"chamfer_d\": {\"type\": 'float', \"default\": 2.2, \"min\": 0.5, \"max\": 3.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Chamfer distance (mm)'},\n \"chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Chamfer edges'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_w\"], p[\"base_d\"]) * 0.04333421552196519)\n if p[\"chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rarray(17.2, 3.8, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad3b7_1483", "family": "enclosure", "tier": 1, "seed": 2468008887, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "a3fc46a8de70b913", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 131000.0, "surface_area": 88300.0, "principal_moments": [261000000.0, 333000000.0, 424000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 120.0, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 96.9, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 78.6, "min": 31.4, "max": 157.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008887 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 120.0, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 96.9, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 78.6, \"min\": 31.4, \"max\": 157.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3b8_1484", "family": "plate", "tier": 2, "seed": 2468008888, "symmetry": "none", "op_count": 3, "ir_hash": "b2324d7987b8d5fd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16200.0, "surface_area": 5080.0, "principal_moments": [1040000.0, 4230000.0, 4880000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 25.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008888 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 25.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.06066197854260552)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad3b9_1485", "family": "bracket", "tier": 1, "seed": 2468008889, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "7e9b265c67ef4b38", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14200.0, "surface_area": 10500.0, "principal_moments": [3830000.0, 13099999.999999998, 13999999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 58.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008889 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 58.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad3bb_1487", "family": "gear", "tier": 0, "seed": 2468008891, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "9053abbda29058dd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 256000.0, "surface_area": 41400.0, "principal_moments": [272000000.0, 272000000.0, 527000000.0], "n_faces": 194, "n_edges": 576, "n_vertices": 384}, "params": {"module": {"type": "float", "default": 4.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 32, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 20.1, "min": 8.0, "max": 50.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008891 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 32, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 20.1, \"min\": 8.0, \"max\": 50.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3bc_1488", "family": "block", "tier": 1, "seed": 2468008892, "symmetry": "none", "op_count": 2, "ir_hash": "059036f0c45f8dea", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 248000.0, "surface_area": 26900.0, "principal_moments": [153000000.0, 155000000.0, 203000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 50.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 70.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 11.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008892 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 50.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 70.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 11.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad3bd_1489", "family": "flanged", "tier": 1, "seed": 2468008893, "symmetry": "none", "op_count": 2, "ir_hash": "b94ca7e241595dfd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 112000.0, "surface_area": 28700.0, "principal_moments": [75800000.0, 75800000.0, 102000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 44.47, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 48.9, "min": 14.7, "max": 122.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 19.0, "min": 2.0, "max": 31.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 106.5, "min": 57.8, "max": 133.4, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.9, "min": 2.1, "max": 19.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 31.9, "min": 21.3, "max": 47.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008893 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 44.47, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 48.9, \"min\": 14.7, \"max\": 122.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 19.0, \"min\": 2.0, \"max\": 31.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 106.5, \"min\": 57.8, \"max\": 133.4, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.9, \"min\": 2.1, \"max\": 19.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 31.9, \"min\": 21.3, \"max\": 47.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3be_1490", "family": "block", "tier": 3, "seed": 2468008894, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "c2b356acf0ae1b05", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2180.0, "surface_area": 1860.0, "principal_moments": [80400.0, 80600.0, 130000.0], "n_faces": 28, "n_edges": 75, "n_vertices": 50}, "params": {"block_w": {"type": "float", "default": 17.58, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 8.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 19.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 0.9, "min": 2.0, "max": 0.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "pocket_w": {"type": "float", "default": 11.4, "min": 5.7, "max": 14.1, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 4.9, "min": 2.5, "max": 6.8, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 10.6, "min": 4.2, "max": 16.1, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}, "filleted2": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008894 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 17.58, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 8.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 19.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 0.9, \"min\": 2.0, \"max\": 0.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"pocket_w\": {\"type\": 'float', \"default\": 11.4, \"min\": 5.7, \"max\": 14.1, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.5, \"max\": 6.8, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 10.6, \"min\": 4.2, \"max\": 16.1, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n \"filleted2\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 3.3\n _ssy = 2.9\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.08571227566448178)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad3c0_1492", "family": "bracket", "tier": 1, "seed": 2468008896, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "c76eb2bae8f2d432", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25700.0, "surface_area": 14900.0, "principal_moments": [17800000.0, 24199999.999999996, 38100000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 76.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008896 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 76.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad3c1_1493", "family": "flanged", "tier": 1, "seed": 2468008897, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "a98b2678beff97fa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 764000.0, "surface_area": 99100.0, "principal_moments": [1790000000.0, 1790000000.0, 2440000000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 94.97, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 90.0, "min": 27.0, "max": 225.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 52.1, "min": 2.0, "max": 66.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 189.6, "min": 123.5, "max": 284.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 15.1, "min": 4.5, "max": 36.0, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 56.9, "min": 37.9, "max": 85.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008897 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 94.97, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 90.0, \"min\": 27.0, \"max\": 225.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 52.1, \"min\": 2.0, \"max\": 66.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 189.6, \"min\": 123.5, \"max\": 284.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 15.1, \"min\": 4.5, \"max\": 36.0, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 56.9, \"min\": 37.9, \"max\": 85.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3c2_1494", "family": "plate", "tier": 2, "seed": 2468008898, "symmetry": "none", "op_count": 3, "ir_hash": "eb879f0eef905a89", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27100.0, "surface_area": 8210.0, "principal_moments": [2750000.0, 15399999.999999998, 17700000.0], "n_faces": 42, "n_edges": 120, "n_vertices": 80}, "params": {"plate_w": {"type": "float", "default": 82.26, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 33.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 9.8, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008898 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 82.26, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 33.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 9.8, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.051061032197152044)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3c3_1495", "family": "block", "tier": 2, "seed": 2468008899, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "223622489d3d689d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5590.0, "surface_area": 3130.0, "principal_moments": [226000.0, 504000.0, 584000.0], "n_faces": 31, "n_edges": 71, "n_vertices": 46}, "params": {"block_w": {"type": "float", "default": 20, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 8.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 21.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.4, "min": 2.0, "max": 2.5, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "boss_d": {"type": "float", "default": 19.1, "min": 9.6, "max": 38.2, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 8.4, "min": 3.4, "max": 21.0, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008899 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 8.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 21.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 2.5, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 19.1, \"min\": 9.6, \"max\": 38.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.4, \"max\": 21.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3c4_1496", "family": "plate", "tier": 1, "seed": 2468008900, "symmetry": "none", "op_count": 2, "ir_hash": "e17e2c91f64e9796", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19700.0, "surface_area": 8690.0, "principal_moments": [2820000.0, 11200000.0, 13899999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 83.69, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 41.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 9.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008900 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 83.69, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 41.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 9.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad3c5_1497", "family": "revolved", "tier": 0, "seed": 2468008901, "symmetry": "radial", "op_count": 1, "ir_hash": "e6f21b5bdb34df30", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 423000.0, "surface_area": 66400.0, "principal_moments": [228000000.0, 1380000000.0, 1380000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 60, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 224.3, "min": 67.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008901 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 224.3, \"min\": 67.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad3c6_1498", "family": "ribbed", "tier": 1, "seed": 2468008902, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "58105d28f86b2a84", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21100.0, "surface_area": 17700.0, "principal_moments": [5200000.0, 6880000.0, 10300000.0], "n_faces": 36, "n_edges": 84, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 51.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 18.0, "min": 7.2, "max": 36.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.3, "min": 1.0, "max": 5.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008902 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 51.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 18.0, \"min\": 7.2, \"max\": 36.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.3, \"min\": 1.0, \"max\": 5.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad3c8_1500", "family": "revolved", "tier": 0, "seed": 2468008904, "symmetry": "none", "op_count": 1, "ir_hash": "de58d622c07959f0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 759.0, "surface_area": 748.0, "principal_moments": [12900.0, 13800.0, 13800.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 10.64, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 12.8, "min": 3.8, "max": 38.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008904 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 10.64, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 12.8, \"min\": 3.8, \"max\": 38.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad3c9_1501", "family": "revolved", "tier": 2, "seed": 2468008905, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8463cc1f01f17e37", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 44300.0, "surface_area": 19000.0, "principal_moments": [22200000.0, 22200000.0, 41600000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 45.58, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 19.5, "min": 5.8, "max": 58.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 26.9, "min": 2.0, "max": 31.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 97.9, "min": 54.7, "max": 136.7, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.0, "min": 1.2, "max": 9.8, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008905 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45.58, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 19.5, \"min\": 5.8, \"max\": 58.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 26.9, \"min\": 2.0, \"max\": 31.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 97.9, \"min\": 54.7, \"max\": 136.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.2, \"max\": 9.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3ca_1502", "family": "plate", "tier": 1, "seed": 2468008906, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "9ca4961da4788c19", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12600.0, "surface_area": 4230.0, "principal_moments": [745000.0, 2240000.0, 2690000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 24.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008906 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 24.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3cb_1503", "family": "block", "tier": 1, "seed": 2468008907, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "d4ed511ea07cf91c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 88500.0, "surface_area": 19000.0, "principal_moments": [19200000.0, 46199999.99999999, 49599999.99999999], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 40, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 33.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 72.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.2, "min": 2.0, "max": 9.8, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008907 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 33.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 72.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 9.8, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad3cc_1504", "family": "revolved", "tier": 1, "seed": 2468008908, "symmetry": "radial", "op_count": 1, "ir_hash": "d032250edb5dc022", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61000.0, "surface_area": 13500.0, "principal_moments": [10600000.0, 43300000.0, 43300000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 25, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 86.8, "min": 26.0, "max": 260.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 9.2, "min": 2.0, "max": 17.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 42.5, "min": 30.0, "max": 75.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 26.0, "min": 7.8, "max": 43.4, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008908 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 86.8, \"min\": 26.0, \"max\": 260.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 9.2, \"min\": 2.0, \"max\": 17.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 42.5, \"min\": 30.0, \"max\": 75.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 26.0, \"min\": 7.8, \"max\": 43.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3cd_1505", "family": "block", "tier": 2, "seed": 2468008909, "symmetry": "none", "op_count": 3, "ir_hash": "cb15a506f9974c4d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17900.0, "surface_area": 6500.0, "principal_moments": [1720000.0, 2500000.0, 3310000.0], "n_faces": 42, "n_edges": 120, "n_vertices": 80}, "params": {"block_w": {"type": "float", "default": 30, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 18.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 37.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 5.3, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008909 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 18.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 37.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 5.3, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.046310211051817)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad3ce_1506", "family": "bracket", "tier": 1, "seed": 2468008910, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "6c74840d3a7b0a5d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12800.0, "surface_area": 9440.0, "principal_moments": [3890000.0, 4410000.0, 7060000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 31.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008910 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 31.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.09845823031825551)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad3d0_1508", "family": "bracket", "tier": 3, "seed": 2468008912, "symmetry": "none", "op_count": 1, "ir_hash": "963563609212d9db", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19400.0, "surface_area": 9500.0, "principal_moments": [5050000.0, 5950000.0, 8930000.0], "n_faces": 17, "n_edges": 55, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 36.03, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 39.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.3, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008912 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 36.03, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 39.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad3d1_1509", "family": "enclosure", "tier": 3, "seed": 2468008913, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "a5d6624664913917", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15100.0, "surface_area": 10900.0, "principal_moments": [3080000.0, 4310000.0, 5400000.0], "n_faces": 35, "n_edges": 108, "n_vertices": 72}, "params": {"enc_w": {"type": "float", "default": 44.4, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 22.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 38.0, "min": 15.2, "max": 76.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008913 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 44.4, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 22.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 38.0, \"min\": 15.2, \"max\": 76.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.05022686308524033)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3d2_1510", "family": "plate", "tier": 3, "seed": 2468008914, "symmetry": "none", "op_count": 4, "ir_hash": "d1c3670f8798bcdc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9520.0, "surface_area": 6260.0, "principal_moments": [820000.0, 3330000.0, 4030000.0], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 73.23, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 33.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 7.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "boss_d": {"type": "float", "default": 21.4, "min": 10.7, "max": 42.8, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 7.2, "min": 2.9, "max": 18.0, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 15.0, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008914 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 73.23, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 33.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 7.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"boss_d\": {\"type\": 'float', \"default\": 21.4, \"min\": 10.7, \"max\": 42.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 7.2, \"min\": 2.9, \"max\": 18.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 15.0, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.06688080364014219)\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3d3_1511", "family": "block", "tier": 2, "seed": 2468008915, "symmetry": "none", "op_count": 3, "ir_hash": "5a4cbdc7e616da44", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 340000.0, "surface_area": 37900.0, "principal_moments": [260000000.0, 273000000.0, 367000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 81.64, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 54.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 79.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 5.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "boss_d": {"type": "float", "default": 8.6, "min": 4.3, "max": 17.2, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 5.2, "min": 2.1, "max": 13.0, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.0, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008915 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 81.64, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 54.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 79.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 5.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"boss_d\": {\"type\": 'float', \"default\": 8.6, \"min\": 4.3, \"max\": 17.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.1, \"max\": 13.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 30.6\n _ssy = 34.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad3d4_1512", "family": "ribbed", "tier": 1, "seed": 2468008916, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "7ffcef5d1bb3073c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19500.0, "surface_area": 8920.0, "principal_moments": [3640000.0, 8160000.0, 10100000.0], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 56.14, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 38.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 17.6, "min": 7.0, "max": 35.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.6, "min": 1.0, "max": 14.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008916 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 56.14, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 38.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 17.6, \"min\": 7.0, \"max\": 35.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 1.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad3d5_1513", "family": "enclosure", "tier": 1, "seed": 2468008917, "symmetry": "none", "op_count": 2, "ir_hash": "06b6a10ef18fde7e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 166000.0, "surface_area": 61500.0, "principal_moments": [253000000.0, 282000000.0, 428000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 105, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 97.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 56.5, "min": 22.6, "max": 113.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008917 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 105, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 97.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 56.5, \"min\": 22.6, \"max\": 113.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3d6_1514", "family": "plate", "tier": 1, "seed": 2468008918, "symmetry": "none", "op_count": 2, "ir_hash": "2286dd1b28d86fa1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8130.0, "surface_area": 5910.0, "principal_moments": [549000.0, 4320000.0, 4840000.0], "n_faces": 70, "n_edges": 204, "n_vertices": 136}, "params": {"plate_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 28.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 4.4, "step": 0.1, "group": "Holes", "label": "Square hole size (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008918 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 28.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 4.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(21.3, 7.5, p[\"hole_nx\"], p[\"hole_ny\"])\n .rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3d7_1515", "family": "plate", "tier": 0, "seed": 2468008919, "symmetry": "radial", "op_count": 1, "ir_hash": "e7fee59a41113edb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 59700.0, "surface_area": 15200.0, "principal_moments": [15199999.999999998, 60699999.99999999, 74900000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 110, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 54.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008919 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 110, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 54.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3d8_1516", "family": "plate", "tier": 1, "seed": 2468008920, "symmetry": "none", "op_count": 2, "ir_hash": "d11b48de53d39455", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1880.0, "surface_area": 1430.0, "principal_moments": [24500.0, 179000.0, 196000.0], "n_faces": 30, "n_edges": 84, "n_vertices": 56}, "params": {"plate_w": {"type": "float", "default": 33.73, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 11.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 1.5, "min": 2.0, "max": 1.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}, "hole_slot_len": {"type": "float", "default": 2.8, "min": 2.2, "max": 6.6, "step": 0.5, "group": "Holes", "label": "Slot length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008920 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 33.73, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 11.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.5, \"min\": 2.0, \"max\": 1.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n \"hole_slot_len\": {\"type\": 'float', \"default\": 2.8, \"min\": 2.2, \"max\": 6.6, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot length (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(13.5, 9.4, p[\"hole_nx\"], p[\"hole_ny\"])\n .slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad3d9_1517", "family": "flanged", "tier": 1, "seed": 2468008921, "symmetry": "radial", "op_count": 2, "ir_hash": "f94dc8c4e1a0b729", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 204000.0, "surface_area": 39400.0, "principal_moments": [167000000.0, 167000000.0, 167000000.0], "n_faces": 29, "n_edges": 114, "n_vertices": 76}, "params": {"outer_d": {"type": "float", "default": 63.05, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 65.1, "min": 19.5, "max": 162.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 21.0, "min": 2.0, "max": 44.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 104.4, "min": 82.0, "max": 189.1, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.9, "min": 2.7, "max": 26.0, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 31.3, "min": 20.9, "max": 47.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008921 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 63.05, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 65.1, \"min\": 19.5, \"max\": 162.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 21.0, \"min\": 2.0, \"max\": 44.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 104.4, \"min\": 82.0, \"max\": 189.1, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.9, \"min\": 2.7, \"max\": 26.0, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 31.3, \"min\": 20.9, \"max\": 47.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad3da_1518", "family": "bracket", "tier": 1, "seed": 2468008922, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "b7c32b25d378f106", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12900.0, "surface_area": 6860.0, "principal_moments": [3080000.0, 11000000.0, 13399999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 72.66, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 72.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 18.51, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 7.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008922 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 72.66, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 72.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 18.51, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 7.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.11467190748036149)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3dc_1520", "family": "plate", "tier": 1, "seed": 2468008924, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "70628884d5115d7b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2300.0, "surface_area": 2040.0, "principal_moments": [54800.0, 428000.0, 479000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 47.61, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 16.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008924 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 47.61, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 16.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3dd_1521", "family": "block", "tier": 1, "seed": 2468008925, "symmetry": "radial", "op_count": 2, "ir_hash": "6dab3001eb74b39f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 91900.0, "surface_area": 29000.0, "principal_moments": [27999999.999999996, 80300000.0, 101000000.0], "n_faces": 24, "n_edges": 66, "n_vertices": 44}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 22.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 16.5, "min": 11.0, "max": 24.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008925 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 22.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 16.5, \"min\": 11.0, \"max\": 24.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad3df_1523", "family": "enclosure", "tier": 2, "seed": 2468008927, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "f4b41cd96350fa77", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12100.0, "surface_area": 9320.0, "principal_moments": [1710000.0, 4590000.0, 5050000.0], "n_faces": 35, "n_edges": 108, "n_vertices": 72}, "params": {"enc_w": {"type": "float", "default": 55, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 25.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 23.0, "min": 9.2, "max": 46.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008927 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 55, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 25.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 23.0, \"min\": 9.2, \"max\": 46.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.06430447337714644)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3e0_1524", "family": "plate", "tier": 1, "seed": 2468008928, "symmetry": "none", "op_count": 2, "ir_hash": "63dfb501fff1575a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29400.0, "surface_area": 9150.0, "principal_moments": [3770000.0, 16099999.999999998, 19300000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"plate_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 37.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008928 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 37.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 15.0\n _ssy = 15.6\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3e1_1525", "family": "plate", "tier": 1, "seed": 2468008929, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "3cac60d7fa3d3f81", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18900.0, "surface_area": 10800.0, "principal_moments": [5660000.0, 10000000.0, 15599999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 60.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008929 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 60.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad3e2_1526", "family": "revolved", "tier": 0, "seed": 2468008930, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "284fab9a693e64c4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 55800.0, "surface_area": 12700.0, "principal_moments": [19800000.0, 19800000.0, 35400000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 65.02, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 25.2, "min": 7.6, "max": 75.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008930 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65.02, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 25.2, \"min\": 7.6, \"max\": 75.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3e3_1527", "family": "block", "tier": 2, "seed": 2468008931, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "8a1426873b4b3e73", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 68200.0, "surface_area": 21500.0, "principal_moments": [17700000.0, 44600000.0, 57099999.99999999], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 48.66, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 20.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 86.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "pocket_w": {"type": "float", "default": 33.0, "min": 16.5, "max": 38.9, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 9.0, "min": 4.5, "max": 16.0, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 47.0, "min": 18.8, "max": 73.4, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008931 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 48.66, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 20.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 86.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"pocket_w\": {\"type\": 'float', \"default\": 33.0, \"min\": 16.5, \"max\": 38.9, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 9.0, \"min\": 4.5, \"max\": 16.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 47.0, \"min\": 18.8, \"max\": 73.4, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 12.2\n _ssy = 13.8\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad3e4_1528", "family": "flanged", "tier": 1, "seed": 2468008932, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "b4ea9a166dde8c95", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 927000.0, "surface_area": 113000.0, "principal_moments": [2330000000.0, 2330000000.0, 2850000000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 96.53, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 98.9, "min": 29.7, "max": 247.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 35.6, "min": 2.0, "max": 67.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 210.4, "min": 125.5, "max": 289.6, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 11.0, "min": 3.3, "max": 39.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 63.1, "min": 42.1, "max": 94.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008932 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 96.53, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 98.9, \"min\": 29.7, \"max\": 247.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 35.6, \"min\": 2.0, \"max\": 67.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 210.4, \"min\": 125.5, \"max\": 289.6, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 11.0, \"min\": 3.3, \"max\": 39.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 63.1, \"min\": 42.1, \"max\": 94.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3e6_1530", "family": "block", "tier": 1, "seed": 2468008934, "symmetry": "none", "op_count": 2, "ir_hash": "8627b780b02ca6c0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19500.0, "surface_area": 5500.0, "principal_moments": [1650000.0, 3300000.0, 3460000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 40, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 21.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 23.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008934 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 21.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 23.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad3e7_1531", "family": "bracket", "tier": 1, "seed": 2468008935, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8f4f74831ba9a557", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19800.0, "surface_area": 10000.0, "principal_moments": [6440000.0, 22899999.999999996, 27199999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 78.16, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 88.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008935 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 78.16, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 88.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad3e9_1533", "family": "revolved", "tier": 1, "seed": 2468008937, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "fe64a0cd46197a45", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 104000.0, "surface_area": 20900.0, "principal_moments": [38900000.0, 58899999.99999999, 58899999.99999999], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 49.91, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 79.9, "min": 24.0, "max": 239.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 1.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008937 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 49.91, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 79.9, \"min\": 24.0, \"max\": 239.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 1.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad3ed_1537", "family": "compound", "tier": 2, "seed": 2468008941, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "b1f4754efa93abe1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 191000.0, "surface_area": 29100.0, "principal_moments": [104000000.0, 114000000.0, 152000000.0], "n_faces": 20, "n_edges": 54, "n_vertices": 36}, "params": {"block_w": {"type": "float", "default": 69.87, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 64.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 46.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 58.4, "min": 23.4, "max": 93.4, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 38.2, "min": 15.3, "max": 61.1, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 8.4, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 44.9, "min": 22.4, "max": 55.9, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 40.6, "min": 20.3, "max": 51.8, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 18.8, "min": 7.5, "max": 39.4, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008941 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 69.87, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 64.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 46.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 58.4, \"min\": 23.4, \"max\": 93.4, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 38.2, \"min\": 15.3, \"max\": 61.1, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 8.4, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 44.9, \"min\": 22.4, \"max\": 55.9, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 40.6, \"min\": 20.3, \"max\": 51.8, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 18.8, \"min\": 7.5, \"max\": 39.4, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad3ef_1539", "family": "enclosure", "tier": 1, "seed": 2468008943, "symmetry": "none", "op_count": 2, "ir_hash": "90b1be68c74f3a54", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 55900.0, "surface_area": 34800.0, "principal_moments": [39900000.0, 59799999.99999999, 69300000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 80, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 56.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 51.5, "min": 20.6, "max": 103.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008943 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 80, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 56.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 51.5, \"min\": 20.6, \"max\": 103.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad3f0_1540", "family": "bracket", "tier": 3, "seed": 2468008944, "symmetry": "none", "op_count": 1, "ir_hash": "5624ba8c083e9b24", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18100.0, "surface_area": 10800.0, "principal_moments": [4620000.0, 11100000.0, 12099999.999999998], "n_faces": 26, "n_edges": 92, "n_vertices": 56}, "params": {"base_len": {"type": "float", "default": 57.47, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 40.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 34.63, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.3, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008944 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 57.47, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 40.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 34.63, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3f1_1541", "family": "block", "tier": 3, "seed": 2468008945, "symmetry": "radial", "op_count": 4, "ir_hash": "7cb7e1dda36f129f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 559000.0, "surface_area": 49100.0, "principal_moments": [605000000.0, 621000000.0, 919000000.0], "n_faces": 27, "n_edges": 72, "n_vertices": 48}, "params": {"block_w": {"type": "float", "default": 98.39, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 57.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 29.5, "min": 19.7, "max": 44.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "boss_d": {"type": "float", "default": 12.5, "min": 6.2, "max": 25.0, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 4.7, "min": 1.9, "max": 11.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 8.8, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}, "filleted2": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008945 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 98.39, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 57.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 29.5, \"min\": 19.7, \"max\": 44.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"boss_d\": {\"type\": 'float', \"default\": 12.5, \"min\": 6.2, \"max\": 25.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 4.7, \"min\": 1.9, \"max\": 11.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 8.8, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n \"filleted2\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.05628168632085472)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3f2_1542", "family": "block", "tier": 2, "seed": 2468008946, "symmetry": "radial", "op_count": 3, "ir_hash": "8b76419ffd10da40", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 178000.0, "surface_area": 27600.0, "principal_moments": [78500000.0, 153000000.0, 205000000.0], "n_faces": 28, "n_edges": 78, "n_vertices": 52}, "params": {"block_w": {"type": "float", "default": 65.72, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 30.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 96.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 19.7, "min": 13.1, "max": 29.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008946 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65.72, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 30.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 96.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 19.7, \"min\": 13.1, \"max\": 29.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.08463599605424896)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3f3_1543", "family": "plate", "tier": 0, "seed": 2468008947, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "0b1e6a9043dba637", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1130.0, "surface_area": 1020.0, "principal_moments": [13300.0, 103000.0, 114000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 32.85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 11.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008947 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 32.85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 11.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3f4_1544", "family": "plate", "tier": 0, "seed": 2468008948, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d4422816e712a93e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7200.0, "surface_area": 3360.0, "principal_moments": [262000.0, 2180000.0, 2400000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 20.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008948 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 20.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3f5_1545", "family": "plate", "tier": 0, "seed": 2468008949, "symmetry": "none", "op_count": 1, "ir_hash": "de220d5e181a58c0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12700.0, "surface_area": 4000.0, "principal_moments": [1040000.0, 2070000.0, 2890000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 43.02, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 29.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008949 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 43.02, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 29.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3f6_1546", "family": "plate", "tier": 2, "seed": 2468008950, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "43b0134c782550fe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11900.0, "surface_area": 5190.0, "principal_moments": [1390000.0, 1900000.0, 3160000.0], "n_faces": 26, "n_edges": 72, "n_vertices": 48}, "params": {"plate_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 38.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 8.6, "step": 0.5, "group": "Holes", "label": "Slot width (mm)"}, "hole_slot_len": {"type": "float", "default": 11.4, "min": 7.9, "max": 11.4, "step": 0.5, "group": "Holes", "label": "Slot length (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008950 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 38.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 8.6, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot width (mm)'},\n \"hole_slot_len\": {\"type\": 'float', \"default\": 11.4, \"min\": 7.9, \"max\": 11.4, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot length (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08140270541711667)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad3f7_1547", "family": "gear", "tier": 1, "seed": 2468008951, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "edd1e25ed16bcc36", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20500.0, "surface_area": 7230.0, "principal_moments": [3100000.0, 3100000.0, 5550000.0], "n_faces": 111, "n_edges": 327, "n_vertices": 218}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 18, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 13.8, "min": 5.5, "max": 34.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 9.5, "min": 2.0, "max": 23.2, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008951 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 18, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 13.8, \"min\": 5.5, \"max\": 34.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 9.5, \"min\": 2.0, \"max\": 23.2, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3f8_1548", "family": "block", "tier": 2, "seed": 2468008952, "symmetry": "radial", "op_count": 3, "ir_hash": "56f9d86bcb458431", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13100.0, "surface_area": 7780.0, "principal_moments": [1240000.0, 3170000.0, 4060000.0], "n_faces": 36, "n_edges": 102, "n_vertices": 68}, "params": {"block_w": {"type": "float", "default": 29.84, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 13.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 52.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 9.0, "min": 6.0, "max": 13.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008952 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 29.84, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 13.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 52.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 9.0, \"min\": 6.0, \"max\": 13.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.04937019105066036)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3f9_1549", "family": "block", "tier": 1, "seed": 2468008953, "symmetry": "none", "op_count": 2, "ir_hash": "01e68afadca23920", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 331000.0, "surface_area": 36900.0, "principal_moments": [222000000.0, 310000000.0, 313000000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 62.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 63.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008953 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 62.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 63.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 15.9\n _ssy = 17.0\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad3fa_1550", "family": "bracket", "tier": 1, "seed": 2468008954, "symmetry": "none", "op_count": 1, "ir_hash": "2e3bfe359d8927e0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20400.0, "surface_area": 9590.0, "principal_moments": [5290000.0, 8560000.0, 10400000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 49.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45.76, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008954 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 49.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45.76, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad3fc_1552", "family": "bracket", "tier": 2, "seed": 2468008956, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "673b525e079f5dba", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28900.0, "surface_area": 15800.0, "principal_moments": [10100000.0, 27599999.999999996, 28799999.999999996], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 82.49, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 57.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.9, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008956 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 82.49, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 57.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad3fd_1553", "family": "gear", "tier": 1, "seed": 2468008957, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "1d354ae5492c6bba", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12000.0, "surface_area": 5380.0, "principal_moments": [1630000.0, 1630000.0, 3140000.0], "n_faces": 111, "n_edges": 327, "n_vertices": 218}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 18, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 7.8, "min": 3.1, "max": 19.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 5.8, "min": 2.0, "max": 23.2, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008957 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 18, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 7.8, \"min\": 3.1, \"max\": 19.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.0, \"max\": 23.2, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3fe_1554", "family": "block", "tier": 1, "seed": 2468008958, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "0db2562c26464d52", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 567000.0, "surface_area": 52100.0, "principal_moments": [544000000.0, 726000000.0, 762000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 78.88, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 73.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 16.9, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008958 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 78.88, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 73.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 16.9, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad3ff_1555", "family": "threaded", "tier": 1, "seed": 2468008959, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "c2d6c154caaf9f0f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 693.0, "surface_area": 867.0, "principal_moments": [2580.0, 53800.0, 53800.0], "n_faces": 310, "n_edges": 796, "n_vertices": 488}, "params": {"major_d": {"type": "float", "default": 6.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.0, "min": 0.5, "max": 2.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 30.3, "min": 12.1, "max": 60.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008959 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.5, \"max\": 2.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 30.3, \"min\": 12.1, \"max\": 60.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad400_1556", "family": "flanged", "tier": 1, "seed": 2468008960, "symmetry": "radial", "op_count": 2, "ir_hash": "929fe79a91f1ba58", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 450000.0, "surface_area": 74600.0, "principal_moments": [728000000.0, 861000000.0, 861000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 71.7, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 103.6, "min": 31.1, "max": 259.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 33.9, "min": 2.0, "max": 50.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 158.1, "min": 93.2, "max": 215.1, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.1, "min": 2.4, "max": 41.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 47.4, "min": 31.6, "max": 71.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008960 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 71.7, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 103.6, \"min\": 31.1, \"max\": 259.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 33.9, \"min\": 2.0, \"max\": 50.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 158.1, \"min\": 93.2, \"max\": 215.1, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.1, \"min\": 2.4, \"max\": 41.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 47.4, \"min\": 31.6, \"max\": 71.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad402_1558", "family": "enclosure", "tier": 1, "seed": 2468008962, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "1ea3801456c33d3b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 64700.0, "surface_area": 26700.0, "principal_moments": [24599999.999999996, 67300000.0, 68900000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 90, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 36.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 45.8, "min": 18.3, "max": 91.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.1, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008962 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 90, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 36.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 45.8, \"min\": 18.3, \"max\": 91.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.1, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad403_1559", "family": "plate", "tier": 1, "seed": 2468008963, "symmetry": "none", "op_count": 2, "ir_hash": "821e1e32e76e1111", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4190.0, "surface_area": 2500.0, "principal_moments": [163000.0, 588000.0, 733000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 41.08, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 21.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008963 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 41.08, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 21.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad404_1560", "family": "flanged", "tier": 3, "seed": 2468008964, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "2af9d94a620b339c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23700.0, "surface_area": 9090.0, "principal_moments": [5120000.0, 5120000.0, 5970000.0], "n_faces": 34, "n_edges": 77, "n_vertices": 46}, "params": {"outer_d": {"type": "float", "default": 26.12, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 30.9, "min": 9.3, "max": 77.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 8.7, "min": 2.0, "max": 18.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 57.7, "min": 34.0, "max": 78.4, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.6, "min": 1.4, "max": 12.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 17.3, "min": 11.5, "max": 26.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008964 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 26.12, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 30.9, \"min\": 9.3, \"max\": 77.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 8.7, \"min\": 2.0, \"max\": 18.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 57.7, \"min\": 34.0, \"max\": 78.4, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.6, \"min\": 1.4, \"max\": 12.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 17.3, \"min\": 11.5, \"max\": 26.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad407_1563", "family": "gear", "tier": 2, "seed": 2468008967, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "49e118b90114ec70", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3250.0, "surface_area": 2140.0, "principal_moments": [152000.0, 152000.0, 282000.0], "n_faces": 259, "n_edges": 643, "n_vertices": 386}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 16, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.5, "min": 2.6, "max": 16.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 24.4, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": -0.2, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.43, "min": 0.0, "max": 0.75, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 3.6, "min": 2.0, "max": 12.2, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008967 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 16, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.5, \"min\": 2.6, \"max\": 16.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 24.4, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.2, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.43, \"min\": 0.0, \"max\": 0.75, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 3.6, \"min\": 2.0, \"max\": 12.2, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=True, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad408_1564", "family": "plate", "tier": 1, "seed": 2468008968, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "192d68659b17ff77", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5490.0, "surface_area": 3510.0, "principal_moments": [564000.0, 731000.0, 1280000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 40, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 35.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008968 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 35.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad409_1565", "family": "revolved", "tier": 1, "seed": 2468008969, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "19d3a1e86fe8e38b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35400.0, "surface_area": 10800.0, "principal_moments": [5340000.0, 15599999.999999998, 15599999.999999998], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 30.73, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 66.1, "min": 19.8, "max": 198.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.2, "min": 2.0, "max": 21.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008969 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30.73, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 66.1, \"min\": 19.8, \"max\": 198.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.2, \"min\": 2.0, \"max\": 21.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad40a_1566", "family": "plate", "tier": 1, "seed": 2468008970, "symmetry": "radial", "op_count": 2, "ir_hash": "086939f7ff8466b5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14300.0, "surface_area": 6300.0, "principal_moments": [2940000.0, 2980000.0, 5830000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"plate_w": {"type": "float", "default": 49.45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 49.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 14.8, "min": 9.9, "max": 22.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008970 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 49.45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 49.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 14.8, \"min\": 9.9, \"max\": 22.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad40b_1567", "family": "block", "tier": 1, "seed": 2468008971, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "44b6cf29eae7fdae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 72600.0, "surface_area": 16900.0, "principal_moments": [15299999.999999998, 31899999.999999996, 32099999.999999996], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 34.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 63.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008971 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 34.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 63.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 6.6\n _ssy = 6.9\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad40c_1568", "family": "gear", "tier": 0, "seed": 2468008972, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "dec2a6232abf72bc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3200.0, "surface_area": 2080.0, "principal_moments": [158000.0, 158000.0, 298000.0], "n_faces": 110, "n_edges": 324, "n_vertices": 216}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 18, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.7, "min": 2.3, "max": 14.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008972 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 18, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.3, \"max\": 14.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad40d_1569", "family": "plate", "tier": 1, "seed": 2468008973, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "c95114197d8f6133", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3120.0, "surface_area": 2180.0, "principal_moments": [192000.0, 234000.0, 417000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 30, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 27.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008973 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 27.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad40e_1570", "family": "enclosure", "tier": 1, "seed": 2468008974, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "b08fddb3175290a6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 87800.0, "surface_area": 32000.0, "principal_moments": [44800000.0, 108000000.0, 119000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 97.17, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 49.2, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 44.2, "min": 17.7, "max": 88.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008974 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 97.17, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 49.2, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 44.2, \"min\": 17.7, \"max\": 88.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad40f_1571", "family": "flanged", "tier": 1, "seed": 2468008975, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "115953c133c50601", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23800.0, "surface_area": 9520.0, "principal_moments": [5140000.0, 5140000.0, 6550000.0], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 30.72, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 28.8, "min": 8.6, "max": 72.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 15.3, "min": 2.0, "max": 21.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 56.3, "min": 39.9, "max": 92.2, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.9, "min": 1.5, "max": 11.5, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 16.9, "min": 11.3, "max": 25.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008975 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30.72, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 28.8, \"min\": 8.6, \"max\": 72.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 15.3, \"min\": 2.0, \"max\": 21.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 56.3, \"min\": 39.9, \"max\": 92.2, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.9, \"min\": 1.5, \"max\": 11.5, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 16.9, \"min\": 11.3, \"max\": 25.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad410_1572", "family": "gear", "tier": 3, "seed": 2468008976, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "971b030d0205038e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 263000.0, "surface_area": 35800.0, "principal_moments": [247000000.0, 247000000.0, 464000000.0], "n_faces": 125, "n_edges": 369, "n_vertices": 246}, "params": {"module": {"type": "float", "default": 5.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 24, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 27.9, "min": 11.2, "max": 69.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "cone_angle": {"type": "float", "default": 54.8, "min": 20.0, "max": 70.0, "step": 1.0, "group": "Gear", "label": "Pitch cone angle (deg)"}, "profile_shift": {"type": "float", "default": 0.42, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 1.1, "min": 0.0, "max": 2.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 23.8, "min": 2.0, "max": 64.5, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008976 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 5.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 24, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 27.9, \"min\": 11.2, \"max\": 69.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"cone_angle\": {\"type\": 'float', \"default\": 54.8, \"min\": 20.0, \"max\": 70.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Pitch cone angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.42, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 1.1, \"min\": 0.0, \"max\": 2.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 23.8, \"min\": 2.0, \"max\": 64.5, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.BevelGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], cone_angle=math.radians(p[\"cone_angle\"]), profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad411_1573", "family": "enclosure", "tier": 1, "seed": 2468008977, "symmetry": "none", "op_count": 2, "ir_hash": "e5a4fbb1da05c087", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 110000.0, "surface_area": 43500.0, "principal_moments": [106000000.0, 126000000.0, 137000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 76.17, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 56.2, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 74.0, "min": 29.6, "max": 148.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008977 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 76.17, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 56.2, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 74.0, \"min\": 29.6, \"max\": 148.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad412_1574", "family": "gear", "tier": 2, "seed": 2468008978, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "78e9ed0559790775", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7340.0, "surface_area": 3360.0, "principal_moments": [617000.0, 617000.0, 1150000.0], "n_faces": 63, "n_edges": 183, "n_vertices": 122}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 12, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 8.3, "min": 3.3, "max": 20.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 22.2, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.29, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.73, "min": 0.0, "max": 1.25, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 6.2, "min": 2.0, "max": 14.2, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008978 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 12, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 8.3, \"min\": 3.3, \"max\": 20.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 22.2, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.29, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.73, \"min\": 0.0, \"max\": 1.25, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 6.2, \"min\": 2.0, \"max\": 14.2, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad413_1575", "family": "bracket", "tier": 1, "seed": 2468008979, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "8d36d276c3096a8d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25900.0, "surface_area": 12000.0, "principal_moments": [8240000.0, 14899999.999999998, 17500000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 60, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 49.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008979 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 60, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 49.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad419_1581", "family": "compound", "tier": 3, "seed": 2468008985, "symmetry": "mirror_xy", "op_count": 7, "ir_hash": "0e18f334947b2190", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19400.0, "surface_area": 6770.0, "principal_moments": [2230000.0, 2480000.0, 2950000.0], "n_faces": 29, "n_edges": 68, "n_vertices": 43}, "params": {"block_w": {"type": "float", "default": 30.21, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 27.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 23.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 7.8, "min": 3.1, "max": 10.5, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 8.1, "min": 1.9, "max": 23.4, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 4.7, "min": 2.0, "max": 5.6, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008985 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 30.21, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 27.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 23.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 7.8, \"min\": 3.1, \"max\": 10.5, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 8.1, \"min\": 1.9, \"max\": 23.4, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 4.7, \"min\": 2.0, \"max\": 5.6, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.04080736101350323)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad41a_1582", "family": "block", "tier": 1, "seed": 2468008986, "symmetry": "none", "op_count": 2, "ir_hash": "1afa5a1471427e1d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35800.0, "surface_area": 8370.0, "principal_moments": [6210000.0, 7180000.0, 11100000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 45, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 19.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 41.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008986 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 19.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 41.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 16.9\n _ssy = 16.3\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad41b_1583", "family": "revolved", "tier": 0, "seed": 2468008987, "symmetry": "none", "op_count": 1, "ir_hash": "cb864ee593ea2f71", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27900.0, "surface_area": 8320.0, "principal_moments": [5130000.0, 5700000.0, 5700000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 35, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 43.5, "min": 13.0, "max": 130.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008987 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 43.5, \"min\": 13.0, \"max\": 130.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad41c_1584", "family": "profiled", "tier": 2, "seed": 2468008988, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "6858cf1d170fa28c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30500.0, "surface_area": 8710.0, "principal_moments": [1710000.0, 28399999.999999996, 28399999.999999996], "n_faces": 5, "n_edges": 9, "n_vertices": 6}, "params": {"circ_r": {"type": "float", "default": 15, "min": 7.5, "max": 30.0, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 3, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 104.2, "min": 31.3, "max": 312.6, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008988 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 15, \"min\": 7.5, \"max\": 30.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 3, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 104.2, \"min\": 31.3, \"max\": 312.6, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad41d_1585", "family": "gear", "tier": 0, "seed": 2468008989, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d0668c4ff429ab75", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1680000.0, "surface_area": 140000.0, "principal_moments": [5720000000.0, 5720000000.0, 11000000000.0], "n_faces": 230, "n_edges": 684, "n_vertices": 456}, "params": {"module": {"type": "float", "default": 6.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 38, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 41.5, "min": 16.6, "max": 103.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008989 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 6.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 38, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 41.5, \"min\": 16.6, \"max\": 103.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad41e_1586", "family": "revolved", "tier": 1, "seed": 2468008990, "symmetry": "none", "op_count": 2, "ir_hash": "abb328861cdec311", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 36500.0, "surface_area": 10800.0, "principal_moments": [4840000.0, 24799999.999999996, 24799999.999999996], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 21.41, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 81.4, "min": 24.4, "max": 244.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 9.2, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 39.7, "min": 25.7, "max": 64.2, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 14.6, "min": 4.4, "max": 40.7, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.3, "min": 0.1, "max": 3.9, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008990 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 21.41, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 81.4, \"min\": 24.4, \"max\": 244.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 9.2, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 39.7, \"min\": 25.7, \"max\": 64.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 14.6, \"min\": 4.4, \"max\": 40.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.3, \"min\": 0.1, \"max\": 3.9, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad422_1590", "family": "revolved", "tier": 0, "seed": 2468008994, "symmetry": "none", "op_count": 1, "ir_hash": "83e1df1dd07fa58e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 359000.0, "surface_area": 50400.0, "principal_moments": [264000000.0, 548000000.0, 548000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 70, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 139.8, "min": 41.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008994 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 70, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 139.8, \"min\": 41.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad423_1591", "family": "revolved", "tier": 2, "seed": 2468008995, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "82f7d484878dd931", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 493.0, "surface_area": 657.0, "principal_moments": [3430.0, 13700.0, 13700.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 6.83, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 20.5, "min": 6.1, "max": 61.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008995 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 6.83, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 20.5, \"min\": 6.1, \"max\": 61.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad425_1593", "family": "threaded", "tier": 3, "seed": 2468008997, "symmetry": "none", "op_count": 1, "ir_hash": "6de9681d64f5eb8e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61000.0, "surface_area": 13100.0, "principal_moments": [10400000.0, 22200000.0, 22300000.0], "n_faces": 90, "n_edges": 228, "n_vertices": 140}, "params": {"thread_size": {"type": "enum", "default": "40x7", "choices": ["8x1.5", "10x2", "12x3", "14x3", "16x4", "18x4", "20x4", "24x5", "28x5", "30x6", "36x6", "40x7"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 58.9, "min": 23.6, "max": 117.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008997 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '40x7', \"choices\": ['8x1.5', '10x2', '12x3', '14x3', '16x4', '18x4', '20x4', '24x5', '28x5', '30x6', '36x6', '40x7'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 58.9, \"min\": 23.6, \"max\": 117.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.MetricTrapezoidalThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad426_1594", "family": "enclosure", "tier": 1, "seed": 2468008998, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f6ba4a7592581cff", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 125000.0, "surface_area": 45200.0, "principal_moments": [88100000.0, 223000000.0, 243000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 116.75, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 56.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 52.5, "min": 21.0, "max": 105.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008998 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 116.75, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 56.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 52.5, \"min\": 21.0, \"max\": 105.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad427_1595", "family": "revolved", "tier": 1, "seed": 2468008999, "symmetry": "none", "op_count": 1, "ir_hash": "a30ca758d036ddda", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 223000.0, "surface_area": 35300.0, "principal_moments": [105000000.0, 335000000.0, 335000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 55, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 123.3, "min": 37.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 26.8, "min": 2.0, "max": 38.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008999 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 123.3, \"min\": 37.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 26.8, \"min\": 2.0, \"max\": 38.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad428_1596", "family": "threaded", "tier": 1, "seed": 2468009000, "symmetry": "none", "op_count": 1, "ir_hash": "a63acb85b7de6e44", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15700.0, "surface_area": 5930.0, "principal_moments": [676000.0, 4770000.0, 4770000.0], "n_faces": 416, "n_edges": 1142, "n_vertices": 728}, "params": {"major_d": {"type": "float", "default": 20.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.5, "min": 1.25, "max": 5.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 58.5, "min": 23.4, "max": 117.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009000 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 20.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.25, \"max\": 5.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 58.5, \"min\": 23.4, \"max\": 117.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad429_1597", "family": "revolved", "tier": 1, "seed": 2468009001, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "e795518a3bde7e21", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2920.0, "surface_area": 2050.0, "principal_moments": [203000.0, 203000.0, 393000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 29.98, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 6.2, "min": 1.9, "max": 18.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009001 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 29.98, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 6.2, \"min\": 1.9, \"max\": 18.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad42a_1598", "family": "profiled", "tier": 0, "seed": 2468009002, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "17fa2e42272b93a2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 571000.0, "surface_area": 63200.0, "principal_moments": [216000000.0, 6430000000.0, 6590000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 67.62, "min": 33.8, "max": 135.2, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 25.0, "min": 12.5, "max": 50.0, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 366.9, "min": 110.1, "max": 1100.7, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009002 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 67.62, \"min\": 33.8, \"max\": 135.2, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 25.0, \"min\": 12.5, \"max\": 50.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 366.9, \"min\": 110.1, \"max\": 1100.7, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad42c_1600", "family": "block", "tier": 2, "seed": 2468009004, "symmetry": "radial", "op_count": 3, "ir_hash": "0db5aa3c3df90b15", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 70000.0, "surface_area": 13500.0, "principal_moments": [16599999.999999998, 24299999.999999996, 31199999.999999996], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"block_w": {"type": "float", "default": 57.25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 44.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 28.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 17.2, "min": 11.5, "max": 25.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009004 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 57.25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 44.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 28.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 17.2, \"min\": 11.5, \"max\": 25.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.0718677814610526)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad42d_1601", "family": "flanged", "tier": 1, "seed": 2468009005, "symmetry": "none", "op_count": 2, "ir_hash": "6b90db243b8fd5f1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 242000.0, "surface_area": 46400.0, "principal_moments": [258000000.0, 258000000.0, 439000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 65, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 43.7, "min": 13.1, "max": 109.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 24.0, "min": 2.0, "max": 45.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 143.3, "min": 84.5, "max": 195.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.2, "min": 2.8, "max": 17.5, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 43.0, "min": 28.7, "max": 64.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009005 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 43.7, \"min\": 13.1, \"max\": 109.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 24.0, \"min\": 2.0, \"max\": 45.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 143.3, \"min\": 84.5, \"max\": 195.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.2, \"min\": 2.8, \"max\": 17.5, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 43.0, \"min\": 28.7, \"max\": 64.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad42e_1602", "family": "compound", "tier": 2, "seed": 2468009006, "symmetry": "none", "op_count": 4, "ir_hash": "0bc896cfab20a9b7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 187000.0, "surface_area": 31000.0, "principal_moments": [192000000.0, 206000000.0, 218000000.0], "n_faces": 16, "n_edges": 39, "n_vertices": 26}, "params": {"base_w": {"type": "float", "default": 95, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 89.0, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 16.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 29.7, "min": 11.9, "max": 44.5, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 78.3, "min": 23.5, "max": 234.9, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009006 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 95, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 89.0, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 16.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 29.7, \"min\": 11.9, \"max\": 44.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 78.3, \"min\": 23.5, \"max\": 234.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_w\"], p[\"base_d\"]) * 0.0524585364186799)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad42f_1603", "family": "revolved", "tier": 0, "seed": 2468009007, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "b725d346e4a5ca6e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26700.0, "surface_area": 7960.0, "principal_moments": [5080000.0, 5120000.0, 5120000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 35.59, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 40.3, "min": 12.1, "max": 120.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009007 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35.59, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 40.3, \"min\": 12.1, \"max\": 120.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad430_1604", "family": "block", "tier": 1, "seed": 2468009008, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "99e1335c05055c67", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 289000.0, "surface_area": 38800.0, "principal_moments": [205000000.0, 271000000.0, 417000000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 34.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009008 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 34.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 15.9\n _ssy = 14.0\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad431_1605", "family": "bracket", "tier": 2, "seed": 2468009009, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "c2c14d7954ff60b4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26500.0, "surface_area": 19100.0, "principal_moments": [8170000.0, 38100000.0, 40500000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 63.82, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 48.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 49.5, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 69.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 2.6, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009009 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 63.82, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 48.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 49.5, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 69.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.6, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad432_1606", "family": "block", "tier": 2, "seed": 2468009010, "symmetry": "radial", "op_count": 3, "ir_hash": "111da2765d151953", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 434000.0, "surface_area": 37800.0, "principal_moments": [375000000.0, 446000000.0, 645000000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 89.2, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 49.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 99.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 26.8, "min": 17.8, "max": 40.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009010 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 89.2, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 49.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 99.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 26.8, \"min\": 17.8, \"max\": 40.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.05708930711366583)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad433_1607", "family": "enclosure", "tier": 1, "seed": 2468009011, "symmetry": "none", "op_count": 2, "ir_hash": "ccbb5ae4fd3e979c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31600.0, "surface_area": 15900.0, "principal_moments": [9980000.0, 15699999.999999998, 19100000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 58.28, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 40.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 32.7, "min": 13.1, "max": 65.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009011 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 58.28, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 40.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 32.7, \"min\": 13.1, \"max\": 65.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad434_1608", "family": "enclosure", "tier": 1, "seed": 2468009012, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "77885557388a0998", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6230.0, "surface_area": 5940.0, "principal_moments": [896000.0, 1000000.0, 1460000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 31.99, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 29.4, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 18.8, "min": 7.5, "max": 37.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009012 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 31.99, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 29.4, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 18.8, \"min\": 7.5, \"max\": 37.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad435_1609", "family": "gear", "tier": 1, "seed": 2468009013, "symmetry": "none", "op_count": 1, "ir_hash": "c338cfdf201e664b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15400.0, "surface_area": 6120.0, "principal_moments": [2130000.0, 2130000.0, 3960000.0], "n_faces": 135, "n_edges": 399, "n_vertices": 266}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 22, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 10.8, "min": 4.3, "max": 27.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 9.4, "min": 2.0, "max": 23.4, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009013 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 22, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 10.8, \"min\": 4.3, \"max\": 27.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 9.4, \"min\": 2.0, \"max\": 23.4, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad436_1610", "family": "bracket", "tier": 1, "seed": 2468009014, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "6e2d0769f895b7f5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32600.0, "surface_area": 15100.0, "principal_moments": [11399999.999999998, 33399999.999999996, 34800000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 56.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 48.33, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009014 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 56.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 48.33, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.11050810579937287)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad438_1612", "family": "gear", "tier": 2, "seed": 2468009016, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "986d78853e5cec00", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5550.0, "surface_area": 3440.0, "principal_moments": [529000.0, 529000.0, 1030000.0], "n_faces": 187, "n_edges": 555, "n_vertices": 370}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 23, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.2, "min": 2.1, "max": 13.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 22.2, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.16, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.28, "min": 0.0, "max": 0.75, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 7.1, "min": 2.0, "max": 18.4, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009016 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 23, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.1, \"max\": 13.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 22.2, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.16, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.28, \"min\": 0.0, \"max\": 0.75, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 7.1, \"min\": 2.0, \"max\": 18.4, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad43a_1614", "family": "block", "tier": 2, "seed": 2468009018, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "6941f4a921100424", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3260.0, "surface_area": 2040.0, "principal_moments": [100000.0, 143000.0, 149000.0], "n_faces": 42, "n_edges": 120, "n_vertices": 80}, "params": {"block_w": {"type": "float", "default": 20, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 14.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 13.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 4.4, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009018 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 14.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 13.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 4.4, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.10620042838059962)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad43b_1615", "family": "plate", "tier": 1, "seed": 2468009019, "symmetry": "none", "op_count": 2, "ir_hash": "e419a9d2d8875685", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37400.0, "surface_area": 12500.0, "principal_moments": [10300000.0, 22200000.0, 32099999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 57.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009019 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 57.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad43c_1616", "family": "plate", "tier": 3, "seed": 2468009020, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "a78bd53b389f0312", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2850.0, "surface_area": 1890.0, "principal_moments": [101000.0, 136000.0, 206000.0], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 29.03, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 21.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "boss_d": {"type": "float", "default": 19.3, "min": 9.7, "max": 38.6, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 5.9, "min": 2.4, "max": 14.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.5, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009020 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 29.03, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 21.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"boss_d\": {\"type\": 'float', \"default\": 19.3, \"min\": 9.7, \"max\": 38.6, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 5.9, \"min\": 2.4, \"max\": 14.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.5, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.11227698860854174)\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad43d_1617", "family": "revolved", "tier": 1, "seed": 2468009021, "symmetry": "none", "op_count": 1, "ir_hash": "f0e62dc96f690c74", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7370.0, "surface_area": 3200.0, "principal_moments": [604000.0, 604000.0, 992000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 29.95, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 15.7, "min": 4.7, "max": 47.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009021 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 29.95, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 15.7, \"min\": 4.7, \"max\": 47.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad43e_1618", "family": "bracket", "tier": 2, "seed": 2468009022, "symmetry": "none", "op_count": 1, "ir_hash": "bcf3f82416e3566e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17600.0, "surface_area": 12800.0, "principal_moments": [5690000.0, 10800000.0, 12499999.999999998], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 62.36, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 50.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 51.06, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 2.7, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009022 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 62.36, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 50.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 51.06, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.7, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad43f_1619", "family": "revolved", "tier": 1, "seed": 2468009023, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "83fe36f5ba6920e4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 150000.0, "surface_area": 31500.0, "principal_moments": [45500000.0, 200000000.0, 200000000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 45, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 141.2, "min": 42.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.5, "min": 0.1, "max": 1.5, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009023 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 141.2, \"min\": 42.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.5, \"min\": 0.1, \"max\": 1.5, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad442_1622", "family": "plate", "tier": 0, "seed": 2468009026, "symmetry": "none", "op_count": 1, "ir_hash": "57ed0191b77ecbd3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2200.0, "surface_area": 1070.0, "principal_moments": [37300.0, 103000.0, 104000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 21.53, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 10.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009026 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 21.53, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 10.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad444_1624", "family": "revolved", "tier": 0, "seed": 2468009028, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ba3bd24514005fe8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 106000.0, "surface_area": 24200.0, "principal_moments": [28299999.999999996, 96899999.99999999, 96899999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 42.12, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 114.5, "min": 34.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009028 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 42.12, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 114.5, \"min\": 34.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad445_1625", "family": "compound", "tier": 1, "seed": 2468009029, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "ce0c550ca95ed2f7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31900.0, "surface_area": 6380.0, "principal_moments": [3800000.0, 7050000.0, 7440000.0], "n_faces": 10, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 27.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 25.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 5.2, "min": 2.1, "max": 11.4, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 5.9, "min": 1.3, "max": 15.6, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009029 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 27.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 25.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.1, \"max\": 11.4, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 5.9, \"min\": 1.3, \"max\": 15.6, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad447_1627", "family": "bracket", "tier": 2, "seed": 2468009031, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ff178677ba7c3878", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9340.0, "surface_area": 5500.0, "principal_moments": [1430000.0, 1730000.0, 2460000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 34.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 37.77, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.8, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009031 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 34.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 37.77, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.8, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad448_1628", "family": "compound", "tier": 2, "seed": 2468009032, "symmetry": "none", "op_count": 5, "ir_hash": "7e846cdfefb860cf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 174000.0, "surface_area": 24700.0, "principal_moments": [83500000.0, 91599999.99999999, 117000000.0], "n_faces": 20, "n_edges": 47, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 61.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 44.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 10.3, "min": 4.1, "max": 20.1, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 12.1, "min": 2.6, "max": 30.9, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 5.7, "min": 2.0, "max": 7.4, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009032 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 61.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 44.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 10.3, \"min\": 4.1, \"max\": 20.1, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 12.1, \"min\": 2.6, \"max\": 30.9, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.0, \"max\": 7.4, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad449_1629", "family": "enclosure", "tier": 3, "seed": 2468009033, "symmetry": "none", "op_count": 3, "ir_hash": "f8cdc164e0f214b4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21200.0, "surface_area": 14500.0, "principal_moments": [7690000.0, 8950000.0, 14199999.999999998], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 55, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 49.5, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 24.3, "min": 9.7, "max": 48.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.1, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 11.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009033 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 55, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 49.5, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 24.3, \"min\": 9.7, \"max\": 48.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.1, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 11.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad44a_1630", "family": "plate", "tier": 1, "seed": 2468009034, "symmetry": "none", "op_count": 2, "ir_hash": "b0717e33dc02e1e2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2760.0, "surface_area": 2400.0, "principal_moments": [107000.0, 453000.0, 556000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 21.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009034 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 21.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad44b_1631", "family": "compound", "tier": 1, "seed": 2468009035, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "2b9dcb038cb27810", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33000.0, "surface_area": 10200.0, "principal_moments": [8530000.0, 9050000.0, 13899999.999999998], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"base_w": {"type": "float", "default": 52.94, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 51.0, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 12.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 4.8, "min": 2.4, "max": 12.8, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 40.9, "min": 12.3, "max": 122.7, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 3.6, "min": 2.0, "max": 5.6, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 11.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009035 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 52.94, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 51.0, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 12.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 4.8, \"min\": 2.4, \"max\": 12.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 40.9, \"min\": 12.3, \"max\": 122.7, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 3.6, \"min\": 2.0, \"max\": 5.6, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 11.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad44c_1632", "family": "plate", "tier": 0, "seed": 2468009036, "symmetry": "radial", "op_count": 1, "ir_hash": "aebf65423940b973", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9900.0, "surface_area": 4970.0, "principal_moments": [596000.0, 4660000.0, 5220000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 75, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 26.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009036 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 75, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 26.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad44d_1633", "family": "block", "tier": 2, "seed": 2468009037, "symmetry": "radial", "op_count": 3, "ir_hash": "6b58909afe38b903", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 273000.0, "surface_area": 35300.0, "principal_moments": [177000000.0, 200000000.0, 274000000.0], "n_faces": 19, "n_edges": 48, "n_vertices": 32}, "params": {"block_w": {"type": "float", "default": 80.36, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 47.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 73.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.1, "min": 16.1, "max": 36.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "boss_d": {"type": "float", "default": 20.6, "min": 10.3, "max": 41.2, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 7.9, "min": 3.2, "max": 19.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 14.4, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009037 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80.36, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 47.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 73.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.1, \"min\": 16.1, \"max\": 36.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"boss_d\": {\"type\": 'float', \"default\": 20.6, \"min\": 10.3, \"max\": 41.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 7.9, \"min\": 3.2, \"max\": 19.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 14.4, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad44e_1634", "family": "gear", "tier": 3, "seed": 2468009038, "symmetry": "none", "op_count": 1, "ir_hash": "c63760ebbd555156", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1190000.0, "surface_area": 103000.0, "principal_moments": [3510000000.0, 3510000000.0, 6780000000.0], "n_faces": 313, "n_edges": 778, "n_vertices": 467}, "params": {"module": {"type": "float", "default": 6.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 31, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 34.8, "min": 13.9, "max": 87.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 23.6, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.34, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 1.23, "min": 0.0, "max": 3.0, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 32.0, "min": 2.0, "max": 102.6, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009038 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 6.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 31, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 34.8, \"min\": 13.9, \"max\": 87.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 23.6, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.34, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 1.23, \"min\": 0.0, \"max\": 3.0, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 32.0, \"min\": 2.0, \"max\": 102.6, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=True, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad44f_1635", "family": "bracket", "tier": 3, "seed": 2468009039, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "b9197baed571bb9f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33900.0, "surface_area": 13700.0, "principal_moments": [7540000.0, 25899999.999999996, 29799999.999999996], "n_faces": 22, "n_edges": 62, "n_vertices": 40}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 36.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 51.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 5.4, "min": 3.0, "max": 18.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009039 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 36.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 51.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.4, \"min\": 3.0, \"max\": 18.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad450_1636", "family": "bracket", "tier": 2, "seed": 2468009040, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "e9be375b2b7a94fd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22000.0, "surface_area": 7510.0, "principal_moments": [3100000.0, 11000000.0, 11899999.999999998], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 64.59, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 46.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 11.4, "min": 4.0, "max": 12.5, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009040 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 64.59, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 46.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 11.4, \"min\": 4.0, \"max\": 12.5, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad451_1637", "family": "block", "tier": 1, "seed": 2468009041, "symmetry": "none", "op_count": 2, "ir_hash": "0673f1553326cb6c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 68300.0, "surface_area": 12300.0, "principal_moments": [13299999.999999998, 26399999.999999996, 27999999.999999996], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 60, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 32.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 36.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009041 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 60, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 32.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 36.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 22.5\n _ssy = 19.0\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad453_1639", "family": "enclosure", "tier": 2, "seed": 2468009043, "symmetry": "none", "op_count": 3, "ir_hash": "cb965e9042464045", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 120000.0, "surface_area": 57600.0, "principal_moments": [141000000.0, 210000000.0, 220000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 98.31, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 66.2, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 73.3, "min": 29.3, "max": 146.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009043 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 98.31, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 66.2, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 73.3, \"min\": 29.3, \"max\": 146.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad454_1640", "family": "plate", "tier": 2, "seed": 2468009044, "symmetry": "none", "op_count": 3, "ir_hash": "968bd332cb06d521", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38400.0, "surface_area": 14900.0, "principal_moments": [19000000.0, 22200000.0, 41000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 83.65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 77.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009044 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 83.65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 77.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08191379390399986)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad455_1641", "family": "bracket", "tier": 1, "seed": 2468009045, "symmetry": "none", "op_count": 1, "ir_hash": "4b6b31165aeffdfa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13200.0, "surface_area": 6630.0, "principal_moments": [2410000.0, 2480000.0, 3330000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 30.04, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 38.76, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009045 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30.04, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 38.76, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad456_1642", "family": "bracket", "tier": 2, "seed": 2468009046, "symmetry": "none", "op_count": 1, "ir_hash": "99f73f81321ee17f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37200.0, "surface_area": 12000.0, "principal_moments": [9340000.0, 26199999.999999996, 28599999.999999996], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 63.34, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 69.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 34.66, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 8.2, "min": 4.0, "max": 17.3, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009046 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 63.34, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 69.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 34.66, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 8.2, \"min\": 4.0, \"max\": 17.3, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad457_1643", "family": "enclosure", "tier": 2, "seed": 2468009047, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "49ee5baade8350de", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 85300.0, "surface_area": 49900.0, "principal_moments": [96499999.99999999, 117000000.0, 120000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 79.6, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 61.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 76.1, "min": 30.4, "max": 152.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.5, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009047 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 79.6, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 61.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 76.1, \"min\": 30.4, \"max\": 152.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad458_1644", "family": "threaded", "tier": 0, "seed": 2468009048, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "db052034d8664397", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 257.0, "surface_area": 394.0, "principal_moments": [668.0, 5820.0, 5820.0], "n_faces": 210, "n_edges": 536, "n_vertices": 328}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 16.1, "min": 6.4, "max": 32.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009048 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 16.1, \"min\": 6.4, \"max\": 32.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad45a_1646", "family": "revolved", "tier": 0, "seed": 2468009050, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "8a01e1353ccd499b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 440.0, "surface_area": 496.0, "principal_moments": [5140.0, 5140.0, 6600.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 10.0, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 8.4, "min": 2.5, "max": 25.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009050 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.5, \"max\": 25.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad45b_1647", "family": "revolved", "tier": 1, "seed": 2468009051, "symmetry": "radial", "op_count": 1, "ir_hash": "842db6f2cb501b26", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 365000.0, "surface_area": 53500.0, "principal_moments": [240000000.0, 672000000.0, 672000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 66.14, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 159.5, "min": 47.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009051 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 66.14, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 159.5, \"min\": 47.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad45c_1648", "family": "flanged", "tier": 1, "seed": 2468009052, "symmetry": "radial", "op_count": 2, "ir_hash": "6ee8b9c78c577511", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9550.0, "surface_area": 5770.0, "principal_moments": [1300000.0, 1300000.0, 2170000.0], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 25, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 15.7, "min": 4.7, "max": 39.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 9.8, "min": 2.0, "max": 17.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 51.3, "min": 32.5, "max": 75.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.1, "min": 0.9, "max": 6.3, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 15.4, "min": 10.3, "max": 23.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009052 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 15.7, \"min\": 4.7, \"max\": 39.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 9.8, \"min\": 2.0, \"max\": 17.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 51.3, \"min\": 32.5, \"max\": 75.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.1, \"min\": 0.9, \"max\": 6.3, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 15.4, \"min\": 10.3, \"max\": 23.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad45d_1649", "family": "bracket", "tier": 1, "seed": 2468009053, "symmetry": "none", "op_count": 1, "ir_hash": "8f9a6adcdd99a826", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11600.0, "surface_area": 5090.0, "principal_moments": [1620000.0, 1970000.0, 2750000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 32.59, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 29.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009053 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 32.59, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 29.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad45f_1651", "family": "revolved", "tier": 1, "seed": 2468009055, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "0ccb3d9ce33a7e21", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 687000.0, "surface_area": 75600.0, "principal_moments": [588000000.0, 2560000000.0, 2560000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 198.8, "min": 59.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 35.0, "min": 2.0, "max": 52.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009055 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 198.8, \"min\": 59.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 35.0, \"min\": 2.0, \"max\": 52.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad460_1652", "family": "profiled", "tier": 1, "seed": 2468009056, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "752aac3d2e29c1a0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 138000.0, "surface_area": 27300.0, "principal_moments": [29799999.999999996, 268000000.0, 268000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 38.15, "min": 19.1, "max": 76.3, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 148.4, "min": 44.5, "max": 445.2, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.5, "min": 2.0, "max": 30.5, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009056 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 38.15, \"min\": 19.1, \"max\": 76.3, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 148.4, \"min\": 44.5, \"max\": 445.2, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.5, \"min\": 2.0, \"max\": 30.5, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad462_1654", "family": "gear", "tier": 1, "seed": 2468009058, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "b99b6540eaa38566", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 535000.0, "surface_area": 63900.0, "principal_moments": [733000000.0, 733000000.0, 1340000000.0], "n_faces": 141, "n_edges": 417, "n_vertices": 278}, "params": {"module": {"type": "float", "default": 6.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 23, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 37.8, "min": 15.1, "max": 94.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 27.4, "min": 2.0, "max": 73.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009058 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 6.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 23, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 37.8, \"min\": 15.1, \"max\": 94.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 27.4, \"min\": 2.0, \"max\": 73.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad463_1655", "family": "revolved", "tier": 1, "seed": 2468009059, "symmetry": "radial", "op_count": 2, "ir_hash": "6a218c4fcc5d0c11", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 105000.0, "surface_area": 24700.0, "principal_moments": [25199999.999999996, 110000000.0, 110000000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 40, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 125.4, "min": 37.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009059 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 125.4, \"min\": 37.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 3.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.11534260482732056)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad465_1657", "family": "profiled", "tier": 2, "seed": 2468009061, "symmetry": "none", "op_count": 1, "ir_hash": "dacae7c6b0cd2807", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 331000.0, "surface_area": 57000.0, "principal_moments": [82200000.0, 2530000000.0, 2530000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 41.18, "min": 20.6, "max": 82.4, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 300.0, "min": 90.0, "max": 900.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.0, "min": 2.0, "max": 32.9, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009061 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 41.18, \"min\": 20.6, \"max\": 82.4, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 300.0, \"min\": 90.0, \"max\": 900.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.0, \"min\": 2.0, \"max\": 32.9, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad466_1658", "family": "plate", "tier": 0, "seed": 2468009062, "symmetry": "radial", "op_count": 1, "ir_hash": "41f07dfad08c9451", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31200.0, "surface_area": 14000.0, "principal_moments": [14199999.999999998, 18500000.0, 32599999.999999996], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 84.33, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 73.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009062 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 84.33, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 73.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad468_1660", "family": "bracket", "tier": 1, "seed": 2468009064, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "51d2c843a06a1459", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23700.0, "surface_area": 8400.0, "principal_moments": [4710000.0, 15899999.999999998, 18100000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 70.01, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 57.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009064 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70.01, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 57.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad46c_1664", "family": "flanged", "tier": 2, "seed": 2468009068, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "ab6714c21c0e353d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10600.0, "surface_area": 5990.0, "principal_moments": [1300000.0, 1440000.0, 1440000.0], "n_faces": 44, "n_edges": 114, "n_vertices": 67}, "params": {"outer_d": {"type": "float", "default": 25.19, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 27.7, "min": 8.3, "max": 69.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 11.3, "min": 2.0, "max": 17.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 40.4, "min": 32.7, "max": 75.6, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 2.6, "min": 0.8, "max": 11.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 12.1, "min": 8.1, "max": 18.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009068 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25.19, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 27.7, \"min\": 8.3, \"max\": 69.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 11.3, \"min\": 2.0, \"max\": 17.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 40.4, \"min\": 32.7, \"max\": 75.6, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 2.6, \"min\": 0.8, \"max\": 11.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 12.1, \"min\": 8.1, \"max\": 18.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad46e_1666", "family": "plate", "tier": 1, "seed": 2468009070, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "50f64e94e673ddd2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15100.0, "surface_area": 5460.0, "principal_moments": [1690000.0, 2630000.0, 4070000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 45.57, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 36.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 8.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009070 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 45.57, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 36.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 8.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad46f_1667", "family": "block", "tier": 2, "seed": 2468009071, "symmetry": "radial", "op_count": 3, "ir_hash": "a9295e8c78b49fbc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 150000.0, "surface_area": 31600.0, "principal_moments": [75400000.0, 106000000.0, 152000000.0], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"block_w": {"type": "float", "default": 80, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 32.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 70.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.0, "min": 16.0, "max": 36.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "pocket_w": {"type": "float", "default": 33.9, "min": 16.9, "max": 64.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 20.0, "min": 10.0, "max": 26.2, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 35.7, "min": 14.3, "max": 59.6, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009071 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 32.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 70.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.0, \"min\": 16.0, \"max\": 36.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"pocket_w\": {\"type\": 'float', \"default\": 33.9, \"min\": 16.9, \"max\": 64.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 20.0, \"min\": 10.0, \"max\": 26.2, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 35.7, \"min\": 14.3, \"max\": 59.6, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad470_1668", "family": "block", "tier": 2, "seed": 2468009072, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "d1ce384ce3ae7aea", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 186000.0, "surface_area": 28200.0, "principal_moments": [100000000.0, 126000000.0, 198000000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 30.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 84.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 11.5, "min": 5.8, "max": 23.0, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 6.2, "min": 2.5, "max": 15.5, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 8.0, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009072 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 30.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 84.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 11.5, \"min\": 5.8, \"max\": 23.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 6.2, \"min\": 2.5, \"max\": 15.5, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad471_1669", "family": "flanged", "tier": 2, "seed": 2468009073, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "0be0e9b6206875a0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5610.0, "surface_area": 3620.0, "principal_moments": [410000.0, 410000.0, 563000.0], "n_faces": 18, "n_edges": 37, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 20.0, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 15.2, "min": 4.6, "max": 38.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 6.5, "min": 2.0, "max": 14.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 39.0, "min": 26.0, "max": 60.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 1.6, "min": 0.5, "max": 6.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 11.7, "min": 7.8, "max": 17.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009073 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 20.0, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 15.2, \"min\": 4.6, \"max\": 38.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 6.5, \"min\": 2.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 39.0, \"min\": 26.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 1.6, \"min\": 0.5, \"max\": 6.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 11.7, \"min\": 7.8, \"max\": 17.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad476_1674", "family": "plate", "tier": 0, "seed": 2468009078, "symmetry": "radial", "op_count": 1, "ir_hash": "52b6f6434d281e27", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11500.0, "surface_area": 3840.0, "principal_moments": [505000.0, 3120000.0, 3430000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 56.05, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 20.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009078 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 56.05, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 20.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad477_1675", "family": "bracket", "tier": 1, "seed": 2468009079, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8b641206090c76f8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33500.0, "surface_area": 10800.0, "principal_moments": [8780000.0, 15999999.999999998, 18600000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 56.17, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 45.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 44.86, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009079 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 56.17, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 45.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 44.86, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad479_1677", "family": "threaded", "tier": 2, "seed": 2468009081, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "a4a0c8c6af8477b8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 56100.0, "surface_area": 12600.0, "principal_moments": [8720000.0, 20200000.0, 20200000.0], "n_faces": 100, "n_edges": 250, "n_vertices": 152}, "params": {"thread_size": {"type": "enum", "default": "1 1/2", "choices": ["1/4", "5/16", "3/8", "1/2", "5/8", "3/4", "7/8", "1", "1 1/4", "1 1/2"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 59.1, "min": 23.6, "max": 118.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009081 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '1 1/2', \"choices\": ['1/4', '5/16', '3/8', '1/2', '5/8', '3/4', '7/8', '1', '1 1/4', '1 1/2'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 59.1, \"min\": 23.6, \"max\": 118.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.AcmeThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad47a_1678", "family": "block", "tier": 1, "seed": 2468009082, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "597e04a4e504ab70", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 359000.0, "surface_area": 41500.0, "principal_moments": [287000000.0, 308000000.0, 345000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 65.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 78.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009082 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 65.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 78.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad47c_1680", "family": "enclosure", "tier": 3, "seed": 2468009084, "symmetry": "none", "op_count": 4, "ir_hash": "f15a5488dd106ebd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 59800.0, "surface_area": 37400.0, "principal_moments": [42900000.0, 73700000.0, 75100000.0], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 85.7, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 48.5, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 60.5, "min": 24.2, "max": 121.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 10.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009084 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 85.7, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 48.5, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 60.5, \"min\": 24.2, \"max\": 121.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 10.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.1062492792956477)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad47d_1681", "family": "threaded", "tier": 1, "seed": 2468009085, "symmetry": "none", "op_count": 1, "ir_hash": "35dd468d159a0c62", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8490.0, "surface_area": 4360.0, "principal_moments": [623000.0, 1000000.0, 1000000.0], "n_faces": 212, "n_edges": 594, "n_vertices": 384}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 31.3, "min": 12.5, "max": 62.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009085 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 31.3, \"min\": 12.5, \"max\": 62.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad47e_1682", "family": "revolved", "tier": 1, "seed": 2468009086, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "9849153f2bc57fcf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 147000.0, "surface_area": 26300.0, "principal_moments": [64499999.99999999, 132000000.0, 132000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 47.85, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 84.3, "min": 25.3, "max": 252.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 21.3, "min": 2.0, "max": 33.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 70.8, "min": 57.4, "max": 143.6, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 11.7, "min": 3.5, "max": 42.1, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009086 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 47.85, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 84.3, \"min\": 25.3, \"max\": 252.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 21.3, \"min\": 2.0, \"max\": 33.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 70.8, \"min\": 57.4, \"max\": 143.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 11.7, \"min\": 3.5, \"max\": 42.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad480_1684", "family": "enclosure", "tier": 2, "seed": 2468009088, "symmetry": "none", "op_count": 4, "ir_hash": "7f04c12ed031a605", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 69400.0, "surface_area": 34500.0, "principal_moments": [55399999.99999999, 66099999.99999999, 75600000.0], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 70, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 58.9, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 57.5, "min": 23.0, "max": 115.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.1, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009088 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 70, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 58.9, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 57.5, \"min\": 23.0, \"max\": 115.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.1, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.05599410510659531)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad481_1685", "family": "bracket", "tier": 1, "seed": 2468009089, "symmetry": "none", "op_count": 1, "ir_hash": "08229f0aadfd512e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26000.0, "surface_area": 10500.0, "principal_moments": [7280000.0, 11000000.0, 14699999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 38.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009089 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 38.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.10854245986998579)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad483_1687", "family": "flanged", "tier": 1, "seed": 2468009091, "symmetry": "none", "op_count": 2, "ir_hash": "3ba7914520f0a50f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 44800.0, "surface_area": 16100.0, "principal_moments": [15499999.999999998, 15499999.999999998, 25399999.999999996], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 42.24, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 25.7, "min": 7.7, "max": 64.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 18.6, "min": 2.0, "max": 29.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 84.0, "min": 54.9, "max": 126.7, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.9, "min": 1.2, "max": 10.3, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 25.2, "min": 16.8, "max": 37.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009091 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 42.24, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 25.7, \"min\": 7.7, \"max\": 64.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 18.6, \"min\": 2.0, \"max\": 29.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 84.0, \"min\": 54.9, \"max\": 126.7, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.9, \"min\": 1.2, \"max\": 10.3, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 25.2, \"min\": 16.8, \"max\": 37.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad485_1689", "family": "plate", "tier": 1, "seed": 2468009093, "symmetry": "none", "op_count": 2, "ir_hash": "c9647caebfb6dd19", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17100.0, "surface_area": 6330.0, "principal_moments": [2370000.0, 4310000.0, 6490000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 40.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 9.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009093 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 40.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 9.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad486_1690", "family": "ribbed", "tier": 1, "seed": 2468009094, "symmetry": "none", "op_count": 2, "ir_hash": "fb91fccfd37534a3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45100.0, "surface_area": 16200.0, "principal_moments": [11999999.999999998, 35300000.0, 45799999.99999999], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 93.24, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 48.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 8.9, "min": 3.6, "max": 17.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.6, "min": 1.0, "max": 11.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009094 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 93.24, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 48.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 8.9, \"min\": 3.6, \"max\": 17.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.6, \"min\": 1.0, \"max\": 11.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad487_1691", "family": "flanged", "tier": 3, "seed": 2468009095, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "240bf44009ec7528", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 80800.0, "surface_area": 23000.0, "principal_moments": [43700000.0, 43700000.0, 66399999.99999999], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 45, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 38.7, "min": 11.6, "max": 96.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 24.5, "min": 2.0, "max": 31.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 93.9, "min": 58.5, "max": 135.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.5, "min": 2.2, "max": 15.5, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 28.2, "min": 18.8, "max": 42.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009095 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 38.7, \"min\": 11.6, \"max\": 96.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 24.5, \"min\": 2.0, \"max\": 31.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 93.9, \"min\": 58.5, \"max\": 135.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.5, \"min\": 2.2, \"max\": 15.5, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 28.2, \"min\": 18.8, \"max\": 42.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad488_1692", "family": "gear", "tier": 1, "seed": 2468009096, "symmetry": "none", "op_count": 1, "ir_hash": "b0d62c8b3d37ffa3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1320.0, "surface_area": 1160.0, "principal_moments": [28600.0, 28600.0, 42400.0], "n_faces": 63, "n_edges": 183, "n_vertices": 122}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 10, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 8.2, "min": 3.3, "max": 20.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 3.0, "min": 2.0, "max": 6.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009096 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 10, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 8.2, \"min\": 3.3, \"max\": 20.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 6.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad489_1693", "family": "enclosure", "tier": 1, "seed": 2468009097, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f88e6c7298a9d167", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20700.0, "surface_area": 9270.0, "principal_moments": [3780000.0, 6390000.0, 8450000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 50, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 35.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 21.3, "min": 8.5, "max": 42.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.9, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009097 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 50, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 35.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 21.3, \"min\": 8.5, \"max\": 42.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad48a_1694", "family": "revolved", "tier": 0, "seed": 2468009098, "symmetry": "none", "op_count": 1, "ir_hash": "45a001b975975096", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 182000.0, "surface_area": 36300.0, "principal_moments": [61499999.99999999, 284000000.0, 284000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 47.54, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 153.4, "min": 46.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009098 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 47.54, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 153.4, \"min\": 46.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad48b_1695", "family": "compound", "tier": 3, "seed": 2468009099, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "b8d7d26e97ed2600", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7690.0, "surface_area": 3290.0, "principal_moments": [651000.0, 651000.0, 676000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 15.85, "min": 9.5, "max": 25.4, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 8.9, "min": 3.6, "max": 22.2, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 14.7, "min": 7.3, "max": 22.0, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 15.6, "min": 4.7, "max": 39.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 6.3, "min": 2.0, "max": 10.6, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009099 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 15.85, \"min\": 9.5, \"max\": 25.4, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 8.9, \"min\": 3.6, \"max\": 22.2, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 14.7, \"min\": 7.3, \"max\": 22.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 15.6, \"min\": 4.7, \"max\": 39.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 6.3, \"min\": 2.0, \"max\": 10.6, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad48c_1696", "family": "compound", "tier": 1, "seed": 2468009100, "symmetry": "none", "op_count": 2, "ir_hash": "02e03a53b9130cc3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8630.0, "surface_area": 3380.0, "principal_moments": [642000.0, 806000.0, 806000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 13.51, "min": 8.1, "max": 21.6, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 14.3, "min": 5.7, "max": 35.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 12.1, "min": 6.0, "max": 20.0, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 17.4, "min": 5.2, "max": 43.5, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 5.5, "min": 2.0, "max": 8.7, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009100 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 13.51, \"min\": 8.1, \"max\": 21.6, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 14.3, \"min\": 5.7, \"max\": 35.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 12.1, \"min\": 6.0, \"max\": 20.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 17.4, \"min\": 5.2, \"max\": 43.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.0, \"max\": 8.7, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad48d_1697", "family": "bracket", "tier": 1, "seed": 2468009101, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "a376c498d322e4ba", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27800.0, "surface_area": 12400.0, "principal_moments": [8110000.0, 58899999.99999999, 64999999.99999999], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 86.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20.84, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 65.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 8.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009101 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 86.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20.84, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 65.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 8.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad48e_1698", "family": "plate", "tier": 0, "seed": 2468009102, "symmetry": "none", "op_count": 1, "ir_hash": "7c89930b6063ffdc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2000.0, "surface_area": 1060.0, "principal_moments": [27300.0, 115000.0, 121000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 25, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 10.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009102 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad48f_1699", "family": "bracket", "tier": 2, "seed": 2468009103, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "973e0cdd5c53ff60", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34500.0, "surface_area": 24400.0, "principal_moments": [11899999.999999998, 81000000.0, 83000000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 53.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50.12, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 89.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 4.2, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009103 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 53.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50.12, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 89.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.2, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad490_1700", "family": "compound", "tier": 2, "seed": 2468009104, "symmetry": "none", "op_count": 4, "ir_hash": "dc9c11c7effc60d0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38100.0, "surface_area": 15800.0, "principal_moments": [18700000.0, 21600000.0, 24399999.999999996], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"base_w": {"type": "float", "default": 75, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 66.4, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 6.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 16.9, "min": 6.8, "max": 33.2, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 52.2, "min": 15.7, "max": 156.6, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.2, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009104 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 75, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 66.4, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 16.9, \"min\": 6.8, \"max\": 33.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 52.2, \"min\": 15.7, \"max\": 156.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.2, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_w\"], p[\"base_d\"]) * 0.10607148318169593)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad491_1701", "family": "plate", "tier": 1, "seed": 2468009105, "symmetry": "radial", "op_count": 2, "ir_hash": "64695043a1e19010", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9150.0, "surface_area": 3620.0, "principal_moments": [465000.0, 1950000.0, 2320000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"plate_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 23.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 15.0, "min": 10.0, "max": 22.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009105 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 23.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 15.0, \"min\": 10.0, \"max\": 22.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad492_1702", "family": "revolved", "tier": 0, "seed": 2468009106, "symmetry": "radial", "op_count": 1, "ir_hash": "bd69d8d9d8e3fb80", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 141000.0, "surface_area": 27400.0, "principal_moments": [53599999.99999999, 121000000.0, 121000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 50.37, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 106.1, "min": 31.8, "max": 318.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009106 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50.37, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 106.1, \"min\": 31.8, \"max\": 318.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad493_1703", "family": "flanged", "tier": 2, "seed": 2468009107, "symmetry": "radial", "op_count": 2, "ir_hash": "9d8873fe06e1d3c3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1020000.0, "surface_area": 111000.0, "principal_moments": [2680000000.0, 2680000000.0, 2730000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 99.23, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 113.7, "min": 34.1, "max": 284.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 40.1, "min": 2.0, "max": 69.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 192.2, "min": 129.0, "max": 297.7, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 13.5, "min": 4.0, "max": 45.5, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 57.7, "min": 38.4, "max": 86.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009107 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 99.23, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 113.7, \"min\": 34.1, \"max\": 284.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 40.1, \"min\": 2.0, \"max\": 69.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 192.2, \"min\": 129.0, \"max\": 297.7, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 13.5, \"min\": 4.0, \"max\": 45.5, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 57.7, \"min\": 38.4, \"max\": 86.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad494_1704", "family": "enclosure", "tier": 2, "seed": 2468009108, "symmetry": "none", "op_count": 4, "ir_hash": "1ed85c390f64b0f4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19700.0, "surface_area": 9270.0, "principal_moments": [2900000.0, 5410000.0, 5480000.0], "n_faces": 27, "n_edges": 84, "n_vertices": 56}, "params": {"enc_w": {"type": "float", "default": 45, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 25.3, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 28.7, "min": 11.5, "max": 57.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.5, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009108 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 45, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 25.3, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 28.7, \"min\": 11.5, \"max\": 57.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.0490776011113046)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad496_1706", "family": "block", "tier": 2, "seed": 2468009110, "symmetry": "none", "op_count": 3, "ir_hash": "257b672a3ba8b0a4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2860.0, "surface_area": 1830.0, "principal_moments": [76400.0, 118000.0, 143000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 15.0, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 10.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 19.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.2, "min": 2.0, "max": 2.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009110 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 15.0, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 10.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 19.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 2.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.05407778375658451)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad497_1707", "family": "compound", "tier": 1, "seed": 2468009111, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "647fd6da5dd1c129", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8940.0, "surface_area": 4090.0, "principal_moments": [707000.0, 1170000.0, 1170000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"base_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 15, "min": 9.0, "max": 24.0, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 14.7, "min": 5.9, "max": 36.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 10.7, "min": 5.3, "max": 19.4, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 27.6, "min": 8.3, "max": 69.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 6.5, "min": 2.0, "max": 7.7, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009111 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 15, \"min\": 9.0, \"max\": 24.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 14.7, \"min\": 5.9, \"max\": 36.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 10.7, \"min\": 5.3, \"max\": 19.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 27.6, \"min\": 8.3, \"max\": 69.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 6.5, \"min\": 2.0, \"max\": 7.7, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad498_1708", "family": "revolved", "tier": 1, "seed": 2468009112, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "e48dff52d7c1385f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1400.0, "surface_area": 863.0, "principal_moments": [33400.0, 33400.0, 33900.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 13.17, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 12.5, "min": 3.8, "max": 37.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 4.8, "min": 2.0, "max": 9.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 1.2, "min": 0.1, "max": 3.6, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009112 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 13.17, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 12.5, \"min\": 3.8, \"max\": 37.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 4.8, \"min\": 2.0, \"max\": 9.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.2, \"min\": 0.1, \"max\": 3.6, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad49a_1710", "family": "revolved", "tier": 2, "seed": 2468009114, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "43bd8d51eeb63c17", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17700.0, "surface_area": 7280.0, "principal_moments": [1380000.0, 5150000.0, 5150000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 22.82, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 65.2, "min": 19.6, "max": 195.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009114 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 22.82, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 65.2, \"min\": 19.6, \"max\": 195.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 3.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad49d_1713", "family": "ribbed", "tier": 3, "seed": 2468009117, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "84e40862fec12b96", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15200.0, "surface_area": 7780.0, "principal_moments": [2070000.0, 4830000.0, 6440000.0], "n_faces": 38, "n_edges": 108, "n_vertices": 68}, "params": {"base_w": {"type": "float", "default": 57.0, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 31.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 8.6, "min": 3.4, "max": 17.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.6, "min": 1.0, "max": 14.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009117 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 57.0, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 31.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 8.6, \"min\": 3.4, \"max\": 17.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 1.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad49e_1714", "family": "flanged", "tier": 1, "seed": 2468009118, "symmetry": "radial", "op_count": 2, "ir_hash": "d04f8526f8c06b29", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 208000.0, "surface_area": 48100.0, "principal_moments": [233000000.0, 233000000.0, 410000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 75, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 38.1, "min": 11.4, "max": 95.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 39.4, "min": 2.0, "max": 52.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 149.3, "min": 97.5, "max": 225.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.6, "min": 2.0, "max": 15.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 44.8, "min": 29.9, "max": 67.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009118 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 38.1, \"min\": 11.4, \"max\": 95.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 39.4, \"min\": 2.0, \"max\": 52.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 149.3, \"min\": 97.5, \"max\": 225.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.6, \"min\": 2.0, \"max\": 15.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 44.8, \"min\": 29.9, \"max\": 67.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad4a0_1716", "family": "bracket", "tier": 3, "seed": 2468009120, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "c77230a255dc0781", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 56000.0, "surface_area": 21800.0, "principal_moments": [30899999.999999996, 57699999.99999999, 63199999.99999999], "n_faces": 26, "n_edges": 60, "n_vertices": 40}, "params": {"base_len": {"type": "float", "default": 71.48, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 57.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 52.61, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 7.5, "min": 3.0, "max": 18.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009120 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 71.48, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 57.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 52.61, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 7.5, \"min\": 3.0, \"max\": 18.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad4a1_1717", "family": "block", "tier": 1, "seed": 2468009121, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "a83dcbc1c19b32f3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 407000.0, "surface_area": 44000.0, "principal_moments": [311000000.0, 432000000.0, 557000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 80, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 52.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009121 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 52.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 20.0\n _ssy = 23.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad4a2_1718", "family": "bracket", "tier": 1, "seed": 2468009122, "symmetry": "none", "op_count": 1, "ir_hash": "c14a341b9f9b748f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15100.0, "surface_area": 5170.0, "principal_moments": [1530000.0, 2930000.0, 3700000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"base_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009122 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.09979031679621184)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad4a4_1720", "family": "revolved", "tier": 0, "seed": 2468009124, "symmetry": "none", "op_count": 1, "ir_hash": "86bf6115c74906ca", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 312000.0, "surface_area": 54200.0, "principal_moments": [138000000.0, 825000000.0, 825000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 54.32, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 202.0, "min": 60.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009124 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 54.32, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 202.0, \"min\": 60.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad4a5_1721", "family": "profiled", "tier": 2, "seed": 2468009125, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "9b21355d158f7e75", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 104000.0, "surface_area": 18700.0, "principal_moments": [12899999.999999998, 298000000.0, 307000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 38.34, "min": 19.2, "max": 76.7, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 16.17, "min": 8.1, "max": 32.3, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 184.7, "min": 55.4, "max": 554.1, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009125 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 38.34, \"min\": 19.2, \"max\": 76.7, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 16.17, \"min\": 8.1, \"max\": 32.3, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 184.7, \"min\": 55.4, \"max\": 554.1, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad4a6_1722", "family": "ribbed", "tier": 1, "seed": 2468009126, "symmetry": "none", "op_count": 2, "ir_hash": "c322ae1cfe48bbbe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29500.0, "surface_area": 24200.0, "principal_moments": [11899999.999999998, 16699999.999999998, 26099999.999999996], "n_faces": 31, "n_edges": 72, "n_vertices": 48}, "params": {"base_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 67.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 19.0, "min": 7.6, "max": 38.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.2, "min": 1.0, "max": 5.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009126 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 67.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 19.0, \"min\": 7.6, \"max\": 38.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.2, \"min\": 1.0, \"max\": 5.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad4a7_1723", "family": "bracket", "tier": 1, "seed": 2468009127, "symmetry": "none", "op_count": 1, "ir_hash": "3ea52a63f1ca1179", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33100.0, "surface_area": 18300.0, "principal_moments": [15299999.999999998, 39800000.0, 41800000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 88.83, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 64.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55.84, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009127 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 88.83, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 64.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55.84, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad4a9_1725", "family": "bracket", "tier": 3, "seed": 2468009129, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "e6ff2c75fdc4d0f1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14600.0, "surface_area": 10600.0, "principal_moments": [3400000.0, 12899999.999999998, 14299999.999999998], "n_faces": 17, "n_edges": 55, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 61.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.3, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009129 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 61.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.3, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad4aa_1726", "family": "block", "tier": 1, "seed": 2468009130, "symmetry": "radial", "op_count": 2, "ir_hash": "52fe6747b1b68b8f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 560000.0, "surface_area": 63400.0, "principal_moments": [583000000.0, 740000000.0, 776000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 80, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 75.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.0, "min": 16.0, "max": 36.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009130 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 75.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.0, \"min\": 16.0, \"max\": 36.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad4ab_1727", "family": "gear", "tier": 3, "seed": 2468009131, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "01d5d276daa0ffc4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16500.0, "surface_area": 8660.0, "principal_moments": [5080000.0, 5080000.0, 9320000.0], "n_faces": 68, "n_edges": 198, "n_vertices": 132}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 13, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 17.5, "min": 7.0, "max": 43.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": 0.39, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.66, "min": 0.0, "max": 1.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009131 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 13, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 17.5, \"min\": 7.0, \"max\": 43.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.39, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.66, \"min\": 0.0, \"max\": 1.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurRingGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad4ac_1728", "family": "revolved", "tier": 2, "seed": 2468009132, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "fe1f3ecc0e62f970", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 218000.0, "surface_area": 34000.0, "principal_moments": [132000000.0, 204000000.0, 204000000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 63.52, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 103.4, "min": 31.0, "max": 310.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.4, "min": 0.1, "max": 4.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009132 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 63.52, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 103.4, \"min\": 31.0, \"max\": 310.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.4, \"min\": 0.1, \"max\": 4.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad4af_1731", "family": "compound", "tier": 1, "seed": 2468009135, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "ff5122e536b6d7a3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 417000.0, "surface_area": 43400.0, "principal_moments": [382000000.0, 382000000.0, 468000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 80.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 81.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 49.9, "min": 20.0, "max": 79.8, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 47.4, "min": 19.0, "max": 75.8, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 10.4, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009135 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 80.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 81.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 49.9, \"min\": 20.0, \"max\": 79.8, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 47.4, \"min\": 19.0, \"max\": 75.8, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 10.4, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad4b1_1733", "family": "bracket", "tier": 2, "seed": 2468009137, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "71f2b07a913ec669", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11000.0, "surface_area": 4840.0, "principal_moments": [1190000.0, 4110000.0, 4930000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 56.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 15.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 6.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 9.0, "min": 3.0, "max": 7.5, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009137 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 56.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 15.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 6.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 9.0, \"min\": 3.0, \"max\": 7.5, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad4b2_1734", "family": "compound", "tier": 3, "seed": 2468009138, "symmetry": "mirror_xy", "op_count": 7, "ir_hash": "1691fd8887cdef0f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 271000.0, "surface_area": 32300.0, "principal_moments": [181000000.0, 183000000.0, 227000000.0], "n_faces": 62, "n_edges": 166, "n_vertices": 108}, "params": {"block_w": {"type": "float", "default": 69.98, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 69.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 55.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 8.1, "min": 4.0, "max": 12.4, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 13.9, "min": 3.3, "max": 39.3, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 5.7, "min": 2.0, "max": 9.4, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009138 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 69.98, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 69.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 55.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 8.1, \"min\": 4.0, \"max\": 12.4, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 13.9, \"min\": 3.3, \"max\": 39.3, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.0, \"max\": 9.4, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.040535480060278795)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad4b3_1735", "family": "flanged", "tier": 1, "seed": 2468009139, "symmetry": "none", "op_count": 2, "ir_hash": "41cb2ce746eb2623", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19700.0, "surface_area": 9290.0, "principal_moments": [4650000.0, 4650000.0, 8450000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 29.18, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 17.3, "min": 5.2, "max": 43.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 15.2, "min": 2.0, "max": 20.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 64.5, "min": 37.9, "max": 87.5, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.7, "min": 1.4, "max": 6.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 19.3, "min": 12.9, "max": 29.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009139 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 29.18, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 17.3, \"min\": 5.2, \"max\": 43.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 15.2, \"min\": 2.0, \"max\": 20.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 64.5, \"min\": 37.9, \"max\": 87.5, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.7, \"min\": 1.4, \"max\": 6.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 19.3, \"min\": 12.9, \"max\": 29.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad4b4_1736", "family": "plate", "tier": 1, "seed": 2468009140, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "2435a60d5fe44489", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3820.0, "surface_area": 2030.0, "principal_moments": [109000.0, 298000.0, 366000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 30, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 17.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009140 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 17.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad4b5_1737", "family": "flanged", "tier": 2, "seed": 2468009141, "symmetry": "none", "op_count": 2, "ir_hash": "baba8095c8d6e4d9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 360000.0, "surface_area": 54300.0, "principal_moments": [363000000.0, 475000000.0, 475000000.0], "n_faces": 17, "n_edges": 60, "n_vertices": 40}, "params": {"outer_d": {"type": "float", "default": 72.97, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 91.6, "min": 27.5, "max": 229.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 30.2, "min": 2.0, "max": 51.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 121.9, "min": 94.9, "max": 218.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.5, "min": 1.9, "max": 36.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 36.6, "min": 24.4, "max": 54.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009141 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 72.97, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 91.6, \"min\": 27.5, \"max\": 229.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 30.2, \"min\": 2.0, \"max\": 51.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 121.9, \"min\": 94.9, \"max\": 218.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.5, \"min\": 1.9, \"max\": 36.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 36.6, \"min\": 24.4, \"max\": 54.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad4b6_1738", "family": "block", "tier": 1, "seed": 2468009142, "symmetry": "none", "op_count": 2, "ir_hash": "956411bbc2d39b2d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 180000.0, "surface_area": 26900.0, "principal_moments": [80900000.0, 107000000.0, 118000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 56.45, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 48.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 69.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 14.3, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009142 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 56.45, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 48.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 69.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 14.3, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad4b7_1739", "family": "plate", "tier": 0, "seed": 2468009143, "symmetry": "radial", "op_count": 1, "ir_hash": "566cd72316a11a6d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5820.0, "surface_area": 2770.0, "principal_moments": [200000.0, 1230000.0, 1400000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 19.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009143 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 19.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad4b8_1740", "family": "plate", "tier": 1, "seed": 2468009144, "symmetry": "radial", "op_count": 2, "ir_hash": "1f6d3595698376aa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 635.0, "surface_area": 775.0, "principal_moments": [9790.0, 32200.0, 41000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"plate_w": {"type": "float", "default": 23.79, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 12.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 7.1, "min": 4.8, "max": 10.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009144 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 23.79, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 12.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 7.1, \"min\": 4.8, \"max\": 10.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad4b9_1741", "family": "bracket", "tier": 1, "seed": 2468009145, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ca7c1032d1662674", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26100.0, "surface_area": 14500.0, "principal_moments": [11200000.0, 16299999.999999998, 20900000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 57.21, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 56.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 60.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009145 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 57.21, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 56.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 60.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad4bc_1744", "family": "ribbed", "tier": 1, "seed": 2468009148, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "be0644dc83e126ea", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 46000.0, "surface_area": 20300.0, "principal_moments": [19800000.0, 30599999.999999996, 47999999.99999999], "n_faces": 21, "n_edges": 48, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 70.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 15.1, "min": 6.0, "max": 30.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.3, "min": 1.0, "max": 8.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009148 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 70.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 15.1, \"min\": 6.0, \"max\": 30.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.3, \"min\": 1.0, \"max\": 8.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad4be_1746", "family": "block", "tier": 1, "seed": 2468009150, "symmetry": "radial", "op_count": 2, "ir_hash": "8a8ebfc41122969c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 335000.0, "surface_area": 52700.0, "principal_moments": [228000000.0, 362000000.0, 424000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 54.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 21.0, "min": 14.0, "max": 31.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009150 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 54.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 21.0, \"min\": 14.0, \"max\": 31.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad4bf_1747", "family": "block", "tier": 1, "seed": 2468009151, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "c3584a572c20c462", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 466000.0, "surface_area": 44500.0, "principal_moments": [418000000.0, 495000000.0, 699000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 89.86, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 52.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 11.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009151 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 89.86, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 52.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 11.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad4c0_1748", "family": "block", "tier": 2, "seed": 2468009152, "symmetry": "none", "op_count": 3, "ir_hash": "f6b75541d113d06b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5880.0, "surface_area": 3190.0, "principal_moments": [239000.0, 605000.0, 768000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 20.65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 9.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 34.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009152 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20.65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 9.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 34.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.056714391471480524)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad4c1_1749", "family": "flanged", "tier": 1, "seed": 2468009153, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f14edf07d422d7cb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 571000.0, "surface_area": 85100.0, "principal_moments": [921000000.0, 1200000000.0, 1200000000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"outer_d": {"type": "float", "default": 81.58, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 113.3, "min": 34.0, "max": 283.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 37.9, "min": 2.0, "max": 57.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 164.5, "min": 106.1, "max": 244.7, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.7, "min": 2.0, "max": 45.3, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 49.4, "min": 32.9, "max": 74.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009153 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 81.58, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 113.3, \"min\": 34.0, \"max\": 283.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 37.9, \"min\": 2.0, \"max\": 57.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 164.5, \"min\": 106.1, \"max\": 244.7, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.7, \"min\": 2.0, \"max\": 45.3, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 49.4, \"min\": 32.9, \"max\": 74.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad4c2_1750", "family": "gear", "tier": 2, "seed": 2468009154, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d78842dc6fed1f09", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15900.0, "surface_area": 5700.0, "principal_moments": [2220000.0, 2220000.0, 4140000.0], "n_faces": 88, "n_edges": 258, "n_vertices": 172}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 17, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 10.7, "min": 4.3, "max": 26.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": 0.33, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.67, "min": 0.0, "max": 1.25, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 8.3, "min": 2.0, "max": 21.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009154 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 17, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 10.7, \"min\": 4.3, \"max\": 26.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.33, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.67, \"min\": 0.0, \"max\": 1.25, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 8.3, \"min\": 2.0, \"max\": 21.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad4c3_1751", "family": "bracket", "tier": 1, "seed": 2468009155, "symmetry": "none", "op_count": 1, "ir_hash": "61e3789c30f4c94d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45700.0, "surface_area": 18500.0, "principal_moments": [33099999.999999996, 38000000.0, 60399999.99999999], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 65.18, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 76.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 37.33, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009155 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 65.18, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 76.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 37.33, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad4c4_1752", "family": "compound", "tier": 2, "seed": 2468009156, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "1eae09c055f880fc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35400.0, "surface_area": 15200.0, "principal_moments": [19000000.0, 21600000.0, 22100000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_w": {"type": "float", "default": 65, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 66.7, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 6.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 15.7, "min": 6.3, "max": 32.5, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 64.7, "min": 19.4, "max": 194.1, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 7.3, "min": 2.0, "max": 11.3, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009156 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 65, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 66.7, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 15.7, \"min\": 6.3, \"max\": 32.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 64.7, \"min\": 19.4, \"max\": 194.1, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 7.3, \"min\": 2.0, \"max\": 11.3, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad4c5_1753", "family": "plate", "tier": 2, "seed": 2468009157, "symmetry": "none", "op_count": 3, "ir_hash": "7f11eaaccd1c4bb5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6340.0, "surface_area": 2950.0, "principal_moments": [196000.0, 885000.0, 976000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"plate_w": {"type": "float", "default": 40, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 16.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009157 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 16.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(16.0, 6.6, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07254639601790444)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad4c6_1754", "family": "revolved", "tier": 0, "seed": 2468009158, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "dcd7caf952f85edd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2410.0, "surface_area": 1800.0, "principal_moments": [62300.0, 133000.0, 133000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 13.13, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 26.7, "min": 8.0, "max": 80.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009158 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 13.13, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 26.7, \"min\": 8.0, \"max\": 80.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad4c7_1755", "family": "flanged", "tier": 1, "seed": 2468009159, "symmetry": "none", "op_count": 2, "ir_hash": "f5c34feeb5be5f4d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9060.0, "surface_area": 4790.0, "principal_moments": [987000.0, 987000.0, 1220000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 20.0, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 20.8, "min": 6.2, "max": 52.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 6.6, "min": 2.0, "max": 14.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 42.3, "min": 26.0, "max": 60.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.1, "min": 0.9, "max": 8.3, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 12.7, "min": 8.5, "max": 19.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009159 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 20.0, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 20.8, \"min\": 6.2, \"max\": 52.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 6.6, \"min\": 2.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 42.3, \"min\": 26.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.1, \"min\": 0.9, \"max\": 8.3, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 12.7, \"min\": 8.5, \"max\": 19.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad4c8_1756", "family": "compound", "tier": 1, "seed": 2468009160, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "519a5fe8d70ce4bf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 282000.0, "surface_area": 29900.0, "principal_moments": [185000000.0, 216000000.0, 219000000.0], "n_faces": 13, "n_edges": 26, "n_vertices": 17}, "params": {"block_w": {"type": "float", "default": 69.72, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 62.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 63.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 18.4, "min": 7.4, "max": 28.2, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 16.5, "min": 4.6, "max": 55.2, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 7.9, "min": 2.0, "max": 13.2, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009160 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 69.72, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 62.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 63.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 18.4, \"min\": 7.4, \"max\": 28.2, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 16.5, \"min\": 4.6, \"max\": 55.2, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 7.9, \"min\": 2.0, \"max\": 13.2, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad4c9_1757", "family": "revolved", "tier": 0, "seed": 2468009161, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "a187d3f7097ec16d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23500.0, "surface_area": 8860.0, "principal_moments": [2300000.0, 7820000.0, 7820000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 25.51, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 69.1, "min": 20.7, "max": 207.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009161 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25.51, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 69.1, \"min\": 20.7, \"max\": 207.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad4ca_1758", "family": "ribbed", "tier": 2, "seed": 2468009162, "symmetry": "none", "op_count": 2, "ir_hash": "3e994390953763cf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14100.0, "surface_area": 7090.0, "principal_moments": [1740000.0, 3760000.0, 4790000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 50.09, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 26.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 12.0, "min": 4.8, "max": 24.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.2, "min": 1.0, "max": 13.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009162 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 50.09, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 26.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.8, \"max\": 24.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.2, \"min\": 1.0, \"max\": 13.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad4cb_1759", "family": "plate", "tier": 2, "seed": 2468009163, "symmetry": "none", "op_count": 3, "ir_hash": "ccc41ca1b1fe9c9c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9710.0, "surface_area": 4270.0, "principal_moments": [692000.0, 1240000.0, 1770000.0], "n_faces": 26, "n_edges": 72, "n_vertices": 48}, "params": {"plate_w": {"type": "float", "default": 40, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 29.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 6.5, "step": 0.5, "group": "Holes", "label": "Slot width (mm)"}, "hole_slot_len": {"type": "float", "default": 8.7, "min": 9.6, "max": 8.7, "step": 0.5, "group": "Holes", "label": "Slot length (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009163 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 29.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 6.5, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot width (mm)'},\n \"hole_slot_len\": {\"type\": 'float', \"default\": 8.7, \"min\": 9.6, \"max\": 8.7, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot length (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08478709549624136)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad4cc_1760", "family": "block", "tier": 1, "seed": 2468009164, "symmetry": "none", "op_count": 2, "ir_hash": "c15674caec2523d2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 65300.0, "surface_area": 13700.0, "principal_moments": [11799999.999999998, 26199999.999999996, 27299999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 31.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 61.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 7.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009164 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 31.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 61.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 7.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad4cd_1761", "family": "flanged", "tier": 2, "seed": 2468009165, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "f3a168aa127aed24", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 690000.0, "surface_area": 94500.0, "principal_moments": [1530000000.0, 1530000000.0, 1530000000.0], "n_faces": 22, "n_edges": 47, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 90, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 104.4, "min": 31.3, "max": 261.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 42.9, "min": 2.0, "max": 63.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 179.9, "min": 117.0, "max": 270.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.3, "min": 2.8, "max": 41.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 54.0, "min": 36.0, "max": 81.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009165 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 104.4, \"min\": 31.3, \"max\": 261.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 42.9, \"min\": 2.0, \"max\": 63.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 179.9, \"min\": 117.0, \"max\": 270.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.3, \"min\": 2.8, \"max\": 41.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 54.0, \"min\": 36.0, \"max\": 81.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad4cf_1763", "family": "enclosure", "tier": 1, "seed": 2468009167, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "6b0256b0e28101a9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 108000.0, "surface_area": 46500.0, "principal_moments": [107000000.0, 147000000.0, 154000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 85, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 61.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 67.8, "min": 27.1, "max": 135.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009167 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 85, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 61.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 67.8, \"min\": 27.1, \"max\": 135.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad4d0_1764", "family": "gear", "tier": 0, "seed": 2468009168, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8d3efd4894624d2a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4780.0, "surface_area": 2520.0, "principal_moments": [223000.0, 223000.0, 310000.0], "n_faces": 68, "n_edges": 198, "n_vertices": 132}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 11, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 13.1, "min": 5.2, "max": 32.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009168 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 11, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 13.1, \"min\": 5.2, \"max\": 32.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad4d1_1765", "family": "bracket", "tier": 1, "seed": 2468009169, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "3f2d09604707259f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10400.0, "surface_area": 5790.0, "principal_moments": [1690000.0, 10000000.0, 11300000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 54.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 15.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 6.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009169 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 54.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 15.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 6.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.1195111691535159)\n if p[\"chamfered\"]:\n result = result.edges('>Z').chamfer(p[\"chamfer_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad4d3_1767", "family": "compound", "tier": 1, "seed": 2468009171, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "6850f9dbef4d2ee9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 478000.0, "surface_area": 42200.0, "principal_moments": [475000000.0, 478000000.0, 508000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 75.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 80.5, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 45.0, "min": 18.0, "max": 72.0, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 57.2, "min": 22.9, "max": 91.5, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 9.9, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009171 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 75.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 80.5, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 45.0, \"min\": 18.0, \"max\": 72.0, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 57.2, \"min\": 22.9, \"max\": 91.5, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 9.9, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad4d6_1770", "family": "revolved", "tier": 2, "seed": 2468009174, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "777a7765b7f61be2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 168000.0, "surface_area": 30500.0, "principal_moments": [71100000.0, 278000000.0, 278000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 37.87, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 120.0, "min": 36.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 13.3, "min": 2.0, "max": 26.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 79.2, "min": 45.4, "max": 113.6, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 12.9, "min": 3.9, "max": 60.0, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009174 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 37.87, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 120.0, \"min\": 36.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 13.3, \"min\": 2.0, \"max\": 26.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 79.2, \"min\": 45.4, \"max\": 113.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 12.9, \"min\": 3.9, \"max\": 60.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad4d7_1771", "family": "profiled", "tier": 1, "seed": 2468009175, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "f3bed49d6f7c05eb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 146000.0, "surface_area": 19700.0, "principal_moments": [23499999.999999996, 277000000.0, 277000000.0], "n_faces": 7, "n_edges": 15, "n_vertices": 10}, "params": {"circ_r": {"type": "float", "default": 20.42, "min": 10.2, "max": 40.8, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 147.5, "min": 44.2, "max": 442.5, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009175 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 20.42, \"min\": 10.2, \"max\": 40.8, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 147.5, \"min\": 44.2, \"max\": 442.5, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad4d8_1772", "family": "threaded", "tier": 1, "seed": 2468009176, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "1b09b86a4ff66653", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 957.0, "surface_area": 983.0, "principal_moments": [17500.0, 24200.0, 24200.0], "n_faces": 116, "n_edges": 314, "n_vertices": 200}, "params": {"major_d": {"type": "float", "default": 6.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.0, "min": 0.5, "max": 2.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 14.0, "min": 5.6, "max": 28.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009176 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.5, \"max\": 2.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 14.0, \"min\": 5.6, \"max\": 28.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad4d9_1773", "family": "compound", "tier": 1, "seed": 2468009177, "symmetry": "none", "op_count": 2, "ir_hash": "38a738c96a489cb1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15700.0, "surface_area": 4460.0, "principal_moments": [1880000.0, 1880000.0, 2050000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"base_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 20, "min": 12.0, "max": 32.0, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 8.2, "min": 3.3, "max": 20.5, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 21.6, "min": 10.8, "max": 29.6, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 17.6, "min": 5.3, "max": 44.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009177 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 20, \"min\": 12.0, \"max\": 32.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 8.2, \"min\": 3.3, \"max\": 20.5, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 21.6, \"min\": 10.8, \"max\": 29.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 17.6, \"min\": 5.3, \"max\": 44.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad4db_1775", "family": "flanged", "tier": 1, "seed": 2468009179, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "9614dee8d293ac85", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 421000.0, "surface_area": 53900.0, "principal_moments": [460000000.0, 574000000.0, 574000000.0], "n_faces": 17, "n_edges": 60, "n_vertices": 40}, "params": {"outer_d": {"type": "float", "default": 72.82, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 91.2, "min": 27.4, "max": 228.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 22.9, "min": 2.0, "max": 51.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 125.9, "min": 94.7, "max": 218.5, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.7, "min": 2.9, "max": 36.5, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 37.8, "min": 25.2, "max": 56.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009179 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 72.82, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 91.2, \"min\": 27.4, \"max\": 228.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 22.9, \"min\": 2.0, \"max\": 51.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 125.9, \"min\": 94.7, \"max\": 218.5, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.7, \"min\": 2.9, \"max\": 36.5, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 37.8, \"min\": 25.2, \"max\": 56.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad4dc_1776", "family": "bracket", "tier": 2, "seed": 2468009180, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "2ea1a05c324787ed", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13900.0, "surface_area": 8150.0, "principal_moments": [2790000.0, 3600000.0, 3980000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 27.62, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 29.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009180 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 27.62, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 29.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad4dd_1777", "family": "block", "tier": 2, "seed": 2468009181, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "58f178795d34036d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 56500.0, "surface_area": 14000.0, "principal_moments": [12099999.999999998, 22100000.0, 30799999.999999996], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 47.82, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 19.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 65.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009181 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 47.82, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 19.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 65.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.05176079899176297)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad4df_1779", "family": "plate", "tier": 0, "seed": 2468009183, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "465c5fcd0311f773", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14500.0, "surface_area": 8230.0, "principal_moments": [3030000.0, 6390000.0, 9380000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 72.62, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 49.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009183 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 72.62, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 49.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad4e0_1780", "family": "threaded", "tier": 0, "seed": 2468009184, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "90aad1f4ba0172e5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 248.0, "surface_area": 380.0, "principal_moments": [643.0, 5210.0, 5210.0], "n_faces": 200, "n_edges": 510, "n_vertices": 312}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 15.5, "min": 6.2, "max": 31.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009184 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 15.5, \"min\": 6.2, \"max\": 31.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad4e1_1781", "family": "bracket", "tier": 1, "seed": 2468009185, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "6c8c48028edf3716", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9100.0, "surface_area": 7390.0, "principal_moments": [3030000.0, 7850000.0, 10400000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 53.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 18.29, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 7.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009185 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 53.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 18.29, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 7.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad4e2_1782", "family": "revolved", "tier": 1, "seed": 2468009186, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "bd01913572046c8d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 216000.0, "surface_area": 28900.0, "principal_moments": [75900000.0, 304000000.0, 304000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 50.37, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 121.7, "min": 36.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.6, "min": 2.0, "max": 35.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009186 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50.37, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 121.7, \"min\": 36.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.6, \"min\": 2.0, \"max\": 35.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 3.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rarray(20.0, 13.0, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.05105359317626983)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad4e4_1784", "family": "plate", "tier": 2, "seed": 2468009188, "symmetry": "radial", "op_count": 3, "ir_hash": "f87f291f61e59d4c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3520.0, "surface_area": 2490.0, "principal_moments": [182000.0, 424000.0, 597000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 37.49, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 24.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 11.2, "min": 7.5, "max": 16.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009188 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 37.49, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 24.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 11.2, \"min\": 7.5, \"max\": 16.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07127726446814267)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad4e5_1785", "family": "block", "tier": 2, "seed": 2468009189, "symmetry": "none", "op_count": 3, "ir_hash": "c9d4353bdade250a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10900.0, "surface_area": 7190.0, "principal_moments": [707000.0, 2700000.0, 3070000.0], "n_faces": 32, "n_edges": 90, "n_vertices": 56}, "params": {"block_w": {"type": "float", "default": 23.61, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 12.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 42.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.4, "min": 2.0, "max": 3.5, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "boss_d": {"type": "float", "default": 17.9, "min": 8.9, "max": 35.8, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 10.8, "min": 4.3, "max": 27.0, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 12.5, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009189 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 23.61, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 12.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 42.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 3.5, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 17.9, \"min\": 8.9, \"max\": 35.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 10.8, \"min\": 4.3, \"max\": 27.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 12.5, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad4e8_1788", "family": "bracket", "tier": 1, "seed": 2468009192, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "e00c303440b04008", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19800.0, "surface_area": 11400.0, "principal_moments": [6110000.0, 18900000.0, 20900000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 68.03, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 77.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009192 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 68.03, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 77.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.1176271224731858)\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad4ea_1790", "family": "flanged", "tier": 1, "seed": 2468009194, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "ac74f0f9e02b02c2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 663000.0, "surface_area": 82600.0, "principal_moments": [1100000000.0, 1370000000.0, 1370000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 84.13, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 110.6, "min": 33.2, "max": 276.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 32.0, "min": 2.0, "max": 58.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 161.6, "min": 109.4, "max": 252.4, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.2, "min": 2.8, "max": 44.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 48.5, "min": 32.3, "max": 72.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009194 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 84.13, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 110.6, \"min\": 33.2, \"max\": 276.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 32.0, \"min\": 2.0, \"max\": 58.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 161.6, \"min\": 109.4, \"max\": 252.4, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.2, \"min\": 2.8, \"max\": 44.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 48.5, \"min\": 32.3, \"max\": 72.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad4eb_1791", "family": "bracket", "tier": 1, "seed": 2468009195, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "78a7864e6cbd873e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4660.0, "surface_area": 3780.0, "principal_moments": [397000.0, 1540000.0, 1620000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 49.85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 32.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009195 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 49.85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 32.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad4ee_1794", "family": "plate", "tier": 1, "seed": 2468009198, "symmetry": "none", "op_count": 2, "ir_hash": "8b1b8b8c4fafeecb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32200.0, "surface_area": 8500.0, "principal_moments": [3980000.0, 14999999.999999998, 18200000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 73.93, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 36.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 8.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009198 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 73.93, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 36.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 8.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad4ef_1795", "family": "revolved", "tier": 1, "seed": 2468009199, "symmetry": "none", "op_count": 1, "ir_hash": "4f0abdf050f226b4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22900.0, "surface_area": 8530.0, "principal_moments": [2320000.0, 6910000.0, 6910000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 25.96, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 65.0, "min": 19.5, "max": 195.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009199 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25.96, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 65.0, \"min\": 19.5, \"max\": 195.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad4f0_1796", "family": "bracket", "tier": 2, "seed": 2468009200, "symmetry": "none", "op_count": 1, "ir_hash": "06acb77cc6d779b6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34300.0, "surface_area": 24400.0, "principal_moments": [13299999.999999998, 61199999.99999999, 66999999.99999999], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 75.11, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 47.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 58.4, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 75.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 3.0, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009200 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75.11, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 47.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 58.4, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 75.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad4f1_1797", "family": "gear", "tier": 1, "seed": 2468009201, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "7df3c37786382477", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 251.0, "surface_area": 400.0, "principal_moments": [2160.0, 2160.0, 3750.0], "n_faces": 63, "n_edges": 183, "n_vertices": 122}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 10, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 3.7, "min": 1.5, "max": 9.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 3.0, "min": 2.0, "max": 4.5, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009201 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 10, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 3.7, \"min\": 1.5, \"max\": 9.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 4.5, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad4f2_1798", "family": "threaded", "tier": 1, "seed": 2468009202, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "82ebc983453ad2e3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2050.0, "surface_area": 1560.0, "principal_moments": [21600.0, 181000.0, 181000.0], "n_faces": 220, "n_edges": 562, "n_vertices": 344}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 31.7, "min": 12.7, "max": 63.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009202 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 31.7, \"min\": 12.7, \"max\": 63.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad4f3_1799", "family": "ribbed", "tier": 1, "seed": 2468009203, "symmetry": "none", "op_count": 2, "ir_hash": "8671584ae3211361", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12400.0, "surface_area": 7850.0, "principal_moments": [1550000.0, 3170000.0, 4540000.0], "n_faces": 54, "n_edges": 132, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 55.83, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 30.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 5.3, "min": 2.1, "max": 10.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.0, "min": 1.0, "max": 10.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009203 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 55.83, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 30.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.1, \"max\": 10.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.0, \"max\": 10.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad4f4_1800", "family": "compound", "tier": 3, "seed": 2468009204, "symmetry": "none", "op_count": 4, "ir_hash": "10ebb3a364f42b21", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 74500.0, "surface_area": 13600.0, "principal_moments": [17300000.0, 28799999.999999996, 32999999.999999996], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 32.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 41.7, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 13.0, "min": 5.2, "max": 22.7, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 26.8, "min": 3.9, "max": 52.0, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 7.2, "min": 2.0, "max": 9.4, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009204 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 32.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 41.7, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 13.0, \"min\": 5.2, \"max\": 22.7, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 26.8, \"min\": 3.9, \"max\": 52.0, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 7.2, \"min\": 2.0, \"max\": 9.4, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.0457419091669319)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad4f5_1801", "family": "plate", "tier": 1, "seed": 2468009205, "symmetry": "none", "op_count": 2, "ir_hash": "d3804a184db0182c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26300.0, "surface_area": 7480.0, "principal_moments": [4730000.0, 5980000.0, 10100000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"plate_w": {"type": "float", "default": 50.72, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 44.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009205 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50.72, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 44.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 19.0\n _ssy = 19.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad4f6_1802", "family": "compound", "tier": 1, "seed": 2468009206, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "820f2df30ac4bb82", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 279000.0, "surface_area": 41700.0, "principal_moments": [438000000.0, 569000000.0, 594000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"base_w": {"type": "float", "default": 110, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 104.0, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 20.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 21.4, "min": 8.6, "max": 52.0, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 141.3, "min": 42.4, "max": 423.9, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009206 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 110, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 104.0, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 20.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 21.4, \"min\": 8.6, \"max\": 52.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 141.3, \"min\": 42.4, \"max\": 423.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad4f7_1803", "family": "plate", "tier": 1, "seed": 2468009207, "symmetry": "none", "op_count": 2, "ir_hash": "626f04370b35b723", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13400.0, "surface_area": 5090.0, "principal_moments": [1730000.0, 1760000.0, 3270000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"plate_w": {"type": "float", "default": 38.12, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 37.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009207 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 38.12, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 37.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 7.1\n _ssy = 6.6\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad4f8_1804", "family": "bracket", "tier": 2, "seed": 2468009208, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "b5f3fab24eb9bb57", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20000.0, "surface_area": 9510.0, "principal_moments": [4120000.0, 6140000.0, 6750000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 28.95, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 30.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50.99, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.0, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009208 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 28.95, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 30.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50.99, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad4f9_1805", "family": "gear", "tier": 0, "seed": 2468009209, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "33111a0beadf1ce9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 383000.0, "surface_area": 57400.0, "principal_moments": [601000000.0, 601000000.0, 1180000000.0], "n_faces": 158, "n_edges": 468, "n_vertices": 312}, "params": {"module": {"type": "float", "default": 6.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 26, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 20.3, "min": 8.1, "max": 50.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009209 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 6.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 26, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 20.3, \"min\": 8.1, \"max\": 50.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad4fa_1806", "family": "block", "tier": 1, "seed": 2468009210, "symmetry": "radial", "op_count": 2, "ir_hash": "5dd2e4e1d2806ec7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 127000.0, "surface_area": 19300.0, "principal_moments": [42700000.0, 72100000.0, 93799999.99999999], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 31.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 76.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 16.5, "min": 11.0, "max": 24.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009210 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 31.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 76.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 16.5, \"min\": 11.0, \"max\": 24.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad4fb_1807", "family": "block", "tier": 1, "seed": 2468009211, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "25b1c10cb305f3e4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13300.0, "surface_area": 6280.0, "principal_moments": [805000.0, 2100000.0, 2270000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 21.99, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 17.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 40.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 5.2, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009211 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 21.99, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 17.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 40.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 5.2, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad4fc_1808", "family": "revolved", "tier": 1, "seed": 2468009212, "symmetry": "none", "op_count": 2, "ir_hash": "e0401f1ebbb20749", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7000.0, "surface_area": 3310.0, "principal_moments": [491000.0, 576000.0, 576000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 15.69, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 31.1, "min": 9.3, "max": 93.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 26.0, "min": 18.8, "max": 47.1, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.1, "min": 2.7, "max": 15.6, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.3, "min": 0.1, "max": 3.9, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009212 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 15.69, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 31.1, \"min\": 9.3, \"max\": 93.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 26.0, \"min\": 18.8, \"max\": 47.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.1, \"min\": 2.7, \"max\": 15.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.3, \"min\": 0.1, \"max\": 3.9, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad500_1812", "family": "block", "tier": 2, "seed": 2468009216, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "9592e65dc83e4e9a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11200.0, "surface_area": 4080.0, "principal_moments": [937000.0, 990000.0, 1480000.0], "n_faces": 18, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 31.0, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 15.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 19.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.8, "min": 2.0, "max": 1.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "boss_d": {"type": "float", "default": 14.9, "min": 7.5, "max": 29.8, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 11.9, "min": 4.8, "max": 29.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009216 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 31.0, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 15.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 19.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.8, \"min\": 2.0, \"max\": 1.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"boss_d\": {\"type\": 'float', \"default\": 14.9, \"min\": 7.5, \"max\": 29.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 11.9, \"min\": 4.8, \"max\": 29.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 7.8\n _ssy = 7.1\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad501_1813", "family": "revolved", "tier": 2, "seed": 2468009217, "symmetry": "radial", "op_count": 1, "ir_hash": "5402573db5c7c455", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 607.0, "surface_area": 1100.0, "principal_moments": [17800.0, 17800.0, 34500.0], "n_faces": 10, "n_edges": 15, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 12.68, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 3.4, "min": 1.0, "max": 10.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 8.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 23.9, "min": 15.2, "max": 38.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 0.9, "min": 0.3, "max": 1.7, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "groove_depth": {"type": "float", "default": 0.42, "min": 0.17, "max": 1.26, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 0.18, "min": 0.07, "max": 0.54, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 2.3, "min": 0.5, "max": 2.9, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009217 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 12.68, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 3.4, \"min\": 1.0, \"max\": 10.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 8.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 23.9, \"min\": 15.2, \"max\": 38.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.3, \"max\": 1.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 0.42, \"min\": 0.17, \"max\": 1.26, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 0.18, \"min\": 0.07, \"max\": 0.54, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 2.3, \"min\": 0.5, \"max\": 2.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad502_1814", "family": "block", "tier": 1, "seed": 2468009218, "symmetry": "radial", "op_count": 2, "ir_hash": "5c37477f88b6173c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 225000.0, "surface_area": 27900.0, "principal_moments": [108000000.0, 177000000.0, 207000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 60.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 45.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 25.5, "min": 17.0, "max": 38.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009218 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 60.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 45.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 25.5, \"min\": 17.0, \"max\": 38.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad504_1816", "family": "ribbed", "tier": 1, "seed": 2468009220, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "17e199e383040824", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33100.0, "surface_area": 16600.0, "principal_moments": [7850000.0, 11999999.999999998, 16800000.0], "n_faces": 46, "n_edges": 112, "n_vertices": 68}, "params": {"base_w": {"type": "float", "default": 62.38, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 43.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 18.3, "min": 7.3, "max": 36.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.9, "min": 1.0, "max": 12.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009220 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 62.38, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 43.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 18.3, \"min\": 7.3, \"max\": 36.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.9, \"min\": 1.0, \"max\": 12.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad505_1817", "family": "block", "tier": 1, "seed": 2468009221, "symmetry": "none", "op_count": 2, "ir_hash": "84bd6646627e182d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 469000.0, "surface_area": 43400.0, "principal_moments": [454000000.0, 472000000.0, 720000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 95, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 51.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 97.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 11.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009221 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 95, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 51.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 97.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 11.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad507_1819", "family": "threaded", "tier": 1, "seed": 2468009223, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "3955db8d64adca9a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5640.0, "surface_area": 3490.0, "principal_moments": [85800.0, 1720000.0, 1720000.0], "n_faces": 350, "n_edges": 900, "n_vertices": 552}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 60.0, "min": 24.0, "max": 120.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009223 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 60.0, \"min\": 24.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad508_1820", "family": "block", "tier": 2, "seed": 2468009224, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "3db26a3e1152395b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 123000.0, "surface_area": 21100.0, "principal_moments": [43100000.0, 56799999.99999999, 68300000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 40.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 50.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 9.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 20.9, "min": 10.4, "max": 41.8, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 4.3, "min": 1.7, "max": 10.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009224 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 40.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 50.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 9.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 20.9, \"min\": 10.4, \"max\": 41.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 4.3, \"min\": 1.7, \"max\": 10.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad509_1821", "family": "plate", "tier": 0, "seed": 2468009225, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "30428bfe7c12ab70", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7380.0, "surface_area": 3800.0, "principal_moments": [388000.0, 2230000.0, 2590000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 24.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009225 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 24.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad50c_1824", "family": "plate", "tier": 1, "seed": 2468009228, "symmetry": "none", "op_count": 2, "ir_hash": "5979776e7c1428c7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22900.0, "surface_area": 11500.0, "principal_moments": [6250000.0, 12999999.999999998, 19200000.0], "n_faces": 30, "n_edges": 84, "n_vertices": 56}, "params": {"plate_w": {"type": "float", "default": 83.43, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 59.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 7.7, "min": 2.0, "max": 9.2, "step": 0.1, "group": "Holes", "label": "Square hole size (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009228 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 83.43, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 59.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 7.7, \"min\": 2.0, \"max\": 9.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(33.4, 47.4, p[\"hole_nx\"], p[\"hole_ny\"])\n .rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad50d_1825", "family": "ribbed", "tier": 3, "seed": 2468009229, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "f53fb3236a3c7ec8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11900.0, "surface_area": 10000.0, "principal_moments": [2080000.0, 2840000.0, 4370000.0], "n_faces": 42, "n_edges": 120, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 52.52, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 46.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 13.4, "min": 5.4, "max": 26.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.7, "min": 1.0, "max": 6.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 10.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009229 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 52.52, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 46.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 13.4, \"min\": 5.4, \"max\": 26.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.7, \"min\": 1.0, \"max\": 6.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 10.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad50e_1826", "family": "bracket", "tier": 2, "seed": 2468009230, "symmetry": "none", "op_count": 1, "ir_hash": "21c46f70294aa0b1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19100.0, "surface_area": 9830.0, "principal_moments": [7790000.0, 16399999.999999998, 22899999.999999996], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 70.94, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 61.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.3, "min": 2.5, "max": 10.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009230 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70.94, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 61.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.5, \"max\": 10.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad50f_1827", "family": "bracket", "tier": 1, "seed": 2468009231, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ecfcdc3f087deebe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16900.0, "surface_area": 9960.0, "principal_moments": [4870000.0, 15699999.999999998, 18000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 76.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009231 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 76.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad513_1831", "family": "block", "tier": 2, "seed": 2468009235, "symmetry": "none", "op_count": 3, "ir_hash": "9e083fc23e225317", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13600.0, "surface_area": 7060.0, "principal_moments": [1480000.0, 1620000.0, 2590000.0], "n_faces": 27, "n_edges": 72, "n_vertices": 48}, "params": {"block_w": {"type": "float", "default": 32.69, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 14.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 35.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 4.4, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "pocket_w": {"type": "float", "default": 16.3, "min": 8.2, "max": 26.2, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 6.3, "min": 3.1, "max": 11.9, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 15.3, "min": 6.1, "max": 30.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009235 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 32.69, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 14.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 35.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 4.4, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 16.3, \"min\": 8.2, \"max\": 26.2, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 6.3, \"min\": 3.1, \"max\": 11.9, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 15.3, \"min\": 6.1, \"max\": 30.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad514_1832", "family": "compound", "tier": 3, "seed": 2468009236, "symmetry": "none", "op_count": 4, "ir_hash": "e2f2e4e6897a23e2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 52800.0, "surface_area": 8850.0, "principal_moments": [7930000.0, 20800000.0, 20800000.0], "n_faces": 13, "n_edges": 26, "n_vertices": 17}, "params": {"shaft_d": {"type": "float", "default": 38.26, "min": 19.1, "max": 68.9, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 33.5, "min": 13.4, "max": 67.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 23.6, "min": 11.8, "max": 34.4, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 27.3, "min": 8.2, "max": 68.2, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "head_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Head", "label": "Drive head sides"}, "head_r": {"type": "float", "default": 9.4, "min": 5.6, "max": 11.3, "step": 1.0, "group": "Head", "label": "Drive head circumradius (mm)"}, "head_len": {"type": "float", "default": 10.6, "min": 3.2, "max": 21.2, "step": 1.0, "group": "Head", "label": "Drive head length (mm)"}, "chamfer_d": {"type": "float", "default": 1.3, "min": 0.5, "max": 3.0, "step": 0.5, "group": "Body", "label": "Chamfer distance (mm)"}, "chamfered": {"type": "bool", "default": true, "group": "Body", "label": "Chamfer edges"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009236 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 38.26, \"min\": 19.1, \"max\": 68.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 33.5, \"min\": 13.4, \"max\": 67.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 23.6, \"min\": 11.8, \"max\": 34.4, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 27.3, \"min\": 8.2, \"max\": 68.2, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"head_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Head', \"label\": 'Drive head sides'},\n \"head_r\": {\"type\": 'float', \"default\": 9.4, \"min\": 5.6, \"max\": 11.3, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head circumradius (mm)'},\n \"head_len\": {\"type\": 'float', \"default\": 10.6, \"min\": 3.2, \"max\": 21.2, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head length (mm)'},\n \"chamfer_d\": {\"type\": 'float', \"default\": 1.3, \"min\": 0.5, \"max\": 3.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Chamfer distance (mm)'},\n \"chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Chamfer edges'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"head_sides\"], p[\"head_r\"] * 2).extrude(p[\"head_len\"])\n )\n if p[\"chamfered\"]:\n result = result.edges('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad516_1834", "family": "enclosure", "tier": 1, "seed": 2468009238, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "6037a9269f3ebb25", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 89500.0, "surface_area": 82300.0, "principal_moments": [165000000.0, 215000000.0, 266000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 115, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 90.9, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 77.2, "min": 30.9, "max": 154.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009238 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 115, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 90.9, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 77.2, \"min\": 30.9, \"max\": 154.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad517_1835", "family": "block", "tier": 1, "seed": 2468009239, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "22d4762dd6286869", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 236000.0, "surface_area": 34100.0, "principal_moments": [101000000.0, 238000000.0, 257000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 44.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009239 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 44.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 13.8\n _ssy = 11.1\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad518_1836", "family": "revolved", "tier": 1, "seed": 2468009240, "symmetry": "none", "op_count": 2, "ir_hash": "2913dc9d17bea5c6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 936000.0, "surface_area": 95900.0, "principal_moments": [1410000000.0, 2700000000.0, 2700000000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 70, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 204.6, "min": 61.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 122.7, "min": 84.0, "max": 210.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 51.5, "min": 15.4, "max": 102.3, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 1.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009240 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 70, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 204.6, \"min\": 61.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 122.7, \"min\": 84.0, \"max\": 210.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 51.5, \"min\": 15.4, \"max\": 102.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 1.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07412527962118294)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad51b_1839", "family": "ribbed", "tier": 1, "seed": 2468009243, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "63899dbb3e774cce", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31500.0, "surface_area": 17800.0, "principal_moments": [10900000.0, 22100000.0, 32199999.999999996], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 90, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 58.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 9.2, "min": 3.7, "max": 18.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.9, "min": 1.0, "max": 9.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009243 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 58.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 9.2, \"min\": 3.7, \"max\": 18.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.9, \"min\": 1.0, \"max\": 9.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad51c_1840", "family": "block", "tier": 1, "seed": 2468009244, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "fe2ee68a2740ce40", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 415000.0, "surface_area": 43000.0, "principal_moments": [313000000.0, 445000000.0, 559000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 79.07, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 54.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 12.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009244 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 79.07, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 54.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 12.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad51d_1841", "family": "plate", "tier": 0, "seed": 2468009245, "symmetry": "radial", "op_count": 1, "ir_hash": "07b1e02f75d2ae87", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8310.0, "surface_area": 2820.0, "principal_moments": [601000.0, 692000.0, 1150000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 30, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 27.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009245 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 27.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad51e_1842", "family": "revolved", "tier": 2, "seed": 2468009246, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "f39f4903b732950d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9870.0, "surface_area": 4240.0, "principal_moments": [508000.0, 2440000.0, 2440000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 15, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 48.5, "min": 14.5, "max": 145.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 5.6, "min": 2.0, "max": 10.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 25.3, "min": 18.0, "max": 45.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.0, "min": 2.4, "max": 24.2, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.2, "min": 0.1, "max": 3.6, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009246 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 15, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 48.5, \"min\": 14.5, \"max\": 145.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 5.6, \"min\": 2.0, \"max\": 10.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 25.3, \"min\": 18.0, \"max\": 45.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.4, \"max\": 24.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.2, \"min\": 0.1, \"max\": 3.6, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad522_1846", "family": "block", "tier": 2, "seed": 2468009250, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "48dbc97accad35b1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2250.0, "surface_area": 1720.0, "principal_moments": [49100.0, 108000.0, 139000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 15.0, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 7.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 23.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.8, "min": 2.0, "max": 1.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009250 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 15.0, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 7.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 23.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.8, \"min\": 2.0, \"max\": 1.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.04814211678865435)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad523_1847", "family": "plate", "tier": 0, "seed": 2468009251, "symmetry": "none", "op_count": 1, "ir_hash": "273270ccb2ed9ae4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8960.0, "surface_area": 4470.0, "principal_moments": [745000.0, 2480000.0, 3190000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 57.41, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 31.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009251 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 57.41, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 31.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad524_1848", "family": "threaded", "tier": 1, "seed": 2468009252, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "6178ca991d1aa155", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 264.0, "surface_area": 403.0, "principal_moments": [685.0, 6250.0, 6250.0], "n_faces": 210, "n_edges": 536, "n_vertices": 328}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 16.5, "min": 6.6, "max": 33.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009252 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 16.5, \"min\": 6.6, \"max\": 33.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad525_1849", "family": "revolved", "tier": 0, "seed": 2468009253, "symmetry": "none", "op_count": 1, "ir_hash": "2a3fc86680105e00", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9010.0, "surface_area": 3810.0, "principal_moments": [813000.0, 813000.0, 881000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 25.53, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 26.4, "min": 7.9, "max": 79.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009253 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25.53, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 26.4, \"min\": 7.9, \"max\": 79.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad526_1850", "family": "compound", "tier": 3, "seed": 2468009254, "symmetry": "mirror_xy", "op_count": 7, "ir_hash": "165c817e830a845b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 262000.0, "surface_area": 32400.0, "principal_moments": [172000000.0, 183000000.0, 205000000.0], "n_faces": 28, "n_edges": 66, "n_vertices": 42}, "params": {"block_w": {"type": "float", "default": 70, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 58.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 66.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 13.7, "min": 5.5, "max": 26.1, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 9.3, "min": 3.4, "max": 41.1, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 7.8, "min": 2.0, "max": 9.9, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009254 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 58.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 66.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 13.7, \"min\": 5.5, \"max\": 26.1, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 9.3, \"min\": 3.4, \"max\": 41.1, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 7.8, \"min\": 2.0, \"max\": 9.9, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.06586806647154186)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad527_1851", "family": "compound", "tier": 2, "seed": 2468009255, "symmetry": "none", "op_count": 3, "ir_hash": "006983fde5b69dd2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 205000.0, "surface_area": 25900.0, "principal_moments": [117000000.0, 121000000.0, 148000000.0], "n_faces": 16, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 61.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 51.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 9.2, "min": 4.6, "max": 18.0, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 36.8, "min": 5.1, "max": 68.0, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 10.1, "min": 2.0, "max": 12.2, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009255 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 61.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 51.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 9.2, \"min\": 4.6, \"max\": 18.0, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 36.8, \"min\": 5.1, \"max\": 68.0, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 10.1, \"min\": 2.0, \"max\": 12.2, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"spig_sides\"], p[\"spig_r\"] * 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad528_1852", "family": "revolved", "tier": 2, "seed": 2468009256, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "e129a818417fd1de", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34500.0, "surface_area": 12500.0, "principal_moments": [3490000.0, 21400000.0, 21400000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 25.97, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 97.8, "min": 29.3, "max": 293.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009256 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25.97, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 97.8, \"min\": 29.3, \"max\": 293.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad529_1853", "family": "flanged", "tier": 1, "seed": 2468009257, "symmetry": "none", "op_count": 2, "ir_hash": "9e5dc3fac19651f9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 828000.0, "surface_area": 103000.0, "principal_moments": [1990000000.0, 2250000000.0, 2250000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 82.87, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 122.8, "min": 36.8, "max": 307.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 33.6, "min": 2.0, "max": 58.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 186.5, "min": 107.7, "max": 248.6, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 12.6, "min": 3.8, "max": 49.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 55.9, "min": 37.3, "max": 83.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009257 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 82.87, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 122.8, \"min\": 36.8, \"max\": 307.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 33.6, \"min\": 2.0, \"max\": 58.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 186.5, \"min\": 107.7, \"max\": 248.6, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 12.6, \"min\": 3.8, \"max\": 49.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 55.9, \"min\": 37.3, \"max\": 83.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad52a_1854", "family": "profiled", "tier": 1, "seed": 2468009258, "symmetry": "none", "op_count": 1, "ir_hash": "a1293c1f809d271f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 149000.0, "surface_area": 28300.0, "principal_moments": [36600000.0, 269000000.0, 269000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 40.63, "min": 20.3, "max": 81.3, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 142.3, "min": 42.7, "max": 426.9, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.9, "min": 2.0, "max": 32.5, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009258 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40.63, \"min\": 20.3, \"max\": 81.3, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 142.3, \"min\": 42.7, \"max\": 426.9, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.9, \"min\": 2.0, \"max\": 32.5, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad52c_1856", "family": "bracket", "tier": 1, "seed": 2468009260, "symmetry": "none", "op_count": 1, "ir_hash": "85c7ff38322c9a83", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30400.0, "surface_area": 16800.0, "principal_moments": [14099999.999999998, 27399999.999999996, 30499999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 65.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 58.27, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009260 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 65.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 58.27, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad52e_1858", "family": "bracket", "tier": 3, "seed": 2468009262, "symmetry": "none", "op_count": 1, "ir_hash": "e67b93e2d61a8bde", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18500.0, "surface_area": 13400.0, "principal_moments": [4670000.0, 20000000.0, 20100000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 58.84, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 61.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 39.23, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 38.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 4.4, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009262 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 58.84, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 61.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 39.23, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 38.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.4, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad52f_1859", "family": "revolved", "tier": 0, "seed": 2468009263, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "51034d98bda88786", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 63300.0, "surface_area": 17000.0, "principal_moments": [12099999.999999998, 39700000.0, 39700000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 35.74, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 94.6, "min": 28.4, "max": 283.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009263 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35.74, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 94.6, \"min\": 28.4, \"max\": 283.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad530_1860", "family": "compound", "tier": 1, "seed": 2468009264, "symmetry": "none", "op_count": 3, "ir_hash": "8862433082408b2f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 193000.0, "surface_area": 31600.0, "principal_moments": [183000000.0, 280000000.0, 294000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"base_w": {"type": "float", "default": 90, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 83.4, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 20.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 23.6, "min": 9.4, "max": 41.7, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 107.7, "min": 32.3, "max": 323.1, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009264 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 90, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 83.4, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 20.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 23.6, \"min\": 9.4, \"max\": 41.7, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 107.7, \"min\": 32.3, \"max\": 323.1, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad531_1861", "family": "compound", "tier": 1, "seed": 2468009265, "symmetry": "none", "op_count": 2, "ir_hash": "d88bfab4ed04a2e5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31400.0, "surface_area": 6880.0, "principal_moments": [4660000.0, 5450000.0, 6530000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 31.35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 37.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 26.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 9.8, "min": 3.9, "max": 18.4, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 12.2, "min": 2.9, "max": 39.2, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 4.0, "min": 2.0, "max": 7.1, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009265 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 31.35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 37.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 26.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 9.8, \"min\": 3.9, \"max\": 18.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 12.2, \"min\": 2.9, \"max\": 39.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 7.1, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad535_1865", "family": "bracket", "tier": 1, "seed": 2468009269, "symmetry": "none", "op_count": 1, "ir_hash": "8bc3aa906cda0e09", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61500.0, "surface_area": 19600.0, "principal_moments": [29999999.999999996, 83300000.0, 96699999.99999999], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 60.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009269 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 60.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad536_1866", "family": "block", "tier": 1, "seed": 2468009270, "symmetry": "none", "op_count": 2, "ir_hash": "ad037708315387da", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16500.0, "surface_area": 6170.0, "principal_moments": [1690000.0, 1960000.0, 2920000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 16.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 31.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 4.9, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009270 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 16.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 31.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 4.9, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad537_1867", "family": "compound", "tier": 2, "seed": 2468009271, "symmetry": "none", "op_count": 2, "ir_hash": "20a49fd06f26b51a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31500.0, "surface_area": 6540.0, "principal_moments": [2690000.0, 12899999.999999998, 12899999.999999998], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 28.06, "min": 14.0, "max": 50.5, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 42.1, "min": 16.8, "max": 84.2, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 13.6, "min": 6.8, "max": 25.3, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 37.3, "min": 11.2, "max": 93.2, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009271 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 28.06, \"min\": 14.0, \"max\": 50.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 42.1, \"min\": 16.8, \"max\": 84.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 13.6, \"min\": 6.8, \"max\": 25.3, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 37.3, \"min\": 11.2, \"max\": 93.2, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad538_1868", "family": "gear", "tier": 2, "seed": 2468009272, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "cfa57040a7a2f4ea", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5090.0, "surface_area": 2850.0, "principal_moments": [285000.0, 285000.0, 493000.0], "n_faces": 115, "n_edges": 339, "n_vertices": 226}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 14, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 9.5, "min": 3.8, "max": 23.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": -0.26, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.49, "min": 0.0, "max": 1.0, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 4.0, "min": 2.0, "max": 13.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009272 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 14, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 9.5, \"min\": 3.8, \"max\": 23.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.26, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.49, \"min\": 0.0, \"max\": 1.0, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 13.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad539_1869", "family": "plate", "tier": 2, "seed": 2468009273, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "d3e5f9ed56802385", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41200.0, "surface_area": 13500.0, "principal_moments": [7110000.0, 46699999.99999999, 53399999.99999999], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 117.11, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 45.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 10.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009273 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 117.11, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 45.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 10.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.04227402954920802)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad53a_1870", "family": "block", "tier": 2, "seed": 2468009274, "symmetry": "none", "op_count": 3, "ir_hash": "2f0e28aa898ab32c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 274000.0, "surface_area": 33400.0, "principal_moments": [158000000.0, 260000000.0, 355000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 37.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 8.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 9.8, "min": 4.9, "max": 19.6, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 4.5, "min": 1.8, "max": 11.2, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009274 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 37.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 8.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 9.8, \"min\": 4.9, \"max\": 19.6, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.8, \"max\": 11.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad53b_1871", "family": "bracket", "tier": 2, "seed": 2468009275, "symmetry": "none", "op_count": 1, "ir_hash": "4aedc63edb9334da", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38000.0, "surface_area": 14300.0, "principal_moments": [11699999.999999998, 28799999.999999996, 28899999.999999996], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 67.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 9.0, "min": 3.0, "max": 18.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009275 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 67.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 9.0, \"min\": 3.0, \"max\": 18.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad53c_1872", "family": "gear", "tier": 1, "seed": 2468009276, "symmetry": "none", "op_count": 1, "ir_hash": "c992a3af9dafd647", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 677.0, "surface_area": 744.0, "principal_moments": [10400.0, 10400.0, 18000.0], "n_faces": 69, "n_edges": 201, "n_vertices": 134}, "params": {"module": {"type": "float", "default": 1.25, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 11, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 3.0, "min": 2.0, "max": 6.4, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009276 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.25, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 11, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 6.4, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad53d_1873", "family": "plate", "tier": 1, "seed": 2468009277, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "a71a1a5dccf49027", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26800.0, "surface_area": 7230.0, "principal_moments": [4830000.0, 5910000.0, 10100000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 50.21, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 45.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 10.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009277 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50.21, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 45.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 10.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad53e_1874", "family": "block", "tier": 2, "seed": 2468009278, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "67e849eff0c39238", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 298000.0, "surface_area": 49100.0, "principal_moments": [294000000.0, 320000000.0, 523000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 97.71, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 39.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 8.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 62.5, "min": 31.2, "max": 78.2, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 22.5, "min": 11.2, "max": 31.4, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 59.2, "min": 23.7, "max": 85.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009278 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 97.71, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 39.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 8.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 62.5, \"min\": 31.2, \"max\": 78.2, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 22.5, \"min\": 11.2, \"max\": 31.4, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 59.2, \"min\": 23.7, \"max\": 85.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad53f_1875", "family": "revolved", "tier": 1, "seed": 2468009279, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "ad592e083662f661", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1040000.0, "surface_area": 91900.0, "principal_moments": [1680000000.0, 4320000000.0, 4320000000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 60.23, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 207.0, "min": 62.1, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 23.8, "min": 2.0, "max": 42.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 131.7, "min": 72.3, "max": 180.7, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 50.1, "min": 15.0, "max": 103.5, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.7, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009279 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60.23, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 207.0, \"min\": 62.1, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 23.8, \"min\": 2.0, \"max\": 42.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 131.7, \"min\": 72.3, \"max\": 180.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 50.1, \"min\": 15.0, \"max\": 103.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.7, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad541_1877", "family": "plate", "tier": 0, "seed": 2468009281, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "eec2802554596667", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1760.0, "surface_area": 1030.0, "principal_moments": [25300.0, 96700.0, 111000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 25, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 11.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009281 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 11.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad542_1878", "family": "revolved", "tier": 1, "seed": 2468009282, "symmetry": "none", "op_count": 2, "ir_hash": "fb3ef0a4a0017161", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31200.0, "surface_area": 8560.0, "principal_moments": [6560000.0, 6560000.0, 6710000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 37.88, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 41.7, "min": 12.5, "max": 125.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009282 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 37.88, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 41.7, \"min\": 12.5, \"max\": 125.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 3.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad544_1880", "family": "compound", "tier": 2, "seed": 2468009284, "symmetry": "mirror_xy", "op_count": 5, "ir_hash": "1be1560361885055", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 43600.0, "surface_area": 9760.0, "principal_moments": [8370000.0, 9660000.0, 13899999.999999998], "n_faces": 20, "n_edges": 47, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 41.81, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 45.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 23.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 5.1, "min": 2.0, "max": 10.7, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 5.5, "min": 1.3, "max": 15.3, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 2.3, "min": 2.0, "max": 3.7, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009284 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 41.81, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 45.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 23.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 5.1, \"min\": 2.0, \"max\": 10.7, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 5.5, \"min\": 1.3, \"max\": 15.3, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 2.3, \"min\": 2.0, \"max\": 3.7, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad545_1881", "family": "compound", "tier": 1, "seed": 2468009285, "symmetry": "none", "op_count": 2, "ir_hash": "907a92b4ebae2468", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 54000.0, "surface_area": 12900.0, "principal_moments": [11599999.999999998, 26999999.999999996, 26999999.999999996], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 24.61, "min": 14.8, "max": 39.4, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 27.1, "min": 10.8, "max": 67.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 20.9, "min": 10.4, "max": 34.1, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 51.6, "min": 15.5, "max": 129.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 10.1, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009285 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 24.61, \"min\": 14.8, \"max\": 39.4, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 27.1, \"min\": 10.8, \"max\": 67.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 20.9, \"min\": 10.4, \"max\": 34.1, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 51.6, \"min\": 15.5, \"max\": 129.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 10.1, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad546_1882", "family": "block", "tier": 2, "seed": 2468009286, "symmetry": "none", "op_count": 3, "ir_hash": "5d7e8b683fbb7629", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 167000.0, "surface_area": 25400.0, "principal_moments": [80900000.0, 85000000.0, 121000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 67.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 40.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 13.0, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009286 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 67.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 40.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 13.0, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.09707261891619055)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad547_1883", "family": "flanged", "tier": 2, "seed": 2468009287, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "5a4e330b88741e6f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 211000.0, "surface_area": 41100.0, "principal_moments": [198000000.0, 198000000.0, 334000000.0], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 77.35, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 39.6, "min": 11.9, "max": 99.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 37.7, "min": 2.0, "max": 54.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 131.3, "min": 100.6, "max": 232.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.0, "min": 2.4, "max": 15.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 39.4, "min": 26.3, "max": 59.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009287 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 77.35, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 39.6, \"min\": 11.9, \"max\": 99.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 37.7, \"min\": 2.0, \"max\": 54.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 131.3, \"min\": 100.6, \"max\": 232.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.4, \"max\": 15.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 39.4, \"min\": 26.3, \"max\": 59.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad548_1884", "family": "enclosure", "tier": 1, "seed": 2468009288, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "369f5766600b11c7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 65900.0, "surface_area": 24900.0, "principal_moments": [32999999.999999996, 49699999.99999999, 57899999.99999999], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 70, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 49.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 43.9, "min": 17.6, "max": 87.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009288 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 70, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 49.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 43.9, \"min\": 17.6, \"max\": 87.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad549_1885", "family": "gear", "tier": 1, "seed": 2468009289, "symmetry": "none", "op_count": 1, "ir_hash": "0ed248a733319ae3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34600.0, "surface_area": 12800.0, "principal_moments": [12899999.999999998, 12899999.999999998, 25399999.999999996], "n_faces": 231, "n_edges": 687, "n_vertices": 458}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 38, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 7.8, "min": 3.1, "max": 19.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 9.3, "min": 2.0, "max": 42.6, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009289 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 38, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 7.8, \"min\": 3.1, \"max\": 19.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 9.3, \"min\": 2.0, \"max\": 42.6, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad54a_1886", "family": "revolved", "tier": 2, "seed": 2468009290, "symmetry": "radial", "op_count": 1, "ir_hash": "b4a5aff759264c20", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 192000.0, "surface_area": 31400.0, "principal_moments": [137000000.0, 137000000.0, 144000000.0], "n_faces": 7, "n_edges": 10, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 71.27, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 74.4, "min": 22.3, "max": 223.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "groove_depth": {"type": "float", "default": 4.09, "min": 1.64, "max": 12.27, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 6.99, "min": 2.8, "max": 20.97, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 27.5, "min": 11.2, "max": 63.2, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009290 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 71.27, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 74.4, \"min\": 22.3, \"max\": 223.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 4.09, \"min\": 1.64, \"max\": 12.27, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 6.99, \"min\": 2.8, \"max\": 20.97, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 27.5, \"min\": 11.2, \"max\": 63.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad54b_1887", "family": "plate", "tier": 1, "seed": 2468009291, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "f340c72ee74cb516", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1970.0, "surface_area": 2400.0, "principal_moments": [145000.0, 205000.0, 349000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 36.46, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 30.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 6.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009291 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 36.46, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 30.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 6.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad54d_1889", "family": "plate", "tier": 1, "seed": 2468009293, "symmetry": "none", "op_count": 2, "ir_hash": "af3c6ca2f26d106b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7920.0, "surface_area": 4960.0, "principal_moments": [1020000.0, 1770000.0, 2780000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 52.25, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 39.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 8.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009293 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 52.25, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 39.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 8.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad54e_1890", "family": "block", "tier": 1, "seed": 2468009294, "symmetry": "none", "op_count": 2, "ir_hash": "7652b780b71770d6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34000.0, "surface_area": 9240.0, "principal_moments": [6010000.0, 6240000.0, 6830000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 30.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 34.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.9, "min": 2.0, "max": 3.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009294 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 30.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 34.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.9, \"min\": 2.0, \"max\": 3.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 6.6\n _ssy = 7.6\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad54f_1891", "family": "plate", "tier": 2, "seed": 2468009295, "symmetry": "none", "op_count": 3, "ir_hash": "cf67174e06a78497", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37100.0, "surface_area": 15300.0, "principal_moments": [11799999.999999998, 33399999.999999996, 45000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 106.54, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 63.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 13.0, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009295 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 106.54, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 63.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 13.0, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.0887345671596789)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad550_1892", "family": "ribbed", "tier": 1, "seed": 2468009296, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "d574a689bb395a44", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37100.0, "surface_area": 12400.0, "principal_moments": [8060000.0, 21400000.0, 25199999.999999996], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 70, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 37.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 18.9, "min": 7.6, "max": 37.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.1, "min": 1.0, "max": 12.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009296 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 37.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 18.9, \"min\": 7.6, \"max\": 37.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.1, \"min\": 1.0, \"max\": 12.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad551_1893", "family": "bracket", "tier": 1, "seed": 2468009297, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "9c9c51e476050ab3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25100.0, "surface_area": 18000.0, "principal_moments": [12699999.999999998, 25599999.999999996, 27999999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 72.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 70.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 60.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009297 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 72.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 70.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 60.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad553_1895", "family": "plate", "tier": 0, "seed": 2468009299, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "b38c0ab8526e31d4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23400.0, "surface_area": 7630.0, "principal_moments": [3460000.0, 9800000.0, 12999999.999999998], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 70.51, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 41.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009299 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 70.51, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 41.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad554_1896", "family": "gear", "tier": 3, "seed": 2468009300, "symmetry": "none", "op_count": 1, "ir_hash": "6261fe2fa1652fd9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 67200.0, "surface_area": 17000.0, "principal_moments": [20300000.0, 20300000.0, 26299999.999999996], "n_faces": 85, "n_edges": 246, "n_vertices": 164}, "params": {"module": {"type": "float", "default": 5.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 10, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 29.2, "min": 11.7, "max": 73.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 22.9, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.01, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.78, "min": 0.0, "max": 2.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 9.1, "min": 2.0, "max": 22.5, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}, "hub_d": {"type": "float", "default": 16.4, "min": 12.7, "max": 25.0, "step": 1.0, "group": "Hub", "label": "Hub diameter (mm)"}, "hub_h": {"type": "float", "default": 24.5, "min": 7.3, "max": 49.0, "step": 0.5, "group": "Hub", "label": "Hub height (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009300 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 5.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 10, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 29.2, \"min\": 11.7, \"max\": 73.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 22.9, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.01, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.78, \"min\": 0.0, \"max\": 2.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 9.1, \"min\": 2.0, \"max\": 22.5, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n \"hub_d\": {\"type\": 'float', \"default\": 16.4, \"min\": 12.7, \"max\": 25.0, \"step\": 1.0, \"group\": 'Hub', \"label\": 'Hub diameter (mm)'},\n \"hub_h\": {\"type\": 'float', \"default\": 24.5, \"min\": 7.3, \"max\": 49.0, \"step\": 0.5, \"group\": 'Hub', \"label\": 'Hub height (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"hub_d\"] / 2).extrude(p[\"hub_h\"])\n )\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad555_1897", "family": "compound", "tier": 1, "seed": 2468009301, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "f7e036a73229b535", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 107000.0, "surface_area": 17100.0, "principal_moments": [39200000.0, 40700000.0, 63699999.99999999], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 58.54, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 59.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 30.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 32.9, "min": 13.2, "max": 52.6, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 20.1, "min": 8.0, "max": 32.2, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.4, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009301 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 58.54, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 59.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 30.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 32.9, \"min\": 13.2, \"max\": 52.6, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 20.1, \"min\": 8.0, \"max\": 32.2, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.4, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .rect(p[\"tab_a\"], p[\"tab_b\"]).extrude(p[\"tab_t\"])\n )\n result = (\n result.faces('>X').workplane()\n .rect(p[\"tab_a\"] * 0.6, p[\"tab_b\"] * 0.6, forConstruction=True)\n .vertices().hole(p[\"tab_hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad556_1898", "family": "profiled", "tier": 1, "seed": 2468009302, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "776b923dbb03a78f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 90100.0, "surface_area": 14200.0, "principal_moments": [10600000.0, 120000000.0, 120000000.0], "n_faces": 7, "n_edges": 15, "n_vertices": 10}, "params": {"circ_r": {"type": "float", "default": 17.5, "min": 8.8, "max": 35.0, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 123.8, "min": 37.1, "max": 371.4, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009302 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 17.5, \"min\": 8.8, \"max\": 35.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 123.8, \"min\": 37.1, \"max\": 371.4, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad557_1899", "family": "block", "tier": 1, "seed": 2468009303, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "29275445a7fff2b6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15200.0, "surface_area": 4790.0, "principal_moments": [1490000.0, 1570000.0, 2340000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 29.88, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 16.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 30.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.9, "min": 2.0, "max": 1.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009303 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 29.88, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 16.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 30.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.9, \"min\": 2.0, \"max\": 1.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 11.2\n _ssy = 10.3\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad559_1901", "family": "bracket", "tier": 2, "seed": 2468009305, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "771ab94726ea9027", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25300.0, "surface_area": 11600.0, "principal_moments": [8170000.0, 10400000.0, 14499999.999999998], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 51.42, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 42.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.2, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009305 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 51.42, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 42.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad55a_1902", "family": "ribbed", "tier": 1, "seed": 2468009306, "symmetry": "none", "op_count": 2, "ir_hash": "a20b3135879d7072", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11600.0, "surface_area": 6320.0, "principal_moments": [1630000.0, 2550000.0, 4060000.0], "n_faces": 21, "n_edges": 48, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 40.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 5.4, "min": 2.2, "max": 10.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.2, "min": 1.0, "max": 5.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009306 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 40.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 5.4, \"min\": 2.2, \"max\": 10.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.2, \"min\": 1.0, \"max\": 5.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad55b_1903", "family": "revolved", "tier": 1, "seed": 2468009307, "symmetry": "radial", "op_count": 1, "ir_hash": "f3b944399ace0f03", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 295000.0, "surface_area": 40300.0, "principal_moments": [254000000.0, 294000000.0, 294000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 75.85, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 97.8, "min": 29.3, "max": 293.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009307 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75.85, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 97.8, \"min\": 29.3, \"max\": 293.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad55c_1904", "family": "plate", "tier": 2, "seed": 2468009308, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "241dd213426790a9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12400.0, "surface_area": 5710.0, "principal_moments": [1150000.0, 4310000.0, 5390000.0], "n_faces": 26, "n_edges": 72, "n_vertices": 48}, "params": {"plate_w": {"type": "float", "default": 65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 33.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.5, "step": 0.5, "group": "Holes", "label": "Slot width (mm)"}, "hole_slot_len": {"type": "float", "default": 6.8, "min": 4.8, "max": 10.0, "step": 0.5, "group": "Holes", "label": "Slot length (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009308 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 33.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.5, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot width (mm)'},\n \"hole_slot_len\": {\"type\": 'float', \"default\": 6.8, \"min\": 4.8, \"max\": 10.0, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot length (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08038480826740729)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad55d_1905", "family": "revolved", "tier": 0, "seed": 2468009309, "symmetry": "none", "op_count": 1, "ir_hash": "f5bf7bea862b1779", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16500.0, "surface_area": 7570.0, "principal_moments": [1060000.0, 5920000.0, 5920000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 20.64, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 74.1, "min": 22.2, "max": 222.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009309 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 20.64, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 74.1, \"min\": 22.2, \"max\": 222.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad55e_1906", "family": "ribbed", "tier": 2, "seed": 2468009310, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3cc2ad973249aec8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42600.0, "surface_area": 23200.0, "principal_moments": [25699999.999999996, 40700000.0, 64099999.99999999], "n_faces": 16, "n_edges": 36, "n_vertices": 24}, "params": {"base_w": {"type": "float", "default": 95.61, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 85.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.9, "min": 6.8, "max": 33.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.9, "min": 1.0, "max": 9.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009310 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 95.61, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 85.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.9, \"min\": 6.8, \"max\": 33.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.9, \"min\": 1.0, \"max\": 9.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad55f_1907", "family": "flanged", "tier": 3, "seed": 2468009311, "symmetry": "radial", "op_count": 3, "ir_hash": "25555d42febf7b76", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 70100.0, "surface_area": 19800.0, "principal_moments": [29299999.999999996, 29299999.999999996, 40300000.0], "n_faces": 56, "n_edges": 148, "n_vertices": 87}, "params": {"outer_d": {"type": "float", "default": 50.4, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 36.4, "min": 10.9, "max": 91.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 24.5, "min": 2.0, "max": 35.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 84.9, "min": 65.5, "max": 151.2, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.3, "min": 1.3, "max": 14.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 25.5, "min": 17.0, "max": 38.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009311 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50.4, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 36.4, \"min\": 10.9, \"max\": 91.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 24.5, \"min\": 2.0, \"max\": 35.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 84.9, \"min\": 65.5, \"max\": 151.2, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.3, \"min\": 1.3, \"max\": 14.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 25.5, \"min\": 17.0, \"max\": 38.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad562_1910", "family": "bracket", "tier": 2, "seed": 2468009314, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "819db65af903b7ea", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14800.0, "surface_area": 8600.0, "principal_moments": [3240000.0, 11200000.0, 13599999.999999998], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 74.37, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 75.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20.26, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 8.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.6, "min": 2.0, "max": 10.1, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009314 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 74.37, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 75.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20.26, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 8.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.6, \"min\": 2.0, \"max\": 10.1, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad563_1911", "family": "revolved", "tier": 2, "seed": 2468009315, "symmetry": "radial", "op_count": 1, "ir_hash": "9c864b0f3beb84fc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 55400.0, "surface_area": 12600.0, "principal_moments": [6980000.0, 40200000.0, 40200000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 30, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 89.1, "min": 26.7, "max": 267.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 10.4, "min": 2.0, "max": 21.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009315 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 89.1, \"min\": 26.7, \"max\": 267.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 10.4, \"min\": 2.0, \"max\": 21.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad564_1912", "family": "revolved", "tier": 1, "seed": 2468009316, "symmetry": "none", "op_count": 1, "ir_hash": "8b13051ed29ff50c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1840000.0, "surface_area": 144000.0, "principal_moments": [3180000000.0, 16700000000.0, 16700000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 77.75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 298.6, "min": 89.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 30.9, "min": 2.0, "max": 54.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 142.8, "min": 93.3, "max": 233.2, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 57.3, "min": 17.2, "max": 149.3, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009316 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 77.75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 298.6, \"min\": 89.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 30.9, \"min\": 2.0, \"max\": 54.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 142.8, \"min\": 93.3, \"max\": 233.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 57.3, \"min\": 17.2, \"max\": 149.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad565_1913", "family": "threaded", "tier": 2, "seed": 2468009317, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "3ebfbdfb95e382b8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18100.0, "surface_area": 5320.0, "principal_moments": [1940000.0, 2070000.0, 2080000.0], "n_faces": 60, "n_edges": 146, "n_vertices": 88}, "params": {"thread_size": {"type": "enum", "default": "1 1/4", "choices": ["1/4", "5/16", "3/8", "1/2", "5/8", "3/4", "7/8", "1", "1 1/4", "1 1/2"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 27.6, "min": 11.0, "max": 55.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009317 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '1 1/4', \"choices\": ['1/4', '5/16', '3/8', '1/2', '5/8', '3/4', '7/8', '1', '1 1/4', '1 1/2'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 27.6, \"min\": 11.0, \"max\": 55.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.AcmeThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad566_1914", "family": "enclosure", "tier": 3, "seed": 2468009318, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "a4ad226340c7f289", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 106000.0, "surface_area": 53000.0, "principal_moments": [109000000.0, 150000000.0, 186000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 95, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 47.7, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 83.4, "min": 33.4, "max": 166.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.1, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 10.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009318 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 95, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 47.7, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 83.4, \"min\": 33.4, \"max\": 166.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.1, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 10.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad567_1915", "family": "compound", "tier": 1, "seed": 2468009319, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "1961e73c603db30c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 57500.0, "surface_area": 9120.0, "principal_moments": [12899999.999999998, 14199999.999999998, 16699999.999999998], "n_faces": 20, "n_edges": 48, "n_vertices": 32}, "params": {"block_w": {"type": "float", "default": 40, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 43.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 33.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 3.0, "min": 1.5, "max": 7.5, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 4.0, "min": 1.3, "max": 15.6, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009319 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 43.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 33.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.5, \"max\": 7.5, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.3, \"max\": 15.6, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad568_1916", "family": "enclosure", "tier": 2, "seed": 2468009320, "symmetry": "none", "op_count": 4, "ir_hash": "edb6207589645b47", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12200.0, "surface_area": 5640.0, "principal_moments": [1360000.0, 1700000.0, 2380000.0], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 33.68, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 28.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 17.8, "min": 7.1, "max": 35.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.9, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009320 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 33.68, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 28.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 17.8, \"min\": 7.1, \"max\": 35.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.9, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.0659759702333295)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad569_1917", "family": "revolved", "tier": 0, "seed": 2468009321, "symmetry": "none", "op_count": 1, "ir_hash": "44563a0b8d967e70", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 244000.0, "surface_area": 39800.0, "principal_moments": [132000000.0, 310000000.0, 310000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 60, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 129.6, "min": 38.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009321 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 129.6, \"min\": 38.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad56a_1918", "family": "threaded", "tier": 3, "seed": 2468009322, "symmetry": "none", "op_count": 1, "ir_hash": "2086b8ac1f5ebdd9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17200.0, "surface_area": 6340.0, "principal_moments": [784000.0, 5520000.0, 5520000.0], "n_faces": 560, "n_edges": 1824, "n_vertices": 1266}, "params": {"major_d": {"type": "float", "default": 20.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 60.0, "min": 24.0, "max": 120.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009322 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 20.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 60.0, \"min\": 24.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad56b_1919", "family": "flanged", "tier": 1, "seed": 2468009323, "symmetry": "radial", "op_count": 2, "ir_hash": "1c2f730e487f04c3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 373000.0, "surface_area": 75800.0, "principal_moments": [659000000.0, 659000000.0, 1170000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 80.79, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 47.5, "min": 14.2, "max": 118.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 37.7, "min": 2.0, "max": 56.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 190.6, "min": 105.0, "max": 242.4, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.9, "min": 2.4, "max": 19.0, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 57.2, "min": 38.1, "max": 85.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009323 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 80.79, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 47.5, \"min\": 14.2, \"max\": 118.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 37.7, \"min\": 2.0, \"max\": 56.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 190.6, \"min\": 105.0, \"max\": 242.4, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.9, \"min\": 2.4, \"max\": 19.0, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 57.2, \"min\": 38.1, \"max\": 85.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad56c_1920", "family": "compound", "tier": 1, "seed": 2468009324, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "8d456c5629c4cc50", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17400.0, "surface_area": 5210.0, "principal_moments": [1410000.0, 2870000.0, 3230000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 34.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 19.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 9.1, "min": 3.6, "max": 13.5, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 18.6, "min": 2.7, "max": 36.4, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 3.9, "min": 2.0, "max": 6.6, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009324 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 34.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 19.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 9.1, \"min\": 3.6, \"max\": 13.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 18.6, \"min\": 2.7, \"max\": 36.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 3.9, \"min\": 2.0, \"max\": 6.6, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad56d_1921", "family": "compound", "tier": 2, "seed": 2468009325, "symmetry": "none", "op_count": 3, "ir_hash": "9bff1c6d6686b503", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9610.0, "surface_area": 3440.0, "principal_moments": [686000.0, 791000.0, 1120000.0], "n_faces": 16, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 15.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 25.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 3.3, "min": 1.6, "max": 5.2, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 14.4, "min": 1.8, "max": 24.4, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.4, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009325 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 15.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 25.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 3.3, \"min\": 1.6, \"max\": 5.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 14.4, \"min\": 1.8, \"max\": 24.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.4, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad56e_1922", "family": "block", "tier": 2, "seed": 2468009326, "symmetry": "none", "op_count": 3, "ir_hash": "905d28fcca708a42", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 632000.0, "surface_area": 78100.0, "principal_moments": [887000000.0, 959000000.0, 1120000000.0], "n_faces": 27, "n_edges": 72, "n_vertices": 48}, "params": {"block_w": {"type": "float", "default": 100.0, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 79.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 10.1, "min": 2.0, "max": 16.9, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "pocket_w": {"type": "float", "default": 40.6, "min": 20.3, "max": 80.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 55.2, "min": 27.6, "max": 63.9, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 56.1, "min": 22.4, "max": 85.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009326 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 100.0, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 79.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.1, \"min\": 2.0, \"max\": 16.9, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 40.6, \"min\": 20.3, \"max\": 80.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 55.2, \"min\": 27.6, \"max\": 63.9, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 56.1, \"min\": 22.4, \"max\": 85.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad56f_1923", "family": "block", "tier": 2, "seed": 2468009327, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "961d3485f7f193a5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 57300.0, "surface_area": 13900.0, "principal_moments": [10400000.0, 24699999.999999996, 31099999.999999996], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 42.12, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 20.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 68.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 9.8, "min": 4.9, "max": 19.6, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 4.8, "min": 1.9, "max": 12.0, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.9, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009327 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 42.12, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 20.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 68.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 9.8, \"min\": 4.9, \"max\": 19.6, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 4.8, \"min\": 1.9, \"max\": 12.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.9, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad570_1924", "family": "block", "tier": 3, "seed": 2468009328, "symmetry": "none", "op_count": 4, "ir_hash": "6b0aa67251ace47f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 864000.0, "surface_area": 62500.0, "principal_moments": [1260000000.0, 1270000000.0, 1430000000.0], "n_faces": 16, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 99.94, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 87.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 19.0, "min": 9.5, "max": 38.0, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 8.9, "min": 3.6, "max": 22.2, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "filleted2": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009328 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 99.94, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 87.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 19.0, \"min\": 9.5, \"max\": 38.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 8.9, \"min\": 3.6, \"max\": 22.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"filleted2\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n if p[\"filleted2\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.05390568656177294)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad571_1925", "family": "revolved", "tier": 1, "seed": 2468009329, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "adf8e2a085023dbd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4590.0, "surface_area": 2840.0, "principal_moments": [151000.0, 505000.0, 505000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 14.87, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 40.1, "min": 12.0, "max": 120.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.4, "min": 0.1, "max": 4.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009329 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 14.87, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 40.1, \"min\": 12.0, \"max\": 120.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.4, \"min\": 0.1, \"max\": 4.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad573_1927", "family": "revolved", "tier": 2, "seed": 2468009331, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "883561402158058b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1700.0, "surface_area": 1690.0, "principal_moments": [23500.0, 144000.0, 144000.0], "n_faces": 9, "n_edges": 14, "n_vertices": 9}, "params": {"outer_d": {"type": "float", "default": 9.68, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 36.1, "min": 10.8, "max": 108.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "groove_depth": {"type": "float", "default": 0.57, "min": 0.23, "max": 1.71, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 3.68, "min": 1.47, "max": 11.04, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 20.7, "min": 5.4, "max": 30.7, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.1, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009331 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 9.68, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 36.1, \"min\": 10.8, \"max\": 108.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 0.57, \"min\": 0.23, \"max\": 1.71, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 3.68, \"min\": 1.47, \"max\": 11.04, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 20.7, \"min\": 5.4, \"max\": 30.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.1, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad577_1931", "family": "revolved", "tier": 1, "seed": 2468009335, "symmetry": "radial", "op_count": 2, "ir_hash": "98abc9c74b2a89da", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 58000.0, "surface_area": 16600.0, "principal_moments": [22999999.999999996, 22999999.999999996, 36100000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 43.66, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 31.4, "min": 9.4, "max": 94.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 22.8, "min": 2.0, "max": 30.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 81.8, "min": 52.4, "max": 131.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.5, "min": 1.9, "max": 15.7, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.5, "min": 0.1, "max": 4.5, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009335 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 43.66, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 31.4, \"min\": 9.4, \"max\": 94.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 22.8, \"min\": 2.0, \"max\": 30.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 81.8, \"min\": 52.4, \"max\": 131.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.5, \"min\": 1.9, \"max\": 15.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.1, \"max\": 4.5, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad579_1933", "family": "bracket", "tier": 1, "seed": 2468009337, "symmetry": "none", "op_count": 1, "ir_hash": "9dbb502be6934f71", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8190.0, "surface_area": 5250.0, "principal_moments": [1400000.0, 1500000.0, 2110000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 29.43, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 34.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 23.49, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 9.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009337 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 29.43, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 34.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 23.49, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 9.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad57a_1934", "family": "plate", "tier": 2, "seed": 2468009338, "symmetry": "radial", "op_count": 3, "ir_hash": "de94c1caada03901", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7200.0, "surface_area": 3570.0, "principal_moments": [336000.0, 1930000.0, 2220000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"plate_w": {"type": "float", "default": 56.71, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 22.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 17.0, "min": 11.3, "max": 25.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009338 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 56.71, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 22.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 17.0, \"min\": 11.3, \"max\": 25.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.11372792204553783)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad57b_1935", "family": "revolved", "tier": 2, "seed": 2468009339, "symmetry": "none", "op_count": 2, "ir_hash": "38e0174f7948ebb0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 397000.0, "surface_area": 52400.0, "principal_moments": [328000000.0, 611000000.0, 611000000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 74.22, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 137.8, "min": 41.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.2, "min": 0.1, "max": 3.6, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009339 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 74.22, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 137.8, \"min\": 41.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.2, \"min\": 0.1, \"max\": 3.6, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad57d_1937", "family": "compound", "tier": 1, "seed": 2468009341, "symmetry": "none", "op_count": 2, "ir_hash": "048eddb24bd99862", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61900.0, "surface_area": 13400.0, "principal_moments": [16499999.999999998, 25799999.999999996, 25899999.999999996], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"base_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 28.14, "min": 16.9, "max": 45.0, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 27.1, "min": 10.8, "max": 67.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 22.7, "min": 11.3, "max": 36.4, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 42.2, "min": 12.7, "max": 105.5, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 10.7, "min": 2.0, "max": 16.3, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009341 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 28.14, \"min\": 16.9, \"max\": 45.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 27.1, \"min\": 10.8, \"max\": 67.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 22.7, \"min\": 11.3, \"max\": 36.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 42.2, \"min\": 12.7, \"max\": 105.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 10.7, \"min\": 2.0, \"max\": 16.3, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad57e_1938", "family": "revolved", "tier": 0, "seed": 2468009342, "symmetry": "none", "op_count": 1, "ir_hash": "3b6fde1440f2c146", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 222000.0, "surface_area": 33000.0, "principal_moments": [164000000.0, 179000000.0, 179000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 70.25, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 85.8, "min": 25.7, "max": 257.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009342 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 70.25, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 85.8, \"min\": 25.7, \"max\": 257.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad57f_1939", "family": "compound", "tier": 1, "seed": 2468009343, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "42d6e2c625084839", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 43100.0, "surface_area": 7990.0, "principal_moments": [4270000.0, 21800000.0, 21800000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 30, "min": 15.0, "max": 54.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 50.7, "min": 20.3, "max": 101.4, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 16.1, "min": 8.1, "max": 27.0, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 35.6, "min": 10.7, "max": 89.0, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009343 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 54.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 50.7, \"min\": 20.3, \"max\": 101.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 16.1, \"min\": 8.1, \"max\": 27.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 35.6, \"min\": 10.7, \"max\": 89.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad580_1940", "family": "plate", "tier": 1, "seed": 2468009344, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "ee38c2d58b695bcd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8520.0, "surface_area": 3820.0, "principal_moments": [437000.0, 1620000.0, 1970000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 48.06, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 24.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 5.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009344 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 48.06, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 24.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 5.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad581_1941", "family": "compound", "tier": 1, "seed": 2468009345, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "12916e646bd575fe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 92000.0, "surface_area": 15200.0, "principal_moments": [31199999.999999996, 32599999.999999996, 34000000.0], "n_faces": 14, "n_edges": 34, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 47.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 43.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 13.8, "min": 5.5, "max": 19.8, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 9.8, "min": 3.5, "max": 41.4, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 6.7, "min": 2.0, "max": 9.9, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009345 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 47.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 43.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 13.8, \"min\": 5.5, \"max\": 19.8, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 9.8, \"min\": 3.5, \"max\": 41.4, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 6.7, \"min\": 2.0, \"max\": 9.9, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad582_1942", "family": "plate", "tier": 1, "seed": 2468009346, "symmetry": "none", "op_count": 2, "ir_hash": "a57e25666476ed34", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 44100.0, "surface_area": 14300.0, "principal_moments": [18600000.0, 23499999.999999996, 41700000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 80.35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 71.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009346 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 80.35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 71.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad583_1943", "family": "revolved", "tier": 0, "seed": 2468009347, "symmetry": "none", "op_count": 1, "ir_hash": "653d557950b179a1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2660.0, "surface_area": 1660.0, "principal_moments": [121000.0, 121000.0, 215000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 23.23, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 9.4, "min": 2.8, "max": 28.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009347 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 23.23, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 9.4, \"min\": 2.8, \"max\": 28.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad584_1944", "family": "bracket", "tier": 2, "seed": 2468009348, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "3501f5416e73936e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13400.0, "surface_area": 7790.0, "principal_moments": [2920000.0, 3190000.0, 4520000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 43.58, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.7, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009348 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 43.58, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.7, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad585_1945", "family": "block", "tier": 1, "seed": 2468009349, "symmetry": "none", "op_count": 2, "ir_hash": "9f0227d5ee827153", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 250000.0, "surface_area": 30200.0, "principal_moments": [140000000.0, 187000000.0, 227000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 80.74, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 65.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 49.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009349 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80.74, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 65.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 49.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 20.2\n _ssy = 22.2\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad586_1946", "family": "revolved", "tier": 2, "seed": 2468009350, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "bd64f8738130f612", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6320.0, "surface_area": 2910.0, "principal_moments": [436000.0, 436000.0, 592000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 25, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 19.3, "min": 5.8, "max": 57.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009350 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 19.3, \"min\": 5.8, \"max\": 57.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad587_1947", "family": "revolved", "tier": 2, "seed": 2468009351, "symmetry": "none", "op_count": 2, "ir_hash": "24c902e91e6d73ee", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 113000.0, "surface_area": 27700.0, "principal_moments": [25699999.999999996, 151000000.0, 151000000.0], "n_faces": 9, "n_edges": 14, "n_vertices": 9}, "params": {"outer_d": {"type": "float", "default": 39.2, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 143.0, "min": 42.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "groove_depth": {"type": "float", "default": 2.54, "min": 1.02, "max": 7.62, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 7.75, "min": 3.1, "max": 23.25, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 78.1, "min": 21.4, "max": 121.5, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 1.4, "min": 0.1, "max": 4.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009351 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 39.2, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 143.0, \"min\": 42.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 2.54, \"min\": 1.02, \"max\": 7.62, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 7.75, \"min\": 3.1, \"max\": 23.25, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 78.1, \"min\": 21.4, \"max\": 121.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.4, \"min\": 0.1, \"max\": 4.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad58a_1950", "family": "revolved", "tier": 0, "seed": 2468009354, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "589cec90c016986e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 67500.0, "surface_area": 18400.0, "principal_moments": [12399999.999999998, 50699999.99999999, 50699999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 35, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 105.3, "min": 31.6, "max": 315.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009354 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 105.3, \"min\": 31.6, \"max\": 315.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad58b_1951", "family": "compound", "tier": 3, "seed": 2468009355, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "542796a6f566573b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23500.0, "surface_area": 7520.0, "principal_moments": [4210000.0, 4650000.0, 4710000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"base_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 22.54, "min": 13.5, "max": 36.1, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 17.4, "min": 7.0, "max": 43.5, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 16.6, "min": 8.3, "max": 29.2, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 28.9, "min": 8.7, "max": 72.2, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 10.2, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009355 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 22.54, \"min\": 13.5, \"max\": 36.1, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 17.4, \"min\": 7.0, \"max\": 43.5, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 16.6, \"min\": 8.3, \"max\": 29.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 28.9, \"min\": 8.7, \"max\": 72.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 10.2, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_r\"], p[\"base_r\"]) * 0.0724470615077368)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad58c_1952", "family": "threaded", "tier": 0, "seed": 2468009356, "symmetry": "none", "op_count": 1, "ir_hash": "fb5870eb0ed20597", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 536.0, "surface_area": 679.0, "principal_moments": [1990.0, 25400.0, 25400.0], "n_faces": 240, "n_edges": 614, "n_vertices": 376}, "params": {"major_d": {"type": "float", "default": 6.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.0, "min": 0.5, "max": 2.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 23.5, "min": 9.4, "max": 47.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009356 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.5, \"max\": 2.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 23.5, \"min\": 9.4, \"max\": 47.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad58d_1953", "family": "bracket", "tier": 1, "seed": 2468009357, "symmetry": "none", "op_count": 1, "ir_hash": "045780566e479fe4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14500.0, "surface_area": 5860.0, "principal_moments": [2380000.0, 8220000.0, 9970000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 62.19, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 59.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 16.03, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 6.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009357 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 62.19, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 59.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 16.03, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 6.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad58f_1955", "family": "plate", "tier": 0, "seed": 2468009359, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "40ebafb11361270a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7720.0, "surface_area": 3440.0, "principal_moments": [666000.0, 1090000.0, 1710000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 40.72, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 31.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009359 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40.72, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 31.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad590_1956", "family": "plate", "tier": 1, "seed": 2468009360, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "2fbdcbe1a104b8c4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11100.0, "surface_area": 5730.0, "principal_moments": [1160000.0, 3900000.0, 5010000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 35.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 7.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009360 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 35.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 7.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad591_1957", "family": "compound", "tier": 2, "seed": 2468009361, "symmetry": "none", "op_count": 3, "ir_hash": "6e2a7a4c6e7f2307", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42700.0, "surface_area": 12800.0, "principal_moments": [9160000.0, 16599999.999999998, 18800000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_w": {"type": "float", "default": 64.24, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 42.1, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 16.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 13.7, "min": 5.5, "max": 21.1, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 36.0, "min": 10.8, "max": 108.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 7.6, "min": 2.0, "max": 9.9, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 9.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009361 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 64.24, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 42.1, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 16.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 13.7, \"min\": 5.5, \"max\": 21.1, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 36.0, \"min\": 10.8, \"max\": 108.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 7.6, \"min\": 2.0, \"max\": 9.9, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 9.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad592_1958", "family": "bracket", "tier": 1, "seed": 2468009362, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "6abaa91f53d0572b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26900.0, "surface_area": 9060.0, "principal_moments": [5510000.0, 13599999.999999998, 13599999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 48.53, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 56.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009362 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 48.53, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 56.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad595_1961", "family": "compound", "tier": 2, "seed": 2468009365, "symmetry": "none", "op_count": 5, "ir_hash": "35c26478d3b459ad", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 508000.0, "surface_area": 51900.0, "principal_moments": [539000000.0, 563000000.0, 580000000.0], "n_faces": 42, "n_edges": 112, "n_vertices": 73}, "params": {"block_w": {"type": "float", "default": 84.28, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 79.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 78.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 10.3, "min": 5.2, "max": 17.6, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 12.6, "min": 4.8, "max": 57.1, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 9.9, "min": 2.0, "max": 13.7, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009365 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 84.28, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 79.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 78.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 10.3, \"min\": 5.2, \"max\": 17.6, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 12.6, \"min\": 4.8, \"max\": 57.1, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 9.9, \"min\": 2.0, \"max\": 13.7, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad597_1963", "family": "ribbed", "tier": 1, "seed": 2468009367, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "cf33166c77501ab5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23300.0, "surface_area": 10100.0, "principal_moments": [4480000.0, 8080000.0, 11599999.999999998], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 44.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 10.8, "min": 4.3, "max": 21.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.7, "min": 1.0, "max": 11.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009367 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 44.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 10.8, \"min\": 4.3, \"max\": 21.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.7, \"min\": 1.0, \"max\": 11.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad598_1964", "family": "bracket", "tier": 1, "seed": 2468009368, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "717cec0a543b3bb6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23800.0, "surface_area": 9850.0, "principal_moments": [5080000.0, 7330000.0, 7880000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 29.72, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 31.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009368 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 29.72, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 31.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad599_1965", "family": "bracket", "tier": 1, "seed": 2468009369, "symmetry": "none", "op_count": 1, "ir_hash": "4c8f055e0e34205c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29100.0, "surface_area": 13900.0, "principal_moments": [11699999.999999998, 37300000.0, 43000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 87.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 85.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009369 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 87.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 85.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad59e_1970", "family": "flanged", "tier": 1, "seed": 2468009374, "symmetry": "radial", "op_count": 2, "ir_hash": "a75513904acc1c55", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 404000.0, "surface_area": 60500.0, "principal_moments": [558000000.0, 558000000.0, 604000000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 75, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 79.6, "min": 23.9, "max": 199.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 29.9, "min": 2.0, "max": 52.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 145.8, "min": 97.5, "max": 225.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.8, "min": 2.6, "max": 31.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 43.7, "min": 29.2, "max": 65.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009374 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 79.6, \"min\": 23.9, \"max\": 199.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 29.9, \"min\": 2.0, \"max\": 52.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 145.8, \"min\": 97.5, \"max\": 225.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.8, \"min\": 2.6, \"max\": 31.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 43.7, \"min\": 29.2, \"max\": 65.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad5a0_1972", "family": "block", "tier": 2, "seed": 2468009376, "symmetry": "none", "op_count": 3, "ir_hash": "01f60c1de2c598dd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13300.0, "surface_area": 5230.0, "principal_moments": [828000.0, 2490000.0, 3000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 12.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 45.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.3, "min": 2.0, "max": 2.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009376 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 12.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 45.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.3, \"min\": 2.0, \"max\": 2.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.10441405273179663)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5a1_1973", "family": "plate", "tier": 1, "seed": 2468009377, "symmetry": "none", "op_count": 2, "ir_hash": "a9d3e1b1bea36590", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 40100.0, "surface_area": 12700.0, "principal_moments": [10700000.0, 27199999.999999996, 37500000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 90, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 56.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 12.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009377 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 56.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 12.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5a2_1974", "family": "plate", "tier": 3, "seed": 2468009378, "symmetry": "radial", "op_count": 4, "ir_hash": "646677a714294676", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8030.0, "surface_area": 5050.0, "principal_moments": [901000.0, 2210000.0, 3080000.0], "n_faces": 29, "n_edges": 90, "n_vertices": 60}, "params": {"plate_w": {"type": "float", "default": 54.18, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 35.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 16.3, "min": 10.8, "max": 24.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "pocket_w": {"type": "float", "default": 23.6, "min": 11.8, "max": 43.3, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 18.6, "min": 9.3, "max": 28.6, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 1.7, "min": 0.7, "max": 4.2, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009378 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 54.18, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 35.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 16.3, \"min\": 10.8, \"max\": 24.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"pocket_w\": {\"type\": 'float', \"default\": 23.6, \"min\": 11.8, \"max\": 43.3, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 18.6, \"min\": 9.3, \"max\": 28.6, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 1.7, \"min\": 0.7, \"max\": 4.2, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.061400098736875915)\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5a3_1975", "family": "bracket", "tier": 3, "seed": 2468009379, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "2e3f6e45b2476dcd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7470.0, "surface_area": 6340.0, "principal_moments": [1850000.0, 2840000.0, 4170000.0], "n_faces": 26, "n_edges": 76, "n_vertices": 48}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 45.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 2.6, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009379 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 45.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.6, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad5a4_1976", "family": "ribbed", "tier": 3, "seed": 2468009380, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "330c250d71c15ffd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 69800.0, "surface_area": 31100.0, "principal_moments": [33900000.0, 51999999.99999999, 81500000.0], "n_faces": 62, "n_edges": 168, "n_vertices": 104}, "params": {"base_w": {"type": "float", "default": 95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 74.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 14.7, "min": 5.9, "max": 29.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009380 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 74.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 14.7, \"min\": 5.9, \"max\": 29.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5a5_1977", "family": "plate", "tier": 0, "seed": 2468009381, "symmetry": "none", "op_count": 1, "ir_hash": "421913aa89ec8f3c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12400.0, "surface_area": 6090.0, "principal_moments": [1030000.0, 6660000.0, 7640000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 31.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009381 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 31.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad5a6_1978", "family": "gear", "tier": 2, "seed": 2468009382, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "433318c85affd262", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 189000.0, "surface_area": 32200.0, "principal_moments": [178000000.0, 178000000.0, 346000000.0], "n_faces": 213, "n_edges": 528, "n_vertices": 317}, "params": {"module": {"type": "float", "default": 5.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 21, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 17.1, "min": 6.8, "max": 42.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 26.0, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.01, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 1.05, "min": 0.0, "max": 2.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 13.7, "min": 2.0, "max": 55.5, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009382 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 5.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 21, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 17.1, \"min\": 6.8, \"max\": 42.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 26.0, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.01, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 1.05, \"min\": 0.0, \"max\": 2.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 13.7, \"min\": 2.0, \"max\": 55.5, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=True, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad5a7_1979", "family": "compound", "tier": 3, "seed": 2468009383, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3ebe0d5bc4b6b8e1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29300.0, "surface_area": 8980.0, "principal_moments": [5930000.0, 7470000.0, 7470000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 23.53, "min": 14.1, "max": 37.6, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 15.9, "min": 6.4, "max": 39.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 22.4, "min": 11.2, "max": 32.6, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 31.5, "min": 9.4, "max": 78.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 12.7, "min": 2.0, "max": 16.1, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009383 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 23.53, \"min\": 14.1, \"max\": 37.6, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 15.9, \"min\": 6.4, \"max\": 39.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 22.4, \"min\": 11.2, \"max\": 32.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 31.5, \"min\": 9.4, \"max\": 78.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 12.7, \"min\": 2.0, \"max\": 16.1, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5a8_1980", "family": "bracket", "tier": 1, "seed": 2468009384, "symmetry": "none", "op_count": 1, "ir_hash": "f476a093e79d184b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32900.0, "surface_area": 18200.0, "principal_moments": [11899999.999999998, 34500000.0, 39200000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 51.85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 56.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 49.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009384 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 51.85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 56.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 49.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad5a9_1981", "family": "profiled", "tier": 2, "seed": 2468009385, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "1b2ebed479aa99d2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 204000.0, "surface_area": 42400.0, "principal_moments": [61899999.99999999, 477000000.0, 477000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 45, "min": 22.5, "max": 90.0, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 192.1, "min": 57.6, "max": 576.3, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009385 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45, \"min\": 22.5, \"max\": 90.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 192.1, \"min\": 57.6, \"max\": 576.3, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5aa_1982", "family": "plate", "tier": 3, "seed": 2468009386, "symmetry": "none", "op_count": 4, "ir_hash": "2ed955f8ec661949", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 600.0, "surface_area": 801.0, "principal_moments": [6060.0, 21600.0, 26100.0], "n_faces": 47, "n_edges": 132, "n_vertices": 88}, "params": {"plate_w": {"type": "float", "default": 20.0, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 10.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.5, "min": 2.0, "max": 2.9, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "pocket_w": {"type": "float", "default": 10.8, "min": 5.4, "max": 16.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 4.3, "min": 2.1, "max": 8.0, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 2.2, "min": 0.9, "max": 3.4, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009386 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 20.0, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.5, \"min\": 2.0, \"max\": 2.9, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"pocket_w\": {\"type\": 'float', \"default\": 10.8, \"min\": 5.4, \"max\": 16.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.1, \"max\": 8.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 2.2, \"min\": 0.9, \"max\": 3.4, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.04899328185105548)\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5ac_1984", "family": "bracket", "tier": 1, "seed": 2468009388, "symmetry": "none", "op_count": 1, "ir_hash": "526677a90256826f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39200.0, "surface_area": 14300.0, "principal_moments": [30899999.999999996, 52899999.99999999, 81200000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 89.97, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 86.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009388 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 89.97, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 86.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad5ad_1985", "family": "ribbed", "tier": 3, "seed": 2468009389, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "8ca8a2ea702246bb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 49300.0, "surface_area": 19000.0, "principal_moments": [17200000.0, 21900000.0, 34000000.0], "n_faces": 26, "n_edges": 60, "n_vertices": 40}, "params": {"base_w": {"type": "float", "default": 67.37, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 64.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 18.3, "min": 7.3, "max": 36.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.9, "min": 1.0, "max": 14.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009389 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 67.37, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 64.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 18.3, \"min\": 7.3, \"max\": 36.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.9, \"min\": 1.0, \"max\": 14.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5ae_1986", "family": "bracket", "tier": 2, "seed": 2468009390, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "95850213b4d48af9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8330.0, "surface_area": 4050.0, "principal_moments": [863000.0, 1040000.0, 1140000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 25.45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 22.89, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 9.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.6, "min": 3.0, "max": 11.4, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009390 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 25.45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 22.89, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 9.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 3.0, \"max\": 11.4, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad5af_1987", "family": "revolved", "tier": 2, "seed": 2468009391, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "16233a5710f5be6c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 146000.0, "surface_area": 26800.0, "principal_moments": [32999999.999999996, 262000000.0, 262000000.0], "n_faces": 8, "n_edges": 12, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 40, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 140.2, "min": 42.1, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 15.3, "min": 2.0, "max": 28.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 2.26, "min": 0.9, "max": 6.78, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 15.13, "min": 6.05, "max": 45.39, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 85.6, "min": 21.0, "max": 119.2, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009391 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 140.2, \"min\": 42.1, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 15.3, \"min\": 2.0, \"max\": 28.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 2.26, \"min\": 0.9, \"max\": 6.78, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 15.13, \"min\": 6.05, \"max\": 45.39, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 85.6, \"min\": 21.0, \"max\": 119.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad5b0_1988", "family": "revolved", "tier": 1, "seed": 2468009392, "symmetry": "radial", "op_count": 1, "ir_hash": "6a55954d4f4a2ef2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 123000.0, "surface_area": 21600.0, "principal_moments": [36400000.0, 152000000.0, 152000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 30.99, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 110.7, "min": 33.2, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 9.6, "min": 2.0, "max": 21.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 59.1, "min": 37.2, "max": 93.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 23.9, "min": 7.2, "max": 55.4, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009392 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30.99, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 110.7, \"min\": 33.2, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 9.6, \"min\": 2.0, \"max\": 21.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 59.1, \"min\": 37.2, \"max\": 93.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 23.9, \"min\": 7.2, \"max\": 55.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5b1_1989", "family": "plate", "tier": 1, "seed": 2468009393, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "0db170db3da3d8f3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39600.0, "surface_area": 12900.0, "principal_moments": [10900000.0, 25699999.999999996, 36300000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 88.48, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 57.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 12.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009393 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 88.48, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 57.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 12.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5b2_1990", "family": "plate", "tier": 2, "seed": 2468009394, "symmetry": "none", "op_count": 3, "ir_hash": "f41efa3feea1edb5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25100.0, "surface_area": 10500.0, "principal_moments": [4330000.0, 18600000.0, 22799999.999999996], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 45.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 10.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009394 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 45.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 10.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.06316207959080344)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5b3_1991", "family": "plate", "tier": 2, "seed": 2468009395, "symmetry": "radial", "op_count": 3, "ir_hash": "88266ec98137fa0f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18200.0, "surface_area": 5400.0, "principal_moments": [1750000.0, 4050000.0, 5360000.0], "n_faces": 20, "n_edges": 54, "n_vertices": 36}, "params": {"plate_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 32.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 15.0, "min": 10.0, "max": 22.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009395 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 32.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 15.0, \"min\": 10.0, \"max\": 22.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.10883421412457159)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5b4_1992", "family": "bracket", "tier": 2, "seed": 2468009396, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "2dfad79fe69ad60e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23300.0, "surface_area": 16800.0, "principal_moments": [8210000.0, 18700000.0, 23499999.999999996], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 53.79, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 41.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 58.11, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 42.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 2.5, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009396 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 53.79, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 41.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 58.11, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 42.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad5b5_1993", "family": "block", "tier": 1, "seed": 2468009397, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "a6ea4fee701a33fc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35800.0, "surface_area": 9230.0, "principal_moments": [4330000.0, 9970000.0, 11399999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 31.37, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 22.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 53.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009397 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 31.37, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 22.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 53.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad5b6_1994", "family": "revolved", "tier": 0, "seed": 2468009398, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "51fa1ed49d6cd1c0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10100.0, "surface_area": 4230.0, "principal_moments": [1290000.0, 1290000.0, 2410000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 40, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 12.0, "min": 3.6, "max": 36.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009398 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 12.0, \"min\": 3.6, \"max\": 36.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5b7_1995", "family": "bracket", "tier": 3, "seed": 2468009399, "symmetry": "none", "op_count": 1, "ir_hash": "26c3374f979e1204", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 47700.0, "surface_area": 25600.0, "principal_moments": [21400000.0, 100000000.0, 101000000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 83.02, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 78.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 52.49, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 62.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 5.6, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009399 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 83.02, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 78.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 52.49, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 62.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad5b8_1996", "family": "ribbed", "tier": 1, "seed": 2468009400, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "e38034c102b843eb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18700.0, "surface_area": 10100.0, "principal_moments": [2910000.0, 3320000.0, 4500000.0], "n_faces": 31, "n_edges": 72, "n_vertices": 48}, "params": {"base_w": {"type": "float", "default": 40, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 39.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.9, "min": 6.8, "max": 33.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.4, "min": 1.0, "max": 8.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009400 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 39.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.9, \"min\": 6.8, \"max\": 33.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.4, \"min\": 1.0, \"max\": 8.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad5ba_1998", "family": "gear", "tier": 0, "seed": 2468009402, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "5f4402db368d0f53", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5890.0, "surface_area": 2880.0, "principal_moments": [328000.0, 328000.0, 549000.0], "n_faces": 110, "n_edges": 324, "n_vertices": 216}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 18, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 10.5, "min": 4.2, "max": 26.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009402 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 18, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 10.5, \"min\": 4.2, \"max\": 26.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5bb_1999", "family": "bracket", "tier": 1, "seed": 2468009403, "symmetry": "none", "op_count": 1, "ir_hash": "42128d977b8a6732", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25600.0, "surface_area": 9140.0, "principal_moments": [2600000.0, 22100000.0, 22200000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 34.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 56.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009403 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 34.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 56.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5bc_2000", "family": "plate", "tier": 1, "seed": 2468009404, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "06e6f41dbe2b7c53", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1790.0, "surface_area": 1670.0, "principal_moments": [63400.0, 141000.0, 202000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 31.35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 20.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009404 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 31.35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 20.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad5bd_2001", "family": "block", "tier": 1, "seed": 2468009405, "symmetry": "none", "op_count": 2, "ir_hash": "2da5ed221a61e015", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 609000.0, "surface_area": 50900.0, "principal_moments": [672000000.0, 721000000.0, 967000000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 95, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 64.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009405 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 95, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 64.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 35.6\n _ssy = 41.4\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad5be_2002", "family": "block", "tier": 1, "seed": 2468009406, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "455dda33d517d923", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1790.0, "surface_area": 1240.0, "principal_moments": [29900.0, 66700.0, 74300.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 19.64, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 8.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 11.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009406 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 19.64, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 8.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 11.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5c0_2004", "family": "plate", "tier": 1, "seed": 2468009408, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "8fcd5a81af54b22c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14900.0, "surface_area": 5250.0, "principal_moments": [1610000.0, 2570000.0, 3930000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 44.99, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 35.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 7.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009408 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 44.99, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 35.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 7.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad5c1_2005", "family": "compound", "tier": 1, "seed": 2468009409, "symmetry": "none", "op_count": 2, "ir_hash": "ffa8bcbfb5f5a91a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11900.0, "surface_area": 3460.0, "principal_moments": [519000.0, 2710000.0, 2710000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 20, "min": 10.0, "max": 36.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 31.6, "min": 12.6, "max": 63.2, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 9.5, "min": 4.8, "max": 18.0, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 28.2, "min": 8.5, "max": 70.5, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009409 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 20, \"min\": 10.0, \"max\": 36.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 31.6, \"min\": 12.6, \"max\": 63.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 9.5, \"min\": 4.8, \"max\": 18.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 28.2, \"min\": 8.5, \"max\": 70.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5c2_2006", "family": "plate", "tier": 1, "seed": 2468009410, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "290d700b20b65cce", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2390.0, "surface_area": 1540.0, "principal_moments": [66900.0, 120000.0, 172000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 24.28, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 17.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009410 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 24.28, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 17.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5c3_2007", "family": "plate", "tier": 1, "seed": 2468009411, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "3ad4cef92f46e3cc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 59700.0, "surface_area": 18600.0, "principal_moments": [30399999.999999996, 47299999.99999999, 77200000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 97.95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 78.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009411 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 97.95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 78.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad5c4_2008", "family": "block", "tier": 1, "seed": 2468009412, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "9d592a63aa451766", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12900.0, "surface_area": 5450.0, "principal_moments": [975000.0, 1400000.0, 1670000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 18.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 31.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 5.5, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009412 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 18.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 31.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 5.5, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad5c5_2009", "family": "enclosure", "tier": 1, "seed": 2468009413, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "12961c825313d459", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 36100.0, "surface_area": 32000.0, "principal_moments": [17400000.0, 44400000.0, 45699999.99999999], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 93.78, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 37.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 50.3, "min": 20.1, "max": 100.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009413 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 93.78, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 37.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 50.3, \"min\": 20.1, \"max\": 100.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad5c6_2010", "family": "compound", "tier": 1, "seed": 2468009414, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "927adf6afd10fe87", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 117000.0, "surface_area": 17000.0, "principal_moments": [44700000.0, 47099999.99999999, 52499999.99999999], "n_faces": 22, "n_edges": 58, "n_vertices": 38}, "params": {"block_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 52.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 44.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 7.2, "min": 3.6, "max": 10.1, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 9.1, "min": 2.9, "max": 34.9, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 5.2, "min": 2.0, "max": 8.4, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009414 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 52.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 44.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 7.2, \"min\": 3.6, \"max\": 10.1, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 9.1, \"min\": 2.9, \"max\": 34.9, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 8.4, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad5c8_2012", "family": "ribbed", "tier": 1, "seed": 2468009416, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f2401bf496b5a995", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 47100.0, "surface_area": 18300.0, "principal_moments": [12999999.999999998, 18600000.0, 27199999.999999996], "n_faces": 31, "n_edges": 72, "n_vertices": 48}, "params": {"base_w": {"type": "float", "default": 65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 52.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.5, "min": 6.6, "max": 33.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.0, "min": 1.0, "max": 7.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009416 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 52.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.5, \"min\": 6.6, \"max\": 33.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 7.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad5c9_2013", "family": "block", "tier": 1, "seed": 2468009417, "symmetry": "none", "op_count": 2, "ir_hash": "fcf92eb73c652954", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 78100.0, "surface_area": 14800.0, "principal_moments": [20600000.0, 26999999.999999996, 37000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 49.02, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 28.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 57.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009417 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 49.02, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 28.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 57.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad5ca_2014", "family": "threaded", "tier": 1, "seed": 2468009418, "symmetry": "none", "op_count": 1, "ir_hash": "b13d4aff50a7678c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3140.0, "surface_area": 2010.0, "principal_moments": [47600.0, 314000.0, 314000.0], "n_faces": 200, "n_edges": 510, "n_vertices": 312}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 33.5, "min": 13.4, "max": 67.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009418 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 33.5, \"min\": 13.4, \"max\": 67.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad5cc_2016", "family": "revolved", "tier": 1, "seed": 2468009420, "symmetry": "none", "op_count": 1, "ir_hash": "a903ead60b2206ab", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 71300.0, "surface_area": 16100.0, "principal_moments": [21600000.0, 29899999.999999996, 29899999.999999996], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 45, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 67.2, "min": 20.2, "max": 201.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009420 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 67.2, \"min\": 20.2, \"max\": 201.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad5cd_2017", "family": "revolved", "tier": 1, "seed": 2468009421, "symmetry": "none", "op_count": 1, "ir_hash": "43852454d469e9c6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 250000.0, "surface_area": 43500.0, "principal_moments": [113000000.0, 425000000.0, 425000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 55, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 157.7, "min": 47.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009421 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 157.7, \"min\": 47.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad5ce_2018", "family": "gear", "tier": 0, "seed": 2468009422, "symmetry": "none", "op_count": 1, "ir_hash": "f43dbe39d6744598", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3140.0, "surface_area": 2230.0, "principal_moments": [184000.0, 184000.0, 357000.0], "n_faces": 146, "n_edges": 432, "n_vertices": 288}, "params": {"module": {"type": "float", "default": 1.25, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 24, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 4.5, "min": 1.8, "max": 11.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009422 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.25, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 24, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.8, \"max\": 11.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad5cf_2019", "family": "block", "tier": 1, "seed": 2468009423, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "bcb33ed13f65a768", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 518000.0, "surface_area": 53800.0, "principal_moments": [492000000.0, 593000000.0, 762000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 88.97, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 62.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009423 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 88.97, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 62.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5d0_2020", "family": "plate", "tier": 1, "seed": 2468009424, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "a465fe0a50c4a2dd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 46500.0, "surface_area": 12600.0, "principal_moments": [9710000.0, 27399999.999999996, 36000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 49.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 11.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009424 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 49.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 11.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad5d1_2021", "family": "compound", "tier": 2, "seed": 2468009425, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "937c6981bbb71c45", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 58600.0, "surface_area": 17800.0, "principal_moments": [35800000.0, 44300000.0, 49299999.99999999], "n_faces": 27, "n_edges": 72, "n_vertices": 48}, "params": {"base_w": {"type": "float", "default": 80, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 69.2, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 8.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 10.1, "min": 5.0, "max": 17.3, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 72.4, "min": 21.7, "max": 217.2, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 13.0, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009425 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 80, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 69.2, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 10.1, \"min\": 5.0, \"max\": 17.3, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 72.4, \"min\": 21.7, \"max\": 217.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 13.0, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_w\"], p[\"base_d\"]) * 0.06742683223491237)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad5d2_2022", "family": "gear", "tier": 1, "seed": 2468009426, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "5a1a15e912345d35", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 180000.0, "surface_area": 32200.0, "principal_moments": [140000000.0, 140000000.0, 268000000.0], "n_faces": 165, "n_edges": 489, "n_vertices": 326}, "params": {"module": {"type": "float", "default": 4.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 27, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 20.2, "min": 8.1, "max": 50.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 13.4, "min": 2.0, "max": 58.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009426 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 27, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 20.2, \"min\": 8.1, \"max\": 50.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 13.4, \"min\": 2.0, \"max\": 58.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad5d3_2023", "family": "threaded", "tier": 2, "seed": 2468009427, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "60bfda9b7e08d467", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1600.0, "surface_area": 1640.0, "principal_moments": [10500.0, 225000.0, 225000.0], "n_faces": 230, "n_edges": 588, "n_vertices": 360}, "params": {"thread_size": {"type": "enum", "default": "5/16", "choices": ["1/4", "5/16", "3/8", "1/2", "5/8", "3/4", "7/8", "1", "1 1/4", "1 1/2"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 41.0, "min": 16.4, "max": 82.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009427 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '5/16', \"choices\": ['1/4', '5/16', '3/8', '1/2', '5/8', '3/4', '7/8', '1', '1 1/4', '1 1/2'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 41.0, \"min\": 16.4, \"max\": 82.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.AcmeThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5d4_2024", "family": "plate", "tier": 2, "seed": 2468009428, "symmetry": "none", "op_count": 3, "ir_hash": "5753c8b2a3dec7c4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5180.0, "surface_area": 2730.0, "principal_moments": [189000.0, 828000.0, 986000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 43.77, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 20.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.3, "min": 2.0, "max": 2.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009428 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 43.77, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 20.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.3, \"min\": 2.0, \"max\": 2.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(17.5, 16.3, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.11041845971997011)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5d5_2025", "family": "bracket", "tier": 1, "seed": 2468009429, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "891ccf6e5ab12afc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38300.0, "surface_area": 14900.0, "principal_moments": [15899999.999999998, 23299999.999999996, 30399999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 62.21, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 50.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 60.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009429 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 62.21, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 50.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 60.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad5d7_2027", "family": "ribbed", "tier": 2, "seed": 2468009431, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "162b60bdabc0612c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 48700.0, "surface_area": 21400.0, "principal_moments": [14599999.999999998, 24899999.999999996, 34600000.0], "n_faces": 54, "n_edges": 148, "n_vertices": 92}, "params": {"base_w": {"type": "float", "default": 75, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 51.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 17.4, "min": 7.0, "max": 34.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.5, "min": 1.0, "max": 8.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 11.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009431 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 75, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 51.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 17.4, \"min\": 7.0, \"max\": 34.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 1.0, \"max\": 8.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 11.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5d8_2028", "family": "bracket", "tier": 3, "seed": 2468009432, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "a7745db357aebc82", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28900.0, "surface_area": 11700.0, "principal_moments": [5160000.0, 20200000.0, 22700000.0], "n_faces": 22, "n_edges": 62, "n_vertices": 40}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 33.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 48.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 8.2, "min": 3.0, "max": 18.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009432 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 33.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 48.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 8.2, \"min\": 3.0, \"max\": 18.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad5d9_2029", "family": "block", "tier": 1, "seed": 2468009433, "symmetry": "none", "op_count": 2, "ir_hash": "08b6aa359cc7e0ba", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12300.0, "surface_area": 5520.0, "principal_moments": [812000.0, 1470000.0, 1610000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 22.41, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 19.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 33.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 5.6, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009433 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 22.41, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 19.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 33.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 5.6, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad5da_2030", "family": "gear", "tier": 1, "seed": 2468009434, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "dae031703dea2162", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24000.0, "surface_area": 8700.0, "principal_moments": [5370000.0, 5370000.0, 10300000.0], "n_faces": 117, "n_edges": 345, "n_vertices": 230}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 19, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 10.0, "min": 4.0, "max": 25.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 11.3, "min": 2.0, "max": 29.7, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009434 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 19, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 25.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 11.3, \"min\": 2.0, \"max\": 29.7, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad5db_2031", "family": "enclosure", "tier": 2, "seed": 2468009435, "symmetry": "none", "op_count": 3, "ir_hash": "b8b78a4129f4e6bc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5340.0, "surface_area": 4080.0, "principal_moments": [308000.0, 596000.0, 642000.0], "n_faces": 19, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 30.0, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 15.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 19.1, "min": 7.6, "max": 38.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.7, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009435 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 30.0, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 15.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 19.1, \"min\": 7.6, \"max\": 38.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.7, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad5dc_2032", "family": "revolved", "tier": 2, "seed": 2468009436, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f7d7ca21e7dd834d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 302.0, "surface_area": 355.0, "principal_moments": [3340.0, 3340.0, 6090.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 11.91, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 4.5, "min": 1.3, "max": 13.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009436 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 11.91, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.3, \"max\": 13.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 3.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z or 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5e2_2038", "family": "bracket", "tier": 1, "seed": 2468009442, "symmetry": "none", "op_count": 1, "ir_hash": "713912298d9281a9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20600.0, "surface_area": 7710.0, "principal_moments": [3890000.0, 16399999.999999998, 18900000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 57.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009442 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 57.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad5e5_2041", "family": "enclosure", "tier": 1, "seed": 2468009445, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "787ac3015624a026", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 52900.0, "surface_area": 51100.0, "principal_moments": [43600000.0, 92599999.99999999, 101000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 110, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 44.7, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 69.5, "min": 27.8, "max": 139.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.1, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009445 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 110, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 44.7, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 69.5, \"min\": 27.8, \"max\": 139.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.1, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5e6_2042", "family": "bracket", "tier": 1, "seed": 2468009446, "symmetry": "none", "op_count": 1, "ir_hash": "1847b10ba824dfab", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33400.0, "surface_area": 13200.0, "principal_moments": [11599999.999999998, 13699999.999999998, 22300000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 36.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 60.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 33.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009446 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 36.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 60.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 33.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5e7_2043", "family": "plate", "tier": 0, "seed": 2468009447, "symmetry": "radial", "op_count": 1, "ir_hash": "5470c5b2d20da19b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1700.0, "surface_area": 1070.0, "principal_moments": [29700.0, 92100.0, 115000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 25, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 13.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009447 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 13.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad5e8_2044", "family": "compound", "tier": 1, "seed": 2468009448, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "8f9bf612e58150a2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31300.0, "surface_area": 8000.0, "principal_moments": [4270000.0, 6090000.0, 7050000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 40, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 31.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 25.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 20.9, "min": 8.4, "max": 33.4, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 14.7, "min": 5.9, "max": 23.5, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.2, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009448 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 31.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 25.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 20.9, \"min\": 8.4, \"max\": 33.4, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 14.7, \"min\": 5.9, \"max\": 23.5, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.2, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad5ea_2046", "family": "flanged", "tier": 1, "seed": 2468009450, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "99c4f61d08a933c3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29600.0, "surface_area": 12000.0, "principal_moments": [6180000.0, 8450000.0, 8450000.0], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 33.0, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 42.8, "min": 12.8, "max": 107.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 11.2, "min": 2.0, "max": 23.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 55.7, "min": 42.9, "max": 99.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.2, "min": 1.3, "max": 17.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 16.7, "min": 11.1, "max": 25.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009450 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 33.0, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 42.8, \"min\": 12.8, \"max\": 107.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 11.2, \"min\": 2.0, \"max\": 23.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 55.7, \"min\": 42.9, \"max\": 99.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.2, \"min\": 1.3, \"max\": 17.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 16.7, \"min\": 11.1, \"max\": 25.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5eb_2047", "family": "bracket", "tier": 2, "seed": 2468009451, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "1ab4c9985d0f2370", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 63400.0, "surface_area": 24400.0, "principal_moments": [28099999.999999996, 138000000.0, 143000000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 47.1, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 56.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 5.7, "min": 3.0, "max": 18.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009451 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 47.1, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 56.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.7, \"min\": 3.0, \"max\": 18.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad5ec_2048", "family": "enclosure", "tier": 2, "seed": 2468009452, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "65b07bec5faeb593", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 99500.0, "surface_area": 34400.0, "principal_moments": [54999999.99999999, 83200000.0, 101000000.0], "n_faces": 42, "n_edges": 124, "n_vertices": 85}, "params": {"enc_w": {"type": "float", "default": 82.73, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 40.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 57.5, "min": 23.0, "max": 115.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.7, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009452 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 82.73, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 40.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 57.5, \"min\": 23.0, \"max\": 115.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.05416104534114037)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad5ed_2049", "family": "ribbed", "tier": 1, "seed": 2468009453, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "8da7f0ff91a7aad3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18300.0, "surface_area": 7300.0, "principal_moments": [2030000.0, 4650000.0, 5460000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 49.26, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 25.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 11.2, "min": 4.5, "max": 22.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.4, "min": 1.0, "max": 11.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009453 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 49.26, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 25.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 11.2, \"min\": 4.5, \"max\": 22.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.4, \"min\": 1.0, \"max\": 11.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad5ee_2050", "family": "ribbed", "tier": 1, "seed": 2468009454, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "72490fe398bc047a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26700.0, "surface_area": 17500.0, "principal_moments": [7310000.0, 11399999.999999998, 16800000.0], "n_faces": 46, "n_edges": 112, "n_vertices": 68}, "params": {"base_w": {"type": "float", "default": 69.2, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 50.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.4, "min": 6.6, "max": 32.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.6, "min": 1.0, "max": 9.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009454 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 69.2, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 50.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.4, \"min\": 6.6, \"max\": 32.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.6, \"min\": 1.0, \"max\": 9.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad5ef_2051", "family": "ribbed", "tier": 1, "seed": 2468009455, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "37837eaad7fa4afe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35700.0, "surface_area": 13300.0, "principal_moments": [9760000.0, 11300000.0, 19700000.0], "n_faces": 31, "n_edges": 72, "n_vertices": 48}, "params": {"base_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 57.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 8.7, "min": 3.5, "max": 17.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.9, "min": 1.0, "max": 9.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009455 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 57.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 8.7, \"min\": 3.5, \"max\": 17.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.9, \"min\": 1.0, \"max\": 9.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad5f0_2052", "family": "ribbed", "tier": 1, "seed": 2468009456, "symmetry": "none", "op_count": 2, "ir_hash": "3bce7632c2515b3b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 52000.0, "surface_area": 16500.0, "principal_moments": [13199999.999999998, 35400000.0, 46699999.99999999], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 88.74, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 48.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 7.1, "min": 2.8, "max": 14.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.3, "min": 1.0, "max": 10.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009456 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 88.74, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 48.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 7.1, \"min\": 2.8, \"max\": 14.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.3, \"min\": 1.0, \"max\": 10.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5f1_2053", "family": "plate", "tier": 0, "seed": 2468009457, "symmetry": "none", "op_count": 1, "ir_hash": "4983ebbf586dc732", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9130.0, "surface_area": 5330.0, "principal_moments": [1720000.0, 1790000.0, 3480000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 48.28, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 47.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009457 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 48.28, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 47.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad5f3_2055", "family": "flanged", "tier": 2, "seed": 2468009459, "symmetry": "none", "op_count": 2, "ir_hash": "beae0a3d1ab9a457", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 50000.0, "surface_area": 16700.0, "principal_moments": [17300000.0, 19900000.0, 19900000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"outer_d": {"type": "float", "default": 35, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 47.0, "min": 14.1, "max": 117.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 13.1, "min": 2.0, "max": 24.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 77.5, "min": 45.5, "max": 105.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.3, "min": 1.0, "max": 18.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 23.2, "min": 15.5, "max": 34.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009459 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 47.0, \"min\": 14.1, \"max\": 117.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 13.1, \"min\": 2.0, \"max\": 24.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 77.5, \"min\": 45.5, \"max\": 105.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.3, \"min\": 1.0, \"max\": 18.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 23.2, \"min\": 15.5, \"max\": 34.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad5f4_2056", "family": "compound", "tier": 1, "seed": 2468009460, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "3b6b6453e2e1b909", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 419000.0, "surface_area": 37700.0, "principal_moments": [348000000.0, 411000000.0, 473000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 63.75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 87.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 76.2, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 9.1, "min": 4.5, "max": 22.3, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 14.4, "min": 4.7, "max": 63.0, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 9.3, "min": 2.0, "max": 11.3, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009460 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 63.75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 87.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 76.2, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 9.1, \"min\": 4.5, \"max\": 22.3, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 14.4, \"min\": 4.7, \"max\": 63.0, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 9.3, \"min\": 2.0, \"max\": 11.3, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"spig_sides\"], p[\"spig_r\"] * 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5f5_2057", "family": "bracket", "tier": 1, "seed": 2468009461, "symmetry": "none", "op_count": 1, "ir_hash": "e38bf6ce2dd303a2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15200.0, "surface_area": 11500.0, "principal_moments": [3490000.0, 22799999.999999996, 24399999.999999996], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 66.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 27.39, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 55.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009461 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 66.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 27.39, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 55.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5f6_2058", "family": "bracket", "tier": 1, "seed": 2468009462, "symmetry": "none", "op_count": 1, "ir_hash": "faf9917a11e59785", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13100.0, "surface_area": 6220.0, "principal_moments": [2020000.0, 8040000.0, 9150000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 68.86, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 49.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009462 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 68.86, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 49.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5f9_2061", "family": "plate", "tier": 3, "seed": 2468009465, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "4a6ca5c8b125b40e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12400.0, "surface_area": 6950.0, "principal_moments": [1310000.0, 4750000.0, 5900000.0], "n_faces": 29, "n_edges": 78, "n_vertices": 52}, "params": {"plate_w": {"type": "float", "default": 77.89, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 39.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "cb_d": {"type": "float", "default": 12.8, "min": 9.6, "max": 19.2, "step": 0.5, "group": "Holes", "label": "Counterbore diameter (mm)"}, "cb_depth": {"type": "float", "default": 5.1, "min": 2.5, "max": 10.2, "step": 0.5, "group": "Holes", "label": "Counterbore depth (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "boss_d": {"type": "float", "default": 19.6, "min": 9.8, "max": 39.2, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 7.6, "min": 3.0, "max": 19.0, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.7, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009465 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 77.89, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 39.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"cb_d\": {\"type\": 'float', \"default\": 12.8, \"min\": 9.6, \"max\": 19.2, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Counterbore diameter (mm)'},\n \"cb_depth\": {\"type\": 'float', \"default\": 5.1, \"min\": 2.5, \"max\": 10.2, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Counterbore depth (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"boss_d\": {\"type\": 'float', \"default\": 19.6, \"min\": 9.8, \"max\": 39.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 7.6, \"min\": 3.0, \"max\": 19.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.7, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cboreHole(p[\"hole_d\"], p[\"cb_d\"], p[\"cb_depth\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.0554169032092496)\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5fa_2062", "family": "plate", "tier": 1, "seed": 2468009466, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "2258c78bc10de6e7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37400.0, "surface_area": 14800.0, "principal_moments": [13799999.999999998, 27999999.999999996, 41600000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 66.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009466 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 66.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad5fb_2063", "family": "revolved", "tier": 0, "seed": 2468009467, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "9a6fa493cdce5224", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19700.0, "surface_area": 6730.0, "principal_moments": [2650000.0, 3360000.0, 3360000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 30, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 41.7, "min": 12.5, "max": 125.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009467 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 41.7, \"min\": 12.5, \"max\": 125.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5fc_2064", "family": "bracket", "tier": 1, "seed": 2468009468, "symmetry": "none", "op_count": 1, "ir_hash": "7368c723fbd38db8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9820.0, "surface_area": 7360.0, "principal_moments": [1950000.0, 4020000.0, 4350000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 46.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 37.22, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009468 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 46.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 37.22, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad5ff_2067", "family": "compound", "tier": 1, "seed": 2468009471, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "f114a5606d80ab33", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 50000.0, "surface_area": 9060.0, "principal_moments": [10800000.0, 11200000.0, 16900000.0], "n_faces": 13, "n_edges": 26, "n_vertices": 17}, "params": {"block_w": {"type": "float", "default": 44.34, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 45.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 24.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 5.3, "min": 2.1, "max": 11.2, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 4.0, "min": 1.3, "max": 15.9, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 2.7, "min": 2.0, "max": 3.8, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009471 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 44.34, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 45.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 24.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.1, \"max\": 11.2, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.3, \"max\": 15.9, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 2.7, \"min\": 2.0, \"max\": 3.8, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad601_2069", "family": "bracket", "tier": 2, "seed": 2468009473, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "9c1ee41f68351ddf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29600.0, "surface_area": 16300.0, "principal_moments": [10300000.0, 21900000.0, 27899999.999999996], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 40.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 57.98, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 37.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 5.4, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009473 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 40.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 57.98, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 37.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.4, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad602_2070", "family": "block", "tier": 2, "seed": 2468009474, "symmetry": "radial", "op_count": 3, "ir_hash": "285618b3ac8a5f5e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 240000.0, "surface_area": 25700.0, "principal_moments": [140000000.0, 162000000.0, 232000000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 80, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 41.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 72.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.0, "min": 16.0, "max": 36.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009474 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 41.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 72.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.0, \"min\": 16.0, \"max\": 36.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.11012289518519411)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad603_2071", "family": "compound", "tier": 2, "seed": 2468009475, "symmetry": "none", "op_count": 3, "ir_hash": "7a4aefe54b1350a2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 385000.0, "surface_area": 39400.0, "principal_moments": [285000000.0, 419000000.0, 422000000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 67.17, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 85.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 66.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 20.3, "min": 8.1, "max": 46.5, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 47.9, "min": 6.1, "max": 81.2, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 11.3, "min": 2.0, "max": 14.6, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009475 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 67.17, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 85.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 66.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 20.3, \"min\": 8.1, \"max\": 46.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 47.9, \"min\": 6.1, \"max\": 81.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 11.3, \"min\": 2.0, \"max\": 14.6, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad604_2072", "family": "flanged", "tier": 3, "seed": 2468009476, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "a9d019f1fd787549", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 160000.0, "surface_area": 34100.0, "principal_moments": [112000000.0, 143000000.0, 143000000.0], "n_faces": 44, "n_edges": 114, "n_vertices": 67}, "params": {"outer_d": {"type": "float", "default": 55, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 74.4, "min": 22.3, "max": 186.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 28.9, "min": 2.0, "max": 38.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 91.5, "min": 71.5, "max": 165.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.0, "min": 2.7, "max": 29.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 27.4, "min": 18.3, "max": 41.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009476 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 74.4, \"min\": 22.3, \"max\": 186.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 28.9, \"min\": 2.0, \"max\": 38.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 91.5, \"min\": 71.5, \"max\": 165.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.0, \"min\": 2.7, \"max\": 29.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 27.4, \"min\": 18.3, \"max\": 41.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad607_2075", "family": "bracket", "tier": 1, "seed": 2468009479, "symmetry": "none", "op_count": 1, "ir_hash": "f1453aba4894da3e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19900.0, "surface_area": 14600.0, "principal_moments": [8450000.0, 26099999.999999996, 29199999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 81.06, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 89.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009479 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 81.06, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 89.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.0876075388291562)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad60b_2079", "family": "revolved", "tier": 2, "seed": 2468009483, "symmetry": "none", "op_count": 1, "ir_hash": "39647c8d40904ae0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28200.0, "surface_area": 10700.0, "principal_moments": [2650000.0, 13799999.999999998, 13799999.999999998], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 25, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 86.3, "min": 25.9, "max": 258.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009483 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 86.3, \"min\": 25.9, \"max\": 258.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad60c_2080", "family": "block", "tier": 1, "seed": 2468009484, "symmetry": "radial", "op_count": 2, "ir_hash": "d0ff970f15fa37b5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9080.0, "surface_area": 4590.0, "principal_moments": [590000.0, 1260000.0, 1460000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"block_w": {"type": "float", "default": 36.09, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 15.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 22.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 10.8, "min": 7.2, "max": 16.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009484 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 36.09, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 15.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 22.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 10.8, \"min\": 7.2, \"max\": 16.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad60d_2081", "family": "compound", "tier": 2, "seed": 2468009485, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "dacf6f851f6c99cb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 225000.0, "surface_area": 24900.0, "principal_moments": [57799999.99999999, 441000000.0, 441000000.0], "n_faces": 12, "n_edges": 24, "n_vertices": 16}, "params": {"shaft_d": {"type": "float", "default": 50.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 76.2, "min": 30.5, "max": 152.4, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 35.3, "min": 17.6, "max": 45.0, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 66.3, "min": 19.9, "max": 165.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "head_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Head", "label": "Drive head sides"}, "head_r": {"type": "float", "default": 14.5, "min": 8.7, "max": 16.9, "step": 1.0, "group": "Head", "label": "Drive head circumradius (mm)"}, "head_len": {"type": "float", "default": 19.3, "min": 5.8, "max": 38.6, "step": 1.0, "group": "Head", "label": "Drive head length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009485 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 50.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 76.2, \"min\": 30.5, \"max\": 152.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 35.3, \"min\": 17.6, \"max\": 45.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 66.3, \"min\": 19.9, \"max\": 165.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"head_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Head', \"label\": 'Drive head sides'},\n \"head_r\": {\"type\": 'float', \"default\": 14.5, \"min\": 8.7, \"max\": 16.9, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head circumradius (mm)'},\n \"head_len\": {\"type\": 'float', \"default\": 19.3, \"min\": 5.8, \"max\": 38.6, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"head_sides\"], p[\"head_r\"] * 2).extrude(p[\"head_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad60e_2082", "family": "block", "tier": 1, "seed": 2468009486, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "7e8dfdfd12d73acd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 491000.0, "surface_area": 43900.0, "principal_moments": [442000000.0, 557000000.0, 571000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 72.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 91.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009486 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 72.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 91.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad60f_2083", "family": "plate", "tier": 0, "seed": 2468009487, "symmetry": "none", "op_count": 1, "ir_hash": "31b257c1f26011a8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1220.0, "surface_area": 770.0, "principal_moments": [13800.0, 45600.0, 52100.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 20.32, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 10.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009487 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 20.32, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad610_2084", "family": "enclosure", "tier": 1, "seed": 2468009488, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "43ba3679654d408a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24500.0, "surface_area": 21800.0, "principal_moments": [9630000.0, 14899999.999999998, 18700000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 65, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 27.4, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 52.9, "min": 21.2, "max": 105.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009488 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 65, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 27.4, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 52.9, \"min\": 21.2, \"max\": 105.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad611_2085", "family": "revolved", "tier": 1, "seed": 2468009489, "symmetry": "radial", "op_count": 1, "ir_hash": "edb930c118eb9987", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 743000.0, "surface_area": 97200.0, "principal_moments": [577000000.0, 3600000000.0, 3600000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 71.95, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 274.0, "min": 82.2, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009489 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 71.95, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 274.0, \"min\": 82.2, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad612_2086", "family": "plate", "tier": 2, "seed": 2468009490, "symmetry": "radial", "op_count": 3, "ir_hash": "e5a1b177708d458e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17100.0, "surface_area": 5570.0, "principal_moments": [1200000.0, 6220000.0, 7130000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"plate_w": {"type": "float", "default": 65.41, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 26.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 19.6, "min": 13.1, "max": 29.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009490 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 65.41, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 26.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 19.6, \"min\": 13.1, \"max\": 29.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.067420996913379)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad613_2087", "family": "threaded", "tier": 0, "seed": 2468009491, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "31da31f4b1609d1b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3980.0, "surface_area": 2510.0, "principal_moments": [60500.0, 621000.0, 621000.0], "n_faces": 250, "n_edges": 640, "n_vertices": 392}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 42.4, "min": 17.0, "max": 84.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009491 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 42.4, \"min\": 17.0, \"max\": 84.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad614_2088", "family": "plate", "tier": 2, "seed": 2468009492, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "1642bae03500ed0f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14300.0, "surface_area": 4690.0, "principal_moments": [772000.0, 3620000.0, 4050000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 54.2, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 22.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009492 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 54.2, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 22.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.04494843891283349)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad615_2089", "family": "compound", "tier": 2, "seed": 2468009493, "symmetry": "mirror_x", "op_count": 5, "ir_hash": "3bd029fb7c720f64", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 264000.0, "surface_area": 31300.0, "principal_moments": [160000000.0, 198000000.0, 215000000.0], "n_faces": 21, "n_edges": 49, "n_vertices": 31}, "params": {"block_w": {"type": "float", "default": 75, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 56.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 63.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 12.2, "min": 4.9, "max": 25.6, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 10.3, "min": 3.0, "max": 36.6, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 7.2, "min": 2.0, "max": 8.8, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 12.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009493 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 56.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 63.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 12.2, \"min\": 4.9, \"max\": 25.6, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 10.3, \"min\": 3.0, \"max\": 36.6, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 7.2, \"min\": 2.0, \"max\": 8.8, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 12.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad616_2090", "family": "bracket", "tier": 1, "seed": 2468009494, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "bdd59e5b41ca0d39", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11000.0, "surface_area": 6720.0, "principal_moments": [1910000.0, 6600000.0, 7340000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 50.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009494 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 50.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.04769239447266694)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad618_2092", "family": "plate", "tier": 2, "seed": 2468009496, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "9ac1fb9cf6bccd83", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34300.0, "surface_area": 10200.0, "principal_moments": [3880000.0, 27999999.999999996, 31399999.999999996], "n_faces": 18, "n_edges": 44, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 99.48, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 35.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 8.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "cs_angle": {"type": "float", "default": 82.0, "min": 60.0, "max": 120.0, "step": 15.0, "group": "Holes", "label": "Countersink angle (\u00b0)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009496 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 99.48, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 35.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 8.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"cs_angle\": {\"type\": 'float', \"default\": 82.0, \"min\": 60.0, \"max\": 120.0, \"step\": 15.0, \"group\": 'Holes', \"label\": 'Countersink angle (\u00b0)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cskHole(p[\"hole_d\"], p[\"hole_d\"] * 2, p[\"cs_angle\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.059551684522298795)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad619_2093", "family": "revolved", "tier": 2, "seed": 2468009497, "symmetry": "none", "op_count": 2, "ir_hash": "0c159d30cbd8e12b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12600.0, "surface_area": 5790.0, "principal_moments": [1250000.0, 2140000.0, 2140000.0], "n_faces": 11, "n_edges": 17, "n_vertices": 11}, "params": {"outer_d": {"type": "float", "default": 17.77, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 46.6, "min": 14.0, "max": 139.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 33.1, "min": 21.3, "max": 53.3, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.3, "min": 2.5, "max": 23.3, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "groove_depth": {"type": "float", "default": 0.68, "min": 0.27, "max": 2.04, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 3.9, "min": 1.56, "max": 11.7, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 31.3, "min": 7.0, "max": 39.6, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 1.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009497 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 17.77, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 46.6, \"min\": 14.0, \"max\": 139.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 33.1, \"min\": 21.3, \"max\": 53.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.3, \"min\": 2.5, \"max\": 23.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 0.68, \"min\": 0.27, \"max\": 2.04, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 3.9, \"min\": 1.56, \"max\": 11.7, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 31.3, \"min\": 7.0, \"max\": 39.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 1.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad61b_2095", "family": "block", "tier": 2, "seed": 2468009499, "symmetry": "radial", "op_count": 3, "ir_hash": "1aaaacb5799792fe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 78100.0, "surface_area": 29000.0, "principal_moments": [22000000.0, 57599999.99999999, 72600000.0], "n_faces": 25, "n_edges": 78, "n_vertices": 52}, "params": {"block_w": {"type": "float", "default": 50.15, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 22.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 94.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 15.0, "min": 10.0, "max": 22.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "pocket_w": {"type": "float", "default": 23.0, "min": 11.5, "max": 40.1, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 11.9, "min": 6.0, "max": 18.2, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 32.3, "min": 12.9, "max": 80.1, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009499 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50.15, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 22.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 94.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 15.0, \"min\": 10.0, \"max\": 22.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"pocket_w\": {\"type\": 'float', \"default\": 23.0, \"min\": 11.5, \"max\": 40.1, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 11.9, \"min\": 6.0, \"max\": 18.2, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 32.3, \"min\": 12.9, \"max\": 80.1, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad61c_2096", "family": "gear", "tier": 2, "seed": 2468009500, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "6f9b4e495c1e369d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4840.0, "surface_area": 2740.0, "principal_moments": [283000.0, 283000.0, 509000.0], "n_faces": 115, "n_edges": 339, "n_vertices": 226}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 14, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 8.4, "min": 3.4, "max": 21.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": -0.01, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.33, "min": 0.0, "max": 1.0, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 5.1, "min": 2.0, "max": 13.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009500 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 14, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.4, \"max\": 21.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.01, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.33, \"min\": 0.0, \"max\": 1.0, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 5.1, \"min\": 2.0, \"max\": 13.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad61d_2097", "family": "flanged", "tier": 2, "seed": 2468009501, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "17cbfc3839d25546", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 106000.0, "surface_area": 25600.0, "principal_moments": [59699999.99999999, 59699999.99999999, 80700000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"outer_d": {"type": "float", "default": 46.97, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 44.3, "min": 13.3, "max": 110.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.7, "min": 2.0, "max": 32.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 96.8, "min": 61.1, "max": 140.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.9, "min": 2.4, "max": 17.7, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 29.0, "min": 19.4, "max": 43.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009501 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 46.97, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 44.3, \"min\": 13.3, \"max\": 110.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.7, \"min\": 2.0, \"max\": 32.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 96.8, \"min\": 61.1, \"max\": 140.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.9, \"min\": 2.4, \"max\": 17.7, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 29.0, \"min\": 19.4, \"max\": 43.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad61e_2098", "family": "plate", "tier": 2, "seed": 2468009502, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "ffcbbb1c8b6799b8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31700.0, "surface_area": 11000.0, "principal_moments": [4090000.0, 29399999.999999996, 33099999.999999996], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 106.98, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 39.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 8.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009502 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 106.98, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 39.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 8.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09757814017058278)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad61f_2099", "family": "bracket", "tier": 1, "seed": 2468009503, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "5d61b56ffd120dfc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9190.0, "surface_area": 7030.0, "principal_moments": [1770000.0, 5140000.0, 5650000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 54.78, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 56.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 28.52, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009503 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 54.78, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 56.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 28.52, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09069833352077086)\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad622_2102", "family": "block", "tier": 2, "seed": 2468009506, "symmetry": "none", "op_count": 3, "ir_hash": "8ec52789dda89897", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32100.0, "surface_area": 8780.0, "principal_moments": [4190000.0, 8020000.0, 10500000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 35.81, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 18.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 51.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009506 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35.81, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 18.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 51.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.08497559797499411)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad623_2103", "family": "plate", "tier": 0, "seed": 2468009507, "symmetry": "radial", "op_count": 1, "ir_hash": "312678736fea2b1b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33200.0, "surface_area": 8350.0, "principal_moments": [3380000.0, 20100000.0, 22700000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 84.4, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 32.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009507 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 84.4, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 32.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad624_2104", "family": "threaded", "tier": 1, "seed": 2468009508, "symmetry": "none", "op_count": 1, "ir_hash": "a0a934aea0ffb48b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4790.0, "surface_area": 3470.0, "principal_moments": [156000.0, 698000.0, 698000.0], "n_faces": 255, "n_edges": 695, "n_vertices": 442}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 39.5, "min": 15.8, "max": 79.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009508 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 39.5, \"min\": 15.8, \"max\": 79.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad626_2106", "family": "block", "tier": 2, "seed": 2468009510, "symmetry": "none", "op_count": 3, "ir_hash": "88d449cb6e99b55a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 64400.0, "surface_area": 15000.0, "principal_moments": [18100000.0, 23499999.999999996, 24599999.999999996], "n_faces": 22, "n_edges": 63, "n_vertices": 42}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 39.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 39.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "pocket_w": {"type": "float", "default": 27.8, "min": 13.9, "max": 40.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 17.5, "min": 8.8, "max": 31.4, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 23.2, "min": 9.3, "max": 33.6, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009510 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 39.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 39.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"pocket_w\": {\"type\": 'float', \"default\": 27.8, \"min\": 13.9, \"max\": 40.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 17.5, \"min\": 8.8, \"max\": 31.4, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 23.2, \"min\": 9.3, \"max\": 33.6, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 9.4\n _ssy = 7.8\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad628_2108", "family": "compound", "tier": 1, "seed": 2468009512, "symmetry": "none", "op_count": 3, "ir_hash": "b4ea39f0f2e15f88", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 619000.0, "surface_area": 52100.0, "principal_moments": [693000000.0, 781000000.0, 848000000.0], "n_faces": 13, "n_edges": 26, "n_vertices": 17}, "params": {"block_w": {"type": "float", "default": 86.32, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 90.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 78.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 24.0, "min": 9.6, "max": 35.3, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 25.6, "min": 6.0, "max": 72.0, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 11.6, "min": 2.0, "max": 17.3, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009512 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 86.32, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 90.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 78.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 24.0, \"min\": 9.6, \"max\": 35.3, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 25.6, \"min\": 6.0, \"max\": 72.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 11.6, \"min\": 2.0, \"max\": 17.3, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad629_2109", "family": "block", "tier": 1, "seed": 2468009513, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f30da912eaed23b9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 157000.0, "surface_area": 24400.0, "principal_moments": [56099999.99999999, 139000000.0, 178000000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 60, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 26.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.5, "min": 2.0, "max": 2.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009513 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 60, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 26.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.5, \"min\": 2.0, \"max\": 2.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 22.5\n _ssy = 22.2\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad62a_2110", "family": "profiled", "tier": 0, "seed": 2468009514, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "307c0d196c869b2f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14400.0, "surface_area": 4500.0, "principal_moments": [506000.0, 7900000.0, 8190000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 20.0, "min": 10.0, "max": 40.0, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 10, "min": 5.0, "max": 20.0, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 80.6, "min": 24.2, "max": 241.8, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009514 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 20.0, \"min\": 10.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 10, \"min\": 5.0, \"max\": 20.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 80.6, \"min\": 24.2, \"max\": 241.8, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad62b_2111", "family": "compound", "tier": 3, "seed": 2468009515, "symmetry": "none", "op_count": 2, "ir_hash": "0cc9bf2b9551d435", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34400.0, "surface_area": 9550.0, "principal_moments": [8040000.0, 8130000.0, 10500000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"base_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 30.0, "min": 18.0, "max": 48.0, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 13.2, "min": 5.3, "max": 33.0, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 22.8, "min": 11.4, "max": 38.8, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 24.8, "min": 7.4, "max": 62.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 11.5, "min": 2.0, "max": 16.4, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009515 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 30.0, \"min\": 18.0, \"max\": 48.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 13.2, \"min\": 5.3, \"max\": 33.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 22.8, \"min\": 11.4, \"max\": 38.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 24.8, \"min\": 7.4, \"max\": 62.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 11.5, \"min\": 2.0, \"max\": 16.4, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad62d_2113", "family": "plate", "tier": 1, "seed": 2468009517, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "342a77fdf0c6a381", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4920.0, "surface_area": 2670.0, "principal_moments": [142000.0, 934000.0, 1050000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 47.83, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 17.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009517 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 47.83, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 17.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad62e_2114", "family": "flanged", "tier": 2, "seed": 2468009518, "symmetry": "none", "op_count": 2, "ir_hash": "b884e402b69cae99", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 120000.0, "surface_area": 26000.0, "principal_moments": [62899999.99999999, 82200000.0, 82200000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 45, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 65.0, "min": 19.5, "max": 162.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.0, "min": 2.0, "max": 31.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 89.3, "min": 58.5, "max": 135.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.5, "min": 1.9, "max": 26.0, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 26.8, "min": 17.9, "max": 40.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009518 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 65.0, \"min\": 19.5, \"max\": 162.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 2.0, \"max\": 31.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 89.3, \"min\": 58.5, \"max\": 135.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.5, \"min\": 1.9, \"max\": 26.0, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 26.8, \"min\": 17.9, \"max\": 40.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad62f_2115", "family": "block", "tier": 1, "seed": 2468009519, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "ec0dbab7f21b629f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4880.0, "surface_area": 2840.0, "principal_moments": [214000.0, 275000.0, 396000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 24.49, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 11.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 20.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.8, "min": 2.0, "max": 3.2, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009519 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 24.49, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 11.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 20.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.8, \"min\": 2.0, \"max\": 3.2, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad630_2116", "family": "plate", "tier": 0, "seed": 2468009520, "symmetry": "none", "op_count": 1, "ir_hash": "a06dd6d504f19dcc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18400.0, "surface_area": 7590.0, "principal_moments": [2050000.0, 11100000.0, 13099999.999999998], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 36.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009520 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 36.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad631_2117", "family": "bracket", "tier": 3, "seed": 2468009521, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "487d3189addd25dd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13800.0, "surface_area": 7810.0, "principal_moments": [3210000.0, 13599999.999999998, 16399999.999999998], "n_faces": 26, "n_edges": 60, "n_vertices": 40}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 49.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 15.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 6.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 6.0, "min": 2.5, "max": 7.5, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009521 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 49.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 15.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 6.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.5, \"max\": 7.5, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad632_2118", "family": "plate", "tier": 1, "seed": 2468009522, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "57736ad49ade27e7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9280.0, "surface_area": 4040.0, "principal_moments": [360000.0, 2770000.0, 3030000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 20.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009522 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 20.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad633_2119", "family": "revolved", "tier": 0, "seed": 2468009523, "symmetry": "none", "op_count": 1, "ir_hash": "3d775b626af984fb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 52600.0, "surface_area": 13300.0, "principal_moments": [12599999.999999998, 18700000.0, 18700000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 39.95, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 63.0, "min": 18.9, "max": 189.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009523 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 39.95, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 63.0, \"min\": 18.9, \"max\": 189.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad634_2120", "family": "enclosure", "tier": 1, "seed": 2468009524, "symmetry": "none", "op_count": 2, "ir_hash": "da5894e875f40266", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 135000.0, "surface_area": 64200.0, "principal_moments": [168000000.0, 242000000.0, 284000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 105, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 55.7, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 88.4, "min": 35.4, "max": 176.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009524 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 105, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 55.7, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 88.4, \"min\": 35.4, \"max\": 176.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad635_2121", "family": "plate", "tier": 1, "seed": 2468009525, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "eee443eac9400519", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2710.0, "surface_area": 1850.0, "principal_moments": [104000.0, 173000.0, 266000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 27.92, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 21.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009525 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 27.92, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 21.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad636_2122", "family": "gear", "tier": 1, "seed": 2468009526, "symmetry": "none", "op_count": 1, "ir_hash": "8b72b0d79e45660c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21900.0, "surface_area": 8130.0, "principal_moments": [4460000.0, 4460000.0, 8610000.0], "n_faces": 225, "n_edges": 669, "n_vertices": 446}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 37, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 9.3, "min": 3.7, "max": 23.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 7.7, "min": 2.0, "max": 31.0, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009526 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 37, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 9.3, \"min\": 3.7, \"max\": 23.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 7.7, \"min\": 2.0, \"max\": 31.0, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad637_2123", "family": "compound", "tier": 1, "seed": 2468009527, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "c42da321ef644b31", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37400.0, "surface_area": 8700.0, "principal_moments": [7020000.0, 8220000.0, 8220000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 38.44, "min": 19.2, "max": 69.2, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 32.2, "min": 12.9, "max": 64.4, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 18.0, "min": 9.0, "max": 34.6, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 17.6, "min": 5.3, "max": 44.0, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 10.7, "min": 2.0, "max": 13.0, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009527 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 38.44, \"min\": 19.2, \"max\": 69.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 32.2, \"min\": 12.9, \"max\": 64.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 18.0, \"min\": 9.0, \"max\": 34.6, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 17.6, \"min\": 5.3, \"max\": 44.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 10.7, \"min\": 2.0, \"max\": 13.0, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad638_2124", "family": "profiled", "tier": 2, "seed": 2468009528, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "293085fa0fc34f9b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 297000.0, "surface_area": 39900.0, "principal_moments": [75300000.0, 1980000000.0, 2040000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 55.24, "min": 27.6, "max": 110.5, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 20.78, "min": 10.4, "max": 41.6, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 281.9, "min": 84.6, "max": 845.7, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009528 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 55.24, \"min\": 27.6, \"max\": 110.5, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 20.78, \"min\": 10.4, \"max\": 41.6, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 281.9, \"min\": 84.6, \"max\": 845.7, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad639_2125", "family": "gear", "tier": 0, "seed": 2468009529, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "efbe0cca61ed8b1f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7520.0, "surface_area": 3550.0, "principal_moments": [584000.0, 584000.0, 1080000.0], "n_faces": 164, "n_edges": 486, "n_vertices": 324}, "params": {"module": {"type": "float", "default": 1.25, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 27, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 8.5, "min": 3.4, "max": 21.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009529 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.25, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 27, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 8.5, \"min\": 3.4, \"max\": 21.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad63a_2126", "family": "bracket", "tier": 2, "seed": 2468009530, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "305bad6be526116b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14000.0, "surface_area": 8250.0, "principal_moments": [2650000.0, 6620000.0, 6720000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 45.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.5, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009530 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 45.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad63d_2129", "family": "profiled", "tier": 1, "seed": 2468009533, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "5677c0f50ffeb7aa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 228000.0, "surface_area": 26100.0, "principal_moments": [44500000.0, 679000000.0, 679000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"circ_r": {"type": "float", "default": 20.8, "min": 10.4, "max": 41.6, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 186.1, "min": 55.8, "max": 558.3, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009533 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 20.8, \"min\": 10.4, \"max\": 41.6, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 186.1, \"min\": 55.8, \"max\": 558.3, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad63e_2130", "family": "plate", "tier": 2, "seed": 2468009534, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "c639440514bf8268", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12500.0, "surface_area": 5020.0, "principal_moments": [861000.0, 3620000.0, 4350000.0], "n_faces": 18, "n_edges": 56, "n_vertices": 36}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 28.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "cs_angle": {"type": "float", "default": 82.0, "min": 60.0, "max": 120.0, "step": 15.0, "group": "Holes", "label": "Countersink angle (\u00b0)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009534 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 28.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"cs_angle\": {\"type\": 'float', \"default\": 82.0, \"min\": 60.0, \"max\": 120.0, \"step\": 15.0, \"group\": 'Holes', \"label\": 'Countersink angle (\u00b0)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cskHole(p[\"hole_d\"], p[\"hole_d\"] * 2, p[\"cs_angle\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.11474582638358499)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad63f_2131", "family": "gear", "tier": 2, "seed": 2468009535, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "10c03fe0289953ab", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5130.0, "surface_area": 2770.0, "principal_moments": [303000.0, 303000.0, 534000.0], "n_faces": 83, "n_edges": 243, "n_vertices": 162}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 10, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 9.2, "min": 3.7, "max": 23.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 21.2, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.13, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.55, "min": 0.0, "max": 1.25, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 4.5, "min": 2.0, "max": 11.2, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009535 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 10, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 9.2, \"min\": 3.7, \"max\": 23.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 21.2, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.13, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.55, \"min\": 0.0, \"max\": 1.25, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 4.5, \"min\": 2.0, \"max\": 11.2, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad640_2132", "family": "flanged", "tier": 2, "seed": 2468009536, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "1e97030867af7723", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26800.0, "surface_area": 10500.0, "principal_moments": [5740000.0, 5740000.0, 8350000.0], "n_faces": 29, "n_edges": 114, "n_vertices": 76}, "params": {"outer_d": {"type": "float", "default": 35, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 25.0, "min": 7.5, "max": 62.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 13.2, "min": 2.0, "max": 24.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 60.4, "min": 45.5, "max": 105.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.9, "min": 1.5, "max": 10.0, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 18.1, "min": 12.1, "max": 27.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009536 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 25.0, \"min\": 7.5, \"max\": 62.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 13.2, \"min\": 2.0, \"max\": 24.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 60.4, \"min\": 45.5, \"max\": 105.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.9, \"min\": 1.5, \"max\": 10.0, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 18.1, \"min\": 12.1, \"max\": 27.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad641_2133", "family": "plate", "tier": 2, "seed": 2468009537, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "a2fe1c256d6fb76d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 73100.0, "surface_area": 19200.0, "principal_moments": [35600000.0, 59299999.99999999, 93599999.99999999], "n_faces": 18, "n_edges": 44, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 100, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 77.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "cs_angle": {"type": "float", "default": 82.0, "min": 60.0, "max": 120.0, "step": 15.0, "group": "Holes", "label": "Countersink angle (\u00b0)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009537 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 100, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 77.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"cs_angle\": {\"type\": 'float', \"default\": 82.0, \"min\": 60.0, \"max\": 120.0, \"step\": 15.0, \"group\": 'Holes', \"label\": 'Countersink angle (\u00b0)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cskHole(p[\"hole_d\"], p[\"hole_d\"] * 2, p[\"cs_angle\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09858143420676191)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad642_2134", "family": "gear", "tier": 0, "seed": 2468009538, "symmetry": "none", "op_count": 1, "ir_hash": "92bce45aff47b774", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2730.0, "surface_area": 1890.0, "principal_moments": [122000.0, 122000.0, 232000.0], "n_faces": 158, "n_edges": 468, "n_vertices": 312}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 26, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.2, "min": 2.1, "max": 13.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009538 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 26, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.1, \"max\": 13.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad643_2135", "family": "enclosure", "tier": 2, "seed": 2468009539, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "9155695ec5033241", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6400.0, "surface_area": 4170.0, "principal_moments": [517000.0, 693000.0, 981000.0], "n_faces": 15, "n_edges": 48, "n_vertices": 32}, "params": {"enc_w": {"type": "float", "default": 30.0, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 24.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 14.3, "min": 5.7, "max": 28.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009539 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 30.0, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 24.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 14.3, \"min\": 5.7, \"max\": 28.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad644_2136", "family": "bracket", "tier": 3, "seed": 2468009540, "symmetry": "none", "op_count": 1, "ir_hash": "31708868f85dd1d7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 92100.0, "surface_area": 27700.0, "principal_moments": [68900000.0, 115000000.0, 138000000.0], "n_faces": 26, "n_edges": 60, "n_vertices": 40}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 71.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 54.91, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 10.2, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009540 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 71.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 54.91, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 10.2, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad645_2137", "family": "block", "tier": 1, "seed": 2468009541, "symmetry": "none", "op_count": 2, "ir_hash": "0e19fb699335e0f8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 96300.0, "surface_area": 16400.0, "principal_moments": [29899999.999999996, 40600000.0, 58799999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 27.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 65.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009541 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 27.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 65.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad646_2138", "family": "block", "tier": 1, "seed": 2468009542, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "fd44458a1e271768", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5720.0, "surface_area": 3090.0, "principal_moments": [223000.0, 553000.0, 695000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 19.89, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 9.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 32.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009542 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 19.89, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 9.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 32.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad647_2139", "family": "flanged", "tier": 1, "seed": 2468009543, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3da725b9e7efb293", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 148000.0, "surface_area": 35100.0, "principal_moments": [106000000.0, 136000000.0, 136000000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"outer_d": {"type": "float", "default": 50.43, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 74.4, "min": 22.3, "max": 186.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 25.2, "min": 2.0, "max": 35.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 103.5, "min": 65.6, "max": 151.3, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.9, "min": 1.8, "max": 29.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 31.0, "min": 20.7, "max": 46.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009543 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50.43, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 74.4, \"min\": 22.3, \"max\": 186.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 25.2, \"min\": 2.0, \"max\": 35.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 103.5, \"min\": 65.6, \"max\": 151.3, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.9, \"min\": 1.8, \"max\": 29.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 31.0, \"min\": 20.7, \"max\": 46.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad648_2140", "family": "bracket", "tier": 1, "seed": 2468009544, "symmetry": "none", "op_count": 1, "ir_hash": "9f0a3a216601341c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18000.0, "surface_area": 6770.0, "principal_moments": [2910000.0, 8870000.0, 10300000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 56.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 22.08, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 8.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009544 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 56.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 22.08, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 8.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.04417791290237853)\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad64a_2142", "family": "bracket", "tier": 1, "seed": 2468009546, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "59e1d36094f9d9ae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17200.0, "surface_area": 10100.0, "principal_moments": [4540000.0, 17400000.0, 19400000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 86.09, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 62.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009546 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 86.09, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 62.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad64c_2144", "family": "block", "tier": 1, "seed": 2468009548, "symmetry": "none", "op_count": 2, "ir_hash": "f15a76762b6c5ebf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 72800.0, "surface_area": 13600.0, "principal_moments": [21800000.0, 22000000.0, 36500000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 24.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 55.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009548 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 24.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 55.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad64d_2145", "family": "revolved", "tier": 0, "seed": 2468009549, "symmetry": "none", "op_count": 1, "ir_hash": "712c7fb9ce5afd49", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 120000.0, "surface_area": 28200.0, "principal_moments": [29199999.999999996, 158000000.0, 158000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 40.24, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 141.7, "min": 42.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009549 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40.24, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 141.7, \"min\": 42.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad64e_2146", "family": "bracket", "tier": 1, "seed": 2468009550, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "e5815ad884367d8a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7460.0, "surface_area": 5930.0, "principal_moments": [1480000.0, 5220000.0, 6200000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 67.48, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 61.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009550 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 67.48, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 61.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad651_2149", "family": "block", "tier": 1, "seed": 2468009553, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "81157e46251790c1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 105000.0, "surface_area": 22400.0, "principal_moments": [25499999.999999996, 89100000.0, 106000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 22.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 98.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 6.6, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009553 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 22.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 98.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 6.6, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad652_2150", "family": "compound", "tier": 1, "seed": 2468009554, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "6dd38bdd4e548b58", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 234000.0, "surface_area": 25900.0, "principal_moments": [117000000.0, 178000000.0, 190000000.0], "n_faces": 21, "n_edges": 51, "n_vertices": 34}, "params": {"block_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 56.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 51.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 7.7, "min": 3.9, "max": 11.7, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 9.3, "min": 3.1, "max": 37.4, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 7.3, "min": 2.0, "max": 9.0, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009554 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 56.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 51.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 7.7, \"min\": 3.9, \"max\": 11.7, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 9.3, \"min\": 3.1, \"max\": 37.4, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 7.3, \"min\": 2.0, \"max\": 9.0, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad653_2151", "family": "revolved", "tier": 1, "seed": 2468009555, "symmetry": "none", "op_count": 2, "ir_hash": "56b454f6268aae3b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28600.0, "surface_area": 9490.0, "principal_moments": [2290000.0, 18300000.0, 18300000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 23.14, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 85.4, "min": 25.6, "max": 256.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 10.3, "min": 2.0, "max": 16.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 1.3, "min": 0.1, "max": 3.9, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009555 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 23.14, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 85.4, \"min\": 25.6, \"max\": 256.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 10.3, \"min\": 2.0, \"max\": 16.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.3, \"min\": 0.1, \"max\": 3.9, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad655_2153", "family": "revolved", "tier": 0, "seed": 2468009557, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "1f4ea01137bafc05", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1920.0, "surface_area": 1490.0, "principal_moments": [47200.0, 80200.0, 80200.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 12.81, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 22.3, "min": 6.7, "max": 66.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009557 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 12.81, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 22.3, \"min\": 6.7, \"max\": 66.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad656_2154", "family": "profiled", "tier": 2, "seed": 2468009558, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "20324a4cedb86b6b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 82500.0, "surface_area": 13200.0, "principal_moments": [9590000.0, 95599999.99999999, 95599999.99999999], "n_faces": 7, "n_edges": 15, "n_vertices": 10}, "params": {"circ_r": {"type": "float", "default": 17.38, "min": 8.7, "max": 34.8, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 114.9, "min": 34.5, "max": 344.7, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009558 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 17.38, \"min\": 8.7, \"max\": 34.8, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 114.9, \"min\": 34.5, \"max\": 344.7, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad657_2155", "family": "compound", "tier": 1, "seed": 2468009559, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "00cbeb82e77b0115", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 124000.0, "surface_area": 18400.0, "principal_moments": [46899999.99999999, 55799999.99999999, 56799999.99999999], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 45, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 56.5, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 48.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 53.4, "min": 21.4, "max": 85.4, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 34.2, "min": 13.7, "max": 54.7, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 7.5, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009559 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 56.5, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 48.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 53.4, \"min\": 21.4, \"max\": 85.4, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 34.2, \"min\": 13.7, \"max\": 54.7, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 7.5, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .rect(p[\"tab_a\"], p[\"tab_b\"]).extrude(p[\"tab_t\"])\n )\n result = (\n result.faces('>X').workplane()\n .rect(p[\"tab_a\"] * 0.6, p[\"tab_b\"] * 0.6, forConstruction=True)\n .vertices().hole(p[\"tab_hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad658_2156", "family": "bracket", "tier": 3, "seed": 2468009560, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "e14ed6f9057da014", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7420.0, "surface_area": 4820.0, "principal_moments": [787000.0, 2690000.0, 3120000.0], "n_faces": 17, "n_edges": 55, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 53.07, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 45.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 17.72, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 7.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.1, "min": 2.0, "max": 8.9, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009560 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 53.07, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 45.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 17.72, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 7.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.1, \"min\": 2.0, \"max\": 8.9, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad659_2157", "family": "revolved", "tier": 1, "seed": 2468009561, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "0b377631cb65f443", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39100.0, "surface_area": 12000.0, "principal_moments": [7360000.0, 17300000.0, 17300000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 33.73, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 64.7, "min": 19.4, "max": 194.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 19.2, "min": 2.0, "max": 23.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009561 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 33.73, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 64.7, \"min\": 19.4, \"max\": 194.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 19.2, \"min\": 2.0, \"max\": 23.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad65a_2158", "family": "revolved", "tier": 0, "seed": 2468009562, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "6e9ca7f5412aa598", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 97300.0, "surface_area": 17900.0, "principal_moments": [42000000.0, 42000000.0, 61699999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 65, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 44.0, "min": 13.2, "max": 132.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009562 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 44.0, \"min\": 13.2, \"max\": 132.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad65b_2159", "family": "block", "tier": 1, "seed": 2468009563, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "eaf2c5e292a6ee6b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 144000.0, "surface_area": 20000.0, "principal_moments": [59299999.99999999, 71700000.0, 104000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 33.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 61.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009563 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 33.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 61.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad65c_2160", "family": "flanged", "tier": 1, "seed": 2468009564, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "200183ec63cb0a60", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 150000.0, "surface_area": 29900.0, "principal_moments": [97499999.99999999, 97499999.99999999, 145000000.0], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 58.28, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 42.5, "min": 12.8, "max": 106.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 21.1, "min": 2.0, "max": 40.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 107.7, "min": 75.8, "max": 174.8, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.3, "min": 2.5, "max": 17.0, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 32.3, "min": 21.5, "max": 48.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009564 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 58.28, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 42.5, \"min\": 12.8, \"max\": 106.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 21.1, \"min\": 2.0, \"max\": 40.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 107.7, \"min\": 75.8, \"max\": 174.8, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.3, \"min\": 2.5, \"max\": 17.0, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 32.3, \"min\": 21.5, \"max\": 48.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad65d_2161", "family": "plate", "tier": 2, "seed": 2468009565, "symmetry": "radial", "op_count": 3, "ir_hash": "64c19f71c5474589", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12700.0, "surface_area": 8130.0, "principal_moments": [2300000.0, 6210000.0, 8480000.0], "n_faces": 28, "n_edges": 78, "n_vertices": 52}, "params": {"plate_w": {"type": "float", "default": 75, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 47.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 22.5, "min": 15.0, "max": 33.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009565 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 75, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 47.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 22.5, \"min\": 15.0, \"max\": 33.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.10628286249089075)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad65e_2162", "family": "block", "tier": 2, "seed": 2468009566, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "66f79dadb91e1c4b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5470.0, "surface_area": 2550.0, "principal_moments": [251000.0, 300000.0, 408000.0], "n_faces": 15, "n_edges": 35, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 23.96, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 12.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 16.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.6, "min": 2.0, "max": 2.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 14.5, "min": 7.2, "max": 29.0, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 4.4, "min": 1.8, "max": 11.0, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009566 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 23.96, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 12.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 16.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.6, \"min\": 2.0, \"max\": 2.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 14.5, \"min\": 7.2, \"max\": 29.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 4.4, \"min\": 1.8, \"max\": 11.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad660_2164", "family": "revolved", "tier": 2, "seed": 2468009568, "symmetry": "radial", "op_count": 2, "ir_hash": "a80a4e8611d2433e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 779000.0, "surface_area": 91200.0, "principal_moments": [1690000000.0, 1690000000.0, 1850000000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 74.57, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 136.8, "min": 41.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 162.1, "min": 89.5, "max": 223.7, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 23.4, "min": 7.0, "max": 68.4, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.1, "min": 0.1, "max": 3.3, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009568 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 74.57, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 136.8, \"min\": 41.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 162.1, \"min\": 89.5, \"max\": 223.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 23.4, \"min\": 7.0, \"max\": 68.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.1, \"min\": 0.1, \"max\": 3.3, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad663_2167", "family": "plate", "tier": 0, "seed": 2468009571, "symmetry": "radial", "op_count": 1, "ir_hash": "8d67207ba6eb0ebd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20200.0, "surface_area": 9450.0, "principal_moments": [3080000.0, 15199999.999999998, 18200000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 42.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009571 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 42.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad664_2168", "family": "enclosure", "tier": 2, "seed": 2468009572, "symmetry": "none", "op_count": 3, "ir_hash": "fb90e0a4634190fd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 50900.0, "surface_area": 32900.0, "principal_moments": [27999999.999999996, 56899999.99999999, 59399999.99999999], "n_faces": 19, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 86.49, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 41.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 54.7, "min": 21.9, "max": 109.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 9.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009572 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 86.49, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 41.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 54.7, \"min\": 21.9, \"max\": 109.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 9.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad666_2170", "family": "revolved", "tier": 1, "seed": 2468009574, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "4dbbaa37a4d80a56", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 151000.0, "surface_area": 31000.0, "principal_moments": [55899999.99999999, 220000000.0, 220000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 47.53, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 123.6, "min": 37.1, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 26.5, "min": 2.0, "max": 33.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.1, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009574 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 47.53, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 123.6, \"min\": 37.1, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 26.5, \"min\": 2.0, \"max\": 33.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.1, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad669_2173", "family": "gear", "tier": 1, "seed": 2468009577, "symmetry": "none", "op_count": 1, "ir_hash": "2b1676b569e8dba4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 106000.0, "surface_area": 22600.0, "principal_moments": [58799999.99999999, 58799999.99999999, 112000000.0], "n_faces": 111, "n_edges": 327, "n_vertices": 218}, "params": {"module": {"type": "float", "default": 5.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 18, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 17.4, "min": 7.0, "max": 43.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 13.9, "min": 2.0, "max": 46.5, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009577 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 5.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 18, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 17.4, \"min\": 7.0, \"max\": 43.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 13.9, \"min\": 2.0, \"max\": 46.5, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad66a_2174", "family": "compound", "tier": 1, "seed": 2468009578, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "5365bf5c238828f7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11300.0, "surface_area": 4510.0, "principal_moments": [999000.0, 1510000.0, 1510000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 15.18, "min": 9.1, "max": 24.3, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 15.5, "min": 6.2, "max": 38.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 15.7, "min": 7.8, "max": 21.0, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 21.2, "min": 6.4, "max": 53.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 8.4, "min": 2.0, "max": 11.3, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009578 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 15.18, \"min\": 9.1, \"max\": 24.3, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 15.5, \"min\": 6.2, \"max\": 38.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 15.7, \"min\": 7.8, \"max\": 21.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 21.2, \"min\": 6.4, \"max\": 53.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 11.3, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad66b_2175", "family": "threaded", "tier": 1, "seed": 2468009579, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "761dc0cf571ce352", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 241.0, "surface_area": 453.0, "principal_moments": [396.0, 11700.0, 11700.0], "n_faces": 350, "n_edges": 902, "n_vertices": 554}, "params": {"major_d": {"type": "float", "default": 4.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.7, "min": 0.35, "max": 1.4, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 24.0, "min": 9.6, "max": 48.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009579 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.35, \"max\": 1.4, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 24.0, \"min\": 9.6, \"max\": 48.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad66c_2176", "family": "plate", "tier": 3, "seed": 2468009580, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "aedeb6dcca0bf576", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9720.0, "surface_area": 7410.0, "principal_moments": [2420000.0, 3170000.0, 5570000.0], "n_faces": 19, "n_edges": 48, "n_vertices": 32}, "params": {"plate_w": {"type": "float", "default": 59.61, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 53.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 12.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}, "pocket_w": {"type": "float", "default": 28.8, "min": 14.4, "max": 47.7, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 36.9, "min": 18.4, "max": 42.6, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 1.9, "min": 0.8, "max": 3.4, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009580 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 59.61, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 53.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 12.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n \"pocket_w\": {\"type\": 'float', \"default\": 28.8, \"min\": 14.4, \"max\": 47.7, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 36.9, \"min\": 18.4, \"max\": 42.6, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 1.9, \"min\": 0.8, \"max\": 3.4, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09441089397782368)\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad66d_2177", "family": "flanged", "tier": 3, "seed": 2468009581, "symmetry": "radial", "op_count": 3, "ir_hash": "45795fb339d6a4d9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1030000.0, "surface_area": 119000.0, "principal_moments": [3030000000.0, 3070000000.0, 3070000000.0], "n_faces": 22, "n_edges": 47, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 90, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 122.3, "min": 36.7, "max": 305.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 31.3, "min": 2.0, "max": 63.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 209.4, "min": 117.0, "max": 270.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 12.4, "min": 3.7, "max": 48.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 62.8, "min": 41.9, "max": 94.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.5, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009581 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 122.3, \"min\": 36.7, \"max\": 305.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 31.3, \"min\": 2.0, \"max\": 63.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 209.4, \"min\": 117.0, \"max\": 270.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 12.4, \"min\": 3.7, \"max\": 48.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 62.8, \"min\": 41.9, \"max\": 94.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.5, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad66f_2179", "family": "revolved", "tier": 1, "seed": 2468009583, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "7c3da0c00a45f364", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 411000.0, "surface_area": 59100.0, "principal_moments": [280000000.0, 1180000000.0, 1180000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 65, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 174.2, "min": 52.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 34.9, "min": 2.0, "max": 45.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.7, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009583 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 174.2, \"min\": 52.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 34.9, \"min\": 2.0, \"max\": 45.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.7, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad671_2181", "family": "gear", "tier": 2, "seed": 2468009585, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "df2c469ed388cbed", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 67300.0, "surface_area": 15500.0, "principal_moments": [22999999.999999996, 22999999.999999996, 42300000.0], "n_faces": 243, "n_edges": 603, "n_vertices": 362}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 20, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 18.4, "min": 7.4, "max": 46.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 28.4, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.21, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.45, "min": 0.0, "max": 1.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 11.2, "min": 2.0, "max": 31.5, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009585 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 20, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 18.4, \"min\": 7.4, \"max\": 46.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 28.4, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.21, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.45, \"min\": 0.0, \"max\": 1.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 11.2, \"min\": 2.0, \"max\": 31.5, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=True, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad672_2182", "family": "revolved", "tier": 2, "seed": 2468009586, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "fc49973d4540dc8f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33800.0, "surface_area": 11900.0, "principal_moments": [3260000.0, 27699999.999999996, 27699999.999999996], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 24.69, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 96.2, "min": 28.9, "max": 288.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 12.7, "min": 2.0, "max": 17.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.5, "min": 0.1, "max": 1.5, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009586 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 24.69, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 96.2, \"min\": 28.9, \"max\": 288.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 12.7, \"min\": 2.0, \"max\": 17.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.5, \"min\": 0.1, \"max\": 1.5, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.08632647690120096)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad678_2188", "family": "bracket", "tier": 1, "seed": 2468009592, "symmetry": "none", "op_count": 1, "ir_hash": "501fe62a35c49f2c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29900.0, "surface_area": 16800.0, "principal_moments": [13599999.999999998, 39900000.0, 43200000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45.22, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009592 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45.22, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad67a_2190", "family": "bracket", "tier": 3, "seed": 2468009594, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "4dd40bb87887744a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20700.0, "surface_area": 6960.0, "principal_moments": [3100000.0, 5080000.0, 6870000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 32.87, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 26.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50.52, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 2, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 8.4, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009594 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 32.87, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 26.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50.52, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 8.4, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad67b_2191", "family": "plate", "tier": 1, "seed": 2468009595, "symmetry": "radial", "op_count": 2, "ir_hash": "b1b77b756d09a6d5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30400.0, "surface_area": 12200.0, "principal_moments": [5000000.0, 34200000.0, 39000000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"plate_w": {"type": "float", "default": 116.08, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 43.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 34.8, "min": 23.2, "max": 52.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009595 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 116.08, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 43.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 34.8, \"min\": 23.2, \"max\": 52.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad67c_2192", "family": "revolved", "tier": 0, "seed": 2468009596, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "d03f35a764074c9f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37500.0, "surface_area": 10800.0, "principal_moments": [6730000.0, 11399999.999999998, 11399999.999999998], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 34.59, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 59.9, "min": 18.0, "max": 179.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009596 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 34.59, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 59.9, \"min\": 18.0, \"max\": 179.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad67e_2194", "family": "ribbed", "tier": 1, "seed": 2468009598, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "9b6b1168b7b60947", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 64400.0, "surface_area": 24100.0, "principal_moments": [34400000.0, 46999999.99999999, 78600000.0], "n_faces": 26, "n_edges": 60, "n_vertices": 40}, "params": {"base_w": {"type": "float", "default": 91.22, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 80.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 11.5, "min": 4.6, "max": 23.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 6.0, "min": 1.0, "max": 15.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009598 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 91.22, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 80.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 11.5, \"min\": 4.6, \"max\": 23.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 1.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad67f_2195", "family": "compound", "tier": 1, "seed": 2468009599, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "68b85fe50e221b90", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 234000.0, "surface_area": 26900.0, "principal_moments": [130000000.0, 162000000.0, 177000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 54.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 61.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 10.0, "min": 5.0, "max": 19.1, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 25.7, "min": 5.2, "max": 69.3, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 8.8, "min": 2.0, "max": 12.5, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009599 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 54.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 61.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 10.0, \"min\": 5.0, \"max\": 19.1, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 25.7, \"min\": 5.2, \"max\": 69.3, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 8.8, \"min\": 2.0, \"max\": 12.5, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"spig_sides\"], p[\"spig_r\"] * 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad680_2196", "family": "bracket", "tier": 1, "seed": 2468009600, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "3766ebc8c4aab543", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10700.0, "surface_area": 5070.0, "principal_moments": [711000.0, 4740000.0, 4830000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 39.31, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 30.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 18.63, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 38.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 7.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009600 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 39.31, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 30.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 18.63, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 38.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 7.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad681_2197", "family": "plate", "tier": 1, "seed": 2468009601, "symmetry": "none", "op_count": 2, "ir_hash": "beae441241608c8f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2100.0, "surface_area": 1750.0, "principal_moments": [36500.0, 278000.0, 309000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"plate_w": {"type": "float", "default": 40, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 13.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 1.8, "min": 2.0, "max": 1.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009601 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 13.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.8, \"min\": 2.0, \"max\": 1.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(16.0, 3.7, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad683_2199", "family": "block", "tier": 2, "seed": 2468009603, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "ace8a061c99116e6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 69000.0, "surface_area": 17000.0, "principal_moments": [20000000.0, 20500000.0, 22899999.999999996], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 45.26, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 40.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 43.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 9.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 16.0, "min": 8.0, "max": 32.0, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 8.7, "min": 3.5, "max": 21.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 11.2, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009603 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45.26, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 40.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 43.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 9.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 8.0, \"max\": 32.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 8.7, \"min\": 3.5, \"max\": 21.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 11.2, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad684_2200", "family": "block", "tier": 1, "seed": 2468009604, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "995da7415900031e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27900.0, "surface_area": 7500.0, "principal_moments": [3280000.0, 5310000.0, 6210000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 30.33, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 22.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 42.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009604 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 30.33, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 22.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 42.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad685_2201", "family": "block", "tier": 1, "seed": 2468009605, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "a3d889ac10c60fbd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 229000.0, "surface_area": 32100.0, "principal_moments": [124000000.0, 158000000.0, 207000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 80.84, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 45.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 67.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 7.7, "min": 2.0, "max": 13.2, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009605 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80.84, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 45.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 67.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 7.7, \"min\": 2.0, \"max\": 13.2, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad686_2202", "family": "block", "tier": 2, "seed": 2468009606, "symmetry": "none", "op_count": 3, "ir_hash": "7934014cf9f1fba2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 71500.0, "surface_area": 17500.0, "principal_moments": [23399999.999999996, 24699999.999999996, 36600000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 51.99, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 29.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 58.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 36.3, "min": 18.1, "max": 41.6, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 16.1, "min": 8.1, "max": 23.3, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 25.8, "min": 10.3, "max": 49.7, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009606 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 51.99, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 29.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 58.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 36.3, \"min\": 18.1, \"max\": 41.6, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 16.1, \"min\": 8.1, \"max\": 23.3, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 25.8, \"min\": 10.3, \"max\": 49.7, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad687_2203", "family": "revolved", "tier": 0, "seed": 2468009607, "symmetry": "none", "op_count": 1, "ir_hash": "c041c1dd1b5f22ab", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 85000.0, "surface_area": 16500.0, "principal_moments": [37400000.0, 37400000.0, 64299999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 71.01, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 32.2, "min": 9.7, "max": 96.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009607 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 71.01, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 32.2, \"min\": 9.7, \"max\": 96.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} diff --git a/2k/tier0-2/corpus-full.parquet b/2k/tier0-2/corpus-full.parquet new file mode 100644 index 0000000000000000000000000000000000000000..8c43ae8980606a51b4e4f239522f038afe237053 --- /dev/null +++ b/2k/tier0-2/corpus-full.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e9886d07966251ee5cf96edef2077e3febedf6a69a63389e2549d55a7af4c925 +size 1067694418 diff --git a/2k/tier0-2/corpus-geo.parquet b/2k/tier0-2/corpus-geo.parquet new file mode 100644 index 0000000000000000000000000000000000000000..139a3ff6530484a8df1ccf6f7cd316abb0a10574 --- /dev/null +++ b/2k/tier0-2/corpus-geo.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5ce1e1e0a40ebda3e99549c115527afc0662b3f6bf7826c3bd3a8cb98d5bad85 +size 920366535 diff --git a/2k/tier0-2/corpus-renders.parquet b/2k/tier0-2/corpus-renders.parquet new file mode 100644 index 0000000000000000000000000000000000000000..d2db49d166fc5363f120e2f17972b8762be2063d --- /dev/null +++ b/2k/tier0-2/corpus-renders.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd830d8fd5cabe6e8fe9643a1ec6a63c46337f70e6db57ced8e655ba0679e264 +size 700734596 diff --git a/2k/tier0-2/corpus-step.parquet b/2k/tier0-2/corpus-step.parquet new file mode 100644 index 0000000000000000000000000000000000000000..991fa6001c4a66adfb16c7047515d6ab6df86b04 --- /dev/null +++ b/2k/tier0-2/corpus-step.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:894a348306b92973b8473eaaccacad64d311495407c8c8f140c90d3649a36d6d +size 148155204 diff --git a/2k/tier0-2/corpus-stl.parquet b/2k/tier0-2/corpus-stl.parquet new file mode 100644 index 0000000000000000000000000000000000000000..9cf9803b24063670b427697b65c2159faff13958 --- /dev/null +++ b/2k/tier0-2/corpus-stl.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1ea1a5be853433080323afad72764c4dfc71f475b6cc056cbfaed86f7184dad +size 220459261 diff --git a/2k/tier0-2/corpus.jsonl b/2k/tier0-2/corpus.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..6b5560aa90ba7ca5750fe5280d6e3cd570ca67ab --- /dev/null +++ b/2k/tier0-2/corpus.jsonl @@ -0,0 +1,1810 @@ +{"part_id": "threaded_931acdec_0000", "family": "threaded", "tier": 1, "seed": 2468007404, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "b2889ee8ce5bcdca", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16100.0, "surface_area": 6080.0, "principal_moments": [693000.0, 5130000.0, 5130000.0], "n_faces": 429, "n_edges": 1181, "n_vertices": 754}, "params": {"major_d": {"type": "float", "default": 20.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.5, "min": 1.25, "max": 5.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 60.0, "min": 24.0, "max": 120.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007404 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 20.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.25, \"max\": 5.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 60.0, \"min\": 24.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acded_0001", "family": "plate", "tier": 0, "seed": 2468007405, "symmetry": "none", "op_count": 1, "ir_hash": "cb623c0e01950f4e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7700.0, "surface_area": 4570.0, "principal_moments": [747000.0, 2080000.0, 2800000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 56.75, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 33.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007405 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 56.75, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 33.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acdee_0002", "family": "compound", "tier": 2, "seed": 2468007406, "symmetry": "none", "op_count": 5, "ir_hash": "354ddfba589b44ea", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 280000.0, "surface_area": 34600.0, "principal_moments": [155000000.0, 264000000.0, 265000000.0], "n_faces": 22, "n_edges": 53, "n_vertices": 34}, "params": {"block_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 56.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 57.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 17.9, "min": 7.2, "max": 25.3, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 21.5, "min": 4.5, "max": 53.7, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 8.5, "min": 2.0, "max": 12.9, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 12.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007406 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 56.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 57.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 17.9, \"min\": 7.2, \"max\": 25.3, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 21.5, \"min\": 4.5, \"max\": 53.7, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 8.5, \"min\": 2.0, \"max\": 12.9, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 12.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acdef_0003", "family": "compound", "tier": 1, "seed": 2468007407, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "675a734075925697", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 331000.0, "surface_area": 37400.0, "principal_moments": [238000000.0, 288000000.0, 365000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 21}, "params": {"block_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 73.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 53.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 17.2, "min": 6.9, "max": 24.1, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 20.7, "min": 4.3, "max": 51.6, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.4, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007407 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 73.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 53.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 17.2, \"min\": 6.9, \"max\": 24.1, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 20.7, \"min\": 4.3, \"max\": 51.6, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.4, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acdf2_0006", "family": "compound", "tier": 1, "seed": 2468007410, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "315b0a2e7ca8315f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 225000.0, "surface_area": 25000.0, "principal_moments": [59999999.99999999, 443000000.0, 443000000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 50.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 90.5, "min": 36.2, "max": 181.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 27.5, "min": 13.8, "max": 45.0, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 79.1, "min": 23.7, "max": 197.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007410 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 50.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 90.5, \"min\": 36.2, \"max\": 181.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 27.5, \"min\": 13.8, \"max\": 45.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 79.1, \"min\": 23.7, \"max\": 197.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acdf3_0007", "family": "revolved", "tier": 0, "seed": 2468007411, "symmetry": "radial", "op_count": 1, "ir_hash": "1d7ba75d2ed78db5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 189000.0, "surface_area": 33300.0, "principal_moments": [87500000.0, 197000000.0, 197000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 55.57, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 116.8, "min": 35.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007411 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55.57, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 116.8, \"min\": 35.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acdf4_0008", "family": "gear", "tier": 2, "seed": 2468007412, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "95d96ed9aed71150", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12300.0, "surface_area": 5780.0, "principal_moments": [1920000.0, 1920000.0, 3730000.0], "n_faces": 259, "n_edges": 771, "n_vertices": 514}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 32, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 7.0, "min": 2.8, "max": 17.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": 0.12, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.18, "min": 0.0, "max": 0.75, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 9.4, "min": 2.0, "max": 26.6, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007412 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 32, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 7.0, \"min\": 2.8, \"max\": 17.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.12, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.18, \"min\": 0.0, \"max\": 0.75, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 9.4, \"min\": 2.0, \"max\": 26.6, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acdf5_0009", "family": "revolved", "tier": 1, "seed": 2468007413, "symmetry": "radial", "op_count": 1, "ir_hash": "d65b1327bf2b874b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8530.0, "surface_area": 4740.0, "principal_moments": [373000.0, 1770000.0, 1770000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 17.07, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 55.9, "min": 16.8, "max": 167.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007413 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 17.07, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 55.9, \"min\": 16.8, \"max\": 167.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acdf6_0010", "family": "gear", "tier": 1, "seed": 2468007414, "symmetry": "none", "op_count": 1, "ir_hash": "aba630c8f8cbc12f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4940.0, "surface_area": 3030.0, "principal_moments": [378000.0, 378000.0, 730000.0], "n_faces": 207, "n_edges": 615, "n_vertices": 410}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 34, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.6, "min": 2.2, "max": 14.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 4.9, "min": 2.0, "max": 18.9, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007414 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 34, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.6, \"min\": 2.2, \"max\": 14.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.0, \"max\": 18.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acdf7_0011", "family": "flanged", "tier": 1, "seed": 2468007415, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "840f10deb9263bc2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 87000.0, "surface_area": 24300.0, "principal_moments": [44200000.0, 44200000.0, 65699999.99999999], "n_faces": 29, "n_edges": 114, "n_vertices": 76}, "params": {"outer_d": {"type": "float", "default": 55, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 36.2, "min": 10.9, "max": 90.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 27.1, "min": 2.0, "max": 38.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 98.0, "min": 71.5, "max": 165.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.4, "min": 1.3, "max": 14.5, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 29.4, "min": 19.6, "max": 44.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007415 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 36.2, \"min\": 10.9, \"max\": 90.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 27.1, \"min\": 2.0, \"max\": 38.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 98.0, \"min\": 71.5, \"max\": 165.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.4, \"min\": 1.3, \"max\": 14.5, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 29.4, \"min\": 19.6, \"max\": 44.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931acdf8_0012", "family": "profiled", "tier": 1, "seed": 2468007416, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ca991bb84356da96", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11700.0, "surface_area": 6260.0, "principal_moments": [528000.0, 5570000.0, 5570000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 16.78, "min": 8.4, "max": 33.6, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 73.7, "min": 22.1, "max": 221.1, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 8.9, "min": 2.0, "max": 13.4, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007416 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 16.78, \"min\": 8.4, \"max\": 33.6, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 73.7, \"min\": 22.1, \"max\": 221.1, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 8.9, \"min\": 2.0, \"max\": 13.4, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acdf9_0013", "family": "compound", "tier": 1, "seed": 2468007417, "symmetry": "none", "op_count": 2, "ir_hash": "cb96bacf81925ec2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35800.0, "surface_area": 6560.0, "principal_moments": [4890000.0, 8170000.0, 8170000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 35, "min": 17.5, "max": 63.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 31.7, "min": 12.7, "max": 63.4, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 18.3, "min": 9.2, "max": 31.5, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 20.0, "min": 6.0, "max": 50.0, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007417 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 35, \"min\": 17.5, \"max\": 63.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 31.7, \"min\": 12.7, \"max\": 63.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 18.3, \"min\": 9.2, \"max\": 31.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 20.0, \"min\": 6.0, \"max\": 50.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acdfa_0014", "family": "flanged", "tier": 2, "seed": 2468007418, "symmetry": "none", "op_count": 3, "ir_hash": "3ba568614d20d728", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 562000.0, "surface_area": 81200.0, "principal_moments": [927000000.0, 927000000.0, 1320000000.0], "n_faces": 22, "n_edges": 47, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 90, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 68.9, "min": 20.7, "max": 172.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 27.1, "min": 2.0, "max": 63.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 186.6, "min": 117.0, "max": 270.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.9, "min": 2.4, "max": 27.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 56.0, "min": 37.3, "max": 84.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007418 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 68.9, \"min\": 20.7, \"max\": 172.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 27.1, \"min\": 2.0, \"max\": 63.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 186.6, \"min\": 117.0, \"max\": 270.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.9, \"min\": 2.4, \"max\": 27.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 56.0, \"min\": 37.3, \"max\": 84.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acdfc_0016", "family": "flanged", "tier": 1, "seed": 2468007420, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "5fb0d1fef0bc1b66", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 74300.0, "surface_area": 22400.0, "principal_moments": [40000000.0, 40000000.0, 52799999.99999999], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 40, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 45.1, "min": 13.5, "max": 112.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 21.7, "min": 2.0, "max": 28.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 89.9, "min": 52.0, "max": 120.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.1, "min": 2.1, "max": 18.0, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 27.0, "min": 18.0, "max": 40.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007420 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 45.1, \"min\": 13.5, \"max\": 112.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 21.7, \"min\": 2.0, \"max\": 28.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 89.9, \"min\": 52.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.1, \"min\": 2.1, \"max\": 18.0, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 27.0, \"min\": 18.0, \"max\": 40.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acdfe_0018", "family": "revolved", "tier": 0, "seed": 2468007422, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ae10555669f42c66", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 520000.0, "surface_area": 75500.0, "principal_moments": [329000000.0, 1870000000.0, 1870000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 65, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 235.0, "min": 70.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007422 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 235.0, \"min\": 70.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acdff_0019", "family": "flanged", "tier": 2, "seed": 2468007423, "symmetry": "radial", "op_count": 3, "ir_hash": "96513223a0b153f0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 334000.0, "surface_area": 53400.0, "principal_moments": [431000000.0, 431000000.0, 441000000.0], "n_faces": 18, "n_edges": 37, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 70, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 79.7, "min": 23.9, "max": 199.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 32.7, "min": 2.0, "max": 49.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 131.7, "min": 91.0, "max": 210.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.7, "min": 2.9, "max": 31.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 39.5, "min": 26.3, "max": 59.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.5, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007423 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 79.7, \"min\": 23.9, \"max\": 199.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 32.7, \"min\": 2.0, \"max\": 49.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 131.7, \"min\": 91.0, \"max\": 210.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.7, \"min\": 2.9, \"max\": 31.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 39.5, \"min\": 26.3, \"max\": 59.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.5, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace06_0026", "family": "compound", "tier": 1, "seed": 2468007430, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "560263ccb1022f6f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25900.0, "surface_area": 6620.0, "principal_moments": [3420000.0, 4230000.0, 5650000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 35.3, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 33.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 21.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 10.2, "min": 4.1, "max": 15.1, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 15.9, "min": 3.1, "max": 40.8, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 5.0, "min": 2.0, "max": 7.3, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007430 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35.3, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 33.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 21.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 10.2, \"min\": 4.1, \"max\": 15.1, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 15.9, \"min\": 3.1, \"max\": 40.8, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 7.3, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ace09_0029", "family": "profiled", "tier": 2, "seed": 2468007433, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "c49f962a743b1b57", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 58600.0, "surface_area": 20200.0, "principal_moments": [6380000.0, 85900000.0, 85900000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 26.94, "min": 13.5, "max": 53.9, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 154.2, "min": 46.3, "max": 462.6, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007433 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 26.94, \"min\": 13.5, \"max\": 53.9, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 154.2, \"min\": 46.3, \"max\": 462.6, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace0a_0030", "family": "bracket", "tier": 1, "seed": 2468007434, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "73657aaf15a9a321", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19600.0, "surface_area": 8200.0, "principal_moments": [4690000.0, 5480000.0, 7940000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 36.25, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 41.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 46.3, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007434 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 36.25, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 41.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 46.3, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ace0c_0032", "family": "flanged", "tier": 1, "seed": 2468007436, "symmetry": "radial", "op_count": 2, "ir_hash": "daf7e7ebb48ff275", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 60000.0, "surface_area": 14700.0, "principal_moments": [19400000.0, 19400000.0, 31899999.999999996], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 46.2, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 26.1, "min": 7.8, "max": 65.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 14.9, "min": 2.0, "max": 32.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 74.8, "min": 60.1, "max": 138.6, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.9, "min": 2.4, "max": 10.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 22.4, "min": 15.0, "max": 33.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007436 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 46.2, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 26.1, \"min\": 7.8, \"max\": 65.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 14.9, \"min\": 2.0, \"max\": 32.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 74.8, \"min\": 60.1, \"max\": 138.6, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.9, \"min\": 2.4, \"max\": 10.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 22.4, \"min\": 15.0, \"max\": 33.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace0d_0033", "family": "compound", "tier": 2, "seed": 2468007437, "symmetry": "mirror_xy", "op_count": 5, "ir_hash": "8c02f1eee1df0cfd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 292000.0, "surface_area": 34700.0, "principal_moments": [208000000.0, 222000000.0, 338000000.0], "n_faces": 20, "n_edges": 47, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 84.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 43.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 12.9, "min": 5.2, "max": 19.5, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 17.2, "min": 3.2, "max": 38.7, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 6.3, "min": 2.0, "max": 9.3, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007437 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 84.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 43.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 12.9, \"min\": 5.2, \"max\": 19.5, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 17.2, \"min\": 3.2, \"max\": 38.7, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 6.3, \"min\": 2.0, \"max\": 9.3, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace0e_0034", "family": "bracket", "tier": 1, "seed": 2468007438, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "a5e330af455a3ab3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12200.0, "surface_area": 5220.0, "principal_moments": [1530000.0, 5590000.0, 6570000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 60, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 47.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 16.11, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 6.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007438 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 60, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 47.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 16.11, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 6.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace11_0037", "family": "revolved", "tier": 2, "seed": 2468007441, "symmetry": "none", "op_count": 1, "ir_hash": "e5d46cd778ec2949", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 312000.0, "surface_area": 50500.0, "principal_moments": [291000000.0, 480000000.0, 480000000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 47.92, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 139.8, "min": 41.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 103.5, "min": 57.5, "max": 143.8, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 21.7, "min": 6.5, "max": 69.9, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007441 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 47.92, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 139.8, \"min\": 41.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 103.5, \"min\": 57.5, \"max\": 143.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 21.7, \"min\": 6.5, \"max\": 69.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ace12_0038", "family": "enclosure", "tier": 2, "seed": 2468007442, "symmetry": "none", "op_count": 3, "ir_hash": "6c13d476c23fa59c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 65500.0, "surface_area": 25100.0, "principal_moments": [26899999.999999996, 56599999.99999999, 61499999.99999999], "n_faces": 19, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 80, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 43.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 41.8, "min": 16.7, "max": 83.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.9, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007442 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 80, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 43.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 41.8, \"min\": 16.7, \"max\": 83.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.9, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace13_0039", "family": "block", "tier": 2, "seed": 2468007443, "symmetry": "radial", "op_count": 3, "ir_hash": "9c9916436969f6a7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 190000.0, "surface_area": 33000.0, "principal_moments": [80900000.0, 185000000.0, 225000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 60.36, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 35.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 18.1, "min": 12.1, "max": 27.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "boss_d": {"type": "float", "default": 24.7, "min": 12.3, "max": 49.4, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 7.5, "min": 3.0, "max": 18.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 17.3, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007443 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 60.36, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 35.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 18.1, \"min\": 12.1, \"max\": 27.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"boss_d\": {\"type\": 'float', \"default\": 24.7, \"min\": 12.3, \"max\": 49.4, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 7.5, \"min\": 3.0, \"max\": 18.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 17.3, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ace16_0042", "family": "gear", "tier": 1, "seed": 2468007446, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "3fbe23cb2340485a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 75000.0, "surface_area": 16500.0, "principal_moments": [24599999.999999996, 24599999.999999996, 42200000.0], "n_faces": 81, "n_edges": 237, "n_vertices": 158}, "params": {"module": {"type": "float", "default": 5.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 13, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 23.7, "min": 9.5, "max": 59.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 7.8, "min": 2.0, "max": 31.5, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007446 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 5.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 13, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 23.7, \"min\": 9.5, \"max\": 59.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 7.8, \"min\": 2.0, \"max\": 31.5, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace17_0043", "family": "compound", "tier": 2, "seed": 2468007447, "symmetry": "none", "op_count": 5, "ir_hash": "07107d33f705dede", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 46500.0, "surface_area": 9690.0, "principal_moments": [8610000.0, 11100000.0, 13799999.999999998], "n_faces": 35, "n_edges": 90, "n_vertices": 60}, "params": {"block_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 27.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 38.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 3.4, "min": 1.7, "max": 6.2, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 7.3, "min": 1.6, "max": 18.8, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007447 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 27.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 38.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 3.4, \"min\": 1.7, \"max\": 6.2, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 7.3, \"min\": 1.6, \"max\": 18.8, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ace18_0044", "family": "profiled", "tier": 1, "seed": 2468007448, "symmetry": "none", "op_count": 1, "ir_hash": "f44608318db28d8a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26000.0, "surface_area": 5720.0, "principal_moments": [1490000.0, 12199999.999999998, 12199999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"circ_r": {"type": "float", "default": 11.25, "min": 5.6, "max": 22.5, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 72.7, "min": 21.8, "max": 218.1, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007448 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 11.25, \"min\": 5.6, \"max\": 22.5, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 72.7, \"min\": 21.8, \"max\": 218.1, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace1a_0046", "family": "bracket", "tier": 1, "seed": 2468007450, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "3841b50ad0084d31", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9680.0, "surface_area": 5730.0, "principal_moments": [1620000.0, 2050000.0, 2830000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 32.65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 34.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 38.51, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007450 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 32.65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 34.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 38.51, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace1d_0049", "family": "block", "tier": 1, "seed": 2468007453, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "8567a815a5f68876", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 121000.0, "surface_area": 19600.0, "principal_moments": [50499999.99999999, 53899999.99999999, 88800000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 27.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 67.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.3, "min": 2.0, "max": 2.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007453 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 27.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 67.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.3, \"min\": 2.0, \"max\": 2.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 16.2\n _ssy = 18.8\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace1e_0050", "family": "bracket", "tier": 2, "seed": 2468007454, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "27a645e35c64483e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33500.0, "surface_area": 11100.0, "principal_moments": [6430000.0, 18900000.0, 21000000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 40, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 45.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 38.79, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 40.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 11.0, "min": 4.0, "max": 19.4, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007454 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 40, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 45.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 38.79, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 40.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 11.0, \"min\": 4.0, \"max\": 19.4, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace1f_0051", "family": "block", "tier": 2, "seed": 2468007455, "symmetry": "radial", "op_count": 3, "ir_hash": "b7f2c2634e0a0879", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 188000.0, "surface_area": 26200.0, "principal_moments": [107000000.0, 120000000.0, 194000000.0], "n_faces": 28, "n_edges": 78, "n_vertices": 52}, "params": {"block_w": {"type": "float", "default": 76.55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 31.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 81.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 23.0, "min": 15.3, "max": 34.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007455 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 76.55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 31.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 81.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 23.0, \"min\": 15.3, \"max\": 34.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.07859485065641958)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace21_0053", "family": "block", "tier": 1, "seed": 2468007457, "symmetry": "none", "op_count": 2, "ir_hash": "2bf556fb43a9d986", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 413000.0, "surface_area": 42700.0, "principal_moments": [360000000.0, 416000000.0, 632000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 91.32, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 45.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007457 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 91.32, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 45.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 22.8\n _ssy = 22.2\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ace22_0054", "family": "flanged", "tier": 2, "seed": 2468007458, "symmetry": "none", "op_count": 3, "ir_hash": "21879522a976577a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 222000.0, "surface_area": 41800.0, "principal_moments": [217000000.0, 217000000.0, 363000000.0], "n_faces": 18, "n_edges": 37, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 59.36, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 44.4, "min": 13.3, "max": 111.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 19.3, "min": 2.0, "max": 41.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 135.8, "min": 77.2, "max": 178.1, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.7, "min": 2.9, "max": 17.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 40.7, "min": 27.2, "max": 61.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007458 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 59.36, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 44.4, \"min\": 13.3, \"max\": 111.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 19.3, \"min\": 2.0, \"max\": 41.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 135.8, \"min\": 77.2, \"max\": 178.1, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.7, \"min\": 2.9, \"max\": 17.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 40.7, \"min\": 27.2, \"max\": 61.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace26_0058", "family": "compound", "tier": 2, "seed": 2468007462, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "af0f97f5effe24e0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 123000.0, "surface_area": 15100.0, "principal_moments": [29499999.999999996, 84600000.0, 84600000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 46.1, "min": 23.1, "max": 83.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 62.4, "min": 25.0, "max": 124.8, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 27.8, "min": 13.9, "max": 41.5, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 30.9, "min": 9.3, "max": 77.2, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007462 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 46.1, \"min\": 23.1, \"max\": 83.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 62.4, \"min\": 25.0, \"max\": 124.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 27.8, \"min\": 13.9, \"max\": 41.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 30.9, \"min\": 9.3, \"max\": 77.2, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace28_0060", "family": "bracket", "tier": 2, "seed": 2468007464, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "f0febf393d704a58", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5340.0, "surface_area": 3330.0, "principal_moments": [493000.0, 793000.0, 1050000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 26.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 15.82, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 6.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.1, "min": 2.5, "max": 7.9, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007464 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 26.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 15.82, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 6.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.1, \"min\": 2.5, \"max\": 7.9, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace29_0061", "family": "block", "tier": 1, "seed": 2468007465, "symmetry": "radial", "op_count": 2, "ir_hash": "16692bd85f0c7235", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24700.0, "surface_area": 9010.0, "principal_moments": [2570000.0, 7580000.0, 8870000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 30, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 17.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 58.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 9.0, "min": 6.0, "max": 13.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007465 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 17.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 58.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 9.0, \"min\": 6.0, \"max\": 13.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ace2a_0062", "family": "enclosure", "tier": 2, "seed": 2468007466, "symmetry": "none", "op_count": 4, "ir_hash": "f9c8632ecb140e4a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 118000.0, "surface_area": 65700.0, "principal_moments": [147000000.0, 208000000.0, 272000000.0], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 110, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 47.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 95.6, "min": 38.2, "max": 191.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 10.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007466 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 110, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 47.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 95.6, \"min\": 38.2, \"max\": 191.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 10.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.06575514924599674)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace2c_0064", "family": "compound", "tier": 2, "seed": 2468007468, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "13e91d4bfbb1c4a4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61200.0, "surface_area": 10900.0, "principal_moments": [15699999.999999998, 15899999.999999998, 24799999.999999996], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 46.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 26.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 6.2, "min": 3.1, "max": 9.1, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 16.6, "min": 3.4, "max": 45.8, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 10.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007468 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 46.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 26.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 6.2, \"min\": 3.1, \"max\": 9.1, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 16.6, \"min\": 3.4, \"max\": 45.8, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 10.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace2d_0065", "family": "revolved", "tier": 1, "seed": 2468007469, "symmetry": "none", "op_count": 2, "ir_hash": "781916699442a793", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6130.0, "surface_area": 4150.0, "principal_moments": [232000.0, 1540000.0, 1540000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 15.0, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 53.4, "min": 16.0, "max": 160.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 8.8, "min": 2.0, "max": 10.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.7, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007469 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 15.0, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 53.4, \"min\": 16.0, \"max\": 160.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 8.8, \"min\": 2.0, \"max\": 10.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.7, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ace32_0070", "family": "profiled", "tier": 2, "seed": 2468007474, "symmetry": "none", "op_count": 1, "ir_hash": "6c95f6e122c4a72b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 145000.0, "surface_area": 24600.0, "principal_moments": [24299999.999999996, 559000000.0, 577000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 45, "min": 22.5, "max": 90.0, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 16.36, "min": 8.2, "max": 32.7, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 214.2, "min": 64.3, "max": 642.6, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007474 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 45, \"min\": 22.5, \"max\": 90.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 16.36, \"min\": 8.2, \"max\": 32.7, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 214.2, \"min\": 64.3, \"max\": 642.6, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace33_0071", "family": "plate", "tier": 1, "seed": 2468007475, "symmetry": "none", "op_count": 2, "ir_hash": "a6f73469fec2129c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26500.0, "surface_area": 9980.0, "principal_moments": [2410000.0, 13999999.999999998, 15799999.999999998], "n_faces": 70, "n_edges": 204, "n_vertices": 136}, "params": {"plate_w": {"type": "float", "default": 79.02, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 30.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 4.8, "step": 0.1, "group": "Holes", "label": "Square hole size (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007475 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 79.02, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 30.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 4.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(21.1, 8.2, p[\"hole_nx\"], p[\"hole_ny\"])\n .rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace34_0072", "family": "bracket", "tier": 1, "seed": 2468007476, "symmetry": "none", "op_count": 1, "ir_hash": "62d05b5118013d28", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13300.0, "surface_area": 6280.0, "principal_moments": [2100000.0, 8220000.0, 9410000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 68.97, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 51.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007476 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 68.97, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 51.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace36_0074", "family": "block", "tier": 2, "seed": 2468007478, "symmetry": "none", "op_count": 3, "ir_hash": "2245a67d8eb2fe46", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 563000.0, "surface_area": 54500.0, "principal_moments": [544000000.0, 723000000.0, 760000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 80.17, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 74.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007478 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80.17, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 74.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.07239629105738571)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace38_0076", "family": "bracket", "tier": 1, "seed": 2468007480, "symmetry": "none", "op_count": 1, "ir_hash": "34abfc38bb9a87ee", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14500.0, "surface_area": 7160.0, "principal_moments": [2640000.0, 3550000.0, 4520000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 36.81, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 38.33, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007480 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 36.81, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 38.33, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace39_0077", "family": "revolved", "tier": 2, "seed": 2468007481, "symmetry": "radial", "op_count": 1, "ir_hash": "9a99440224f4ca1f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 604000.0, "surface_area": 63600.0, "principal_moments": [990000000.0, 990000000.0, 1150000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 65.23, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 96.4, "min": 28.9, "max": 289.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 24.5, "min": 2.0, "max": 45.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 140.5, "min": 78.3, "max": 195.7, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 26.9, "min": 8.1, "max": 48.2, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007481 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65.23, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 96.4, \"min\": 28.9, \"max\": 289.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 24.5, \"min\": 2.0, \"max\": 45.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 140.5, \"min\": 78.3, \"max\": 195.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 26.9, \"min\": 8.1, \"max\": 48.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace3b_0079", "family": "revolved", "tier": 0, "seed": 2468007483, "symmetry": "none", "op_count": 1, "ir_hash": "f9f131236eac24ea", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20100.0, "surface_area": 7190.0, "principal_moments": [4760000.0, 4760000.0, 9130000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 55, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 12.7, "min": 3.8, "max": 38.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007483 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 12.7, \"min\": 3.8, \"max\": 38.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ace3c_0080", "family": "flanged", "tier": 1, "seed": 2468007484, "symmetry": "none", "op_count": 2, "ir_hash": "c89e98861ae956a8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 194000.0, "surface_area": 38300.0, "principal_moments": [144000000.0, 177000000.0, 177000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 55, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 72.9, "min": 21.9, "max": 182.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.9, "min": 2.0, "max": 38.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 116.5, "min": 71.5, "max": 165.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.7, "min": 1.4, "max": 29.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 34.9, "min": 23.3, "max": 52.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007484 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 72.9, \"min\": 21.9, \"max\": 182.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.9, \"min\": 2.0, \"max\": 38.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 116.5, \"min\": 71.5, \"max\": 165.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.7, \"min\": 1.4, \"max\": 29.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 34.9, \"min\": 23.3, \"max\": 52.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace3d_0081", "family": "compound", "tier": 1, "seed": 2468007485, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "652a12cfebb2f616", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 132000.0, "surface_area": 21600.0, "principal_moments": [54499999.99999999, 65599999.99999999, 99599999.99999999], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 57.31, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 30.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 71.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 29.6, "min": 11.8, "max": 47.4, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 51.0, "min": 20.4, "max": 81.6, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.5, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007485 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 57.31, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 30.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 71.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 29.6, \"min\": 11.8, \"max\": 47.4, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 51.0, \"min\": 20.4, \"max\": 81.6, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.5, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .rect(p[\"tab_a\"], p[\"tab_b\"]).extrude(p[\"tab_t\"])\n )\n result = (\n result.faces('>X').workplane()\n .rect(p[\"tab_a\"] * 0.6, p[\"tab_b\"] * 0.6, forConstruction=True)\n .vertices().hole(p[\"tab_hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace3f_0083", "family": "bracket", "tier": 1, "seed": 2468007487, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "57bbd356e91e0787", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11700.0, "surface_area": 5290.0, "principal_moments": [1250000.0, 3910000.0, 3950000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 33.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25.59, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007487 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 33.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25.59, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rarray(8.0, 10.2, p[\"hole_nx\"], p[\"hole_ny\"])\n .slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.11347702535313026)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace41_0085", "family": "revolved", "tier": 1, "seed": 2468007489, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "6e477fcd4050d063", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 183000.0, "surface_area": 37800.0, "principal_moments": [68800000.0, 379000000.0, 379000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 47.75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 150.5, "min": 45.1, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 27.1, "min": 2.0, "max": 33.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007489 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 47.75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 150.5, \"min\": 45.1, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 27.1, \"min\": 2.0, \"max\": 33.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ace42_0086", "family": "flanged", "tier": 2, "seed": 2468007490, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "88e4e1479b1c7c22", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33800.0, "surface_area": 14200.0, "principal_moments": [11599999.999999998, 12399999.999999998, 12399999.999999998], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 30, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 43.7, "min": 13.1, "max": 109.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 15.6, "min": 2.0, "max": 21.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 70.1, "min": 39.0, "max": 90.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.8, "min": 1.1, "max": 17.5, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 21.0, "min": 14.0, "max": 31.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007490 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 43.7, \"min\": 13.1, \"max\": 109.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 15.6, \"min\": 2.0, \"max\": 21.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 70.1, \"min\": 39.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.8, \"min\": 1.1, \"max\": 17.5, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 21.0, \"min\": 14.0, \"max\": 31.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace43_0087", "family": "block", "tier": 1, "seed": 2468007491, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "4ae71a89e6e034b3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 257000.0, "surface_area": 34000.0, "principal_moments": [130000000.0, 229000000.0, 255000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 60, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 48.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 90.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007491 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 60, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 48.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 90.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 15.0\n _ssy = 14.2\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace44_0088", "family": "revolved", "tier": 1, "seed": 2468007492, "symmetry": "none", "op_count": 2, "ir_hash": "c2ca3ae157e3f7aa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 214000.0, "surface_area": 42900.0, "principal_moments": [200000000.0, 200000000.0, 270000000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 55.99, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 73.2, "min": 22.0, "max": 219.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 123.1, "min": 67.2, "max": 168.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.9, "min": 3.0, "max": 36.6, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.6, "min": 0.1, "max": 1.8, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007492 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55.99, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 73.2, \"min\": 22.0, \"max\": 219.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 123.1, \"min\": 67.2, \"max\": 168.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.9, \"min\": 3.0, \"max\": 36.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.6, \"min\": 0.1, \"max\": 1.8, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace46_0090", "family": "plate", "tier": 0, "seed": 2468007494, "symmetry": "none", "op_count": 1, "ir_hash": "1ee7d7c282a8d678", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 800.0, "surface_area": 640.0, "principal_moments": [7730.0, 27700.0, 33300.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 20.0, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 10.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007494 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 20.0, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ace48_0092", "family": "profiled", "tier": 1, "seed": 2468007496, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "e27b90a273d26a57", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 161000.0, "surface_area": 28800.0, "principal_moments": [26699999.999999996, 891000000.0, 912000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 45, "min": 22.5, "max": 90.0, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 15, "min": 7.5, "max": 30.0, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 257.2, "min": 77.2, "max": 771.6, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007496 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 45, \"min\": 22.5, \"max\": 90.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 15, \"min\": 7.5, \"max\": 30.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 257.2, \"min\": 77.2, \"max\": 771.6, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace49_0093", "family": "block", "tier": 1, "seed": 2468007497, "symmetry": "none", "op_count": 2, "ir_hash": "ef36461e912b8b51", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17300.0, "surface_area": 5740.0, "principal_moments": [1620000.0, 2220000.0, 2770000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 19.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 27.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007497 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 19.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 27.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ace4a_0094", "family": "flanged", "tier": 1, "seed": 2468007498, "symmetry": "radial", "op_count": 2, "ir_hash": "492e64ddb8c1f9dc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 806000.0, "surface_area": 97200.0, "principal_moments": [1660000000.0, 1850000000.0, 1850000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 95.76, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 114.2, "min": 34.3, "max": 285.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 47.4, "min": 2.0, "max": 67.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 154.0, "min": 124.5, "max": 287.3, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 16.8, "min": 5.0, "max": 45.7, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 46.2, "min": 30.8, "max": 69.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007498 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 95.76, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 114.2, \"min\": 34.3, \"max\": 285.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 47.4, \"min\": 2.0, \"max\": 67.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 154.0, \"min\": 124.5, \"max\": 287.3, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 16.8, \"min\": 5.0, \"max\": 45.7, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 46.2, \"min\": 30.8, \"max\": 69.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace4b_0095", "family": "compound", "tier": 1, "seed": 2468007499, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "9c5d7fb36a2afb56", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26900.0, "surface_area": 8160.0, "principal_moments": [3700000.0, 6070000.0, 6180000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"base_w": {"type": "float", "default": 45, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 30.0, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 20.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 4.7, "min": 2.4, "max": 7.5, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 30.8, "min": 9.2, "max": 92.4, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 4.1, "min": 2.0, "max": 5.9, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007499 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 45, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 30.0, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 20.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 4.7, \"min\": 2.4, \"max\": 7.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 30.8, \"min\": 9.2, \"max\": 92.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 4.1, \"min\": 2.0, \"max\": 5.9, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ace4c_0096", "family": "ribbed", "tier": 2, "seed": 2468007500, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "e7052c95ddcb4f94", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34300.0, "surface_area": 17000.0, "principal_moments": [8390000.0, 14099999.999999998, 20700000.0], "n_faces": 54, "n_edges": 132, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 70, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 44.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 12.3, "min": 4.9, "max": 24.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.5, "min": 1.0, "max": 11.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007500 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 44.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 12.3, \"min\": 4.9, \"max\": 24.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.0, \"max\": 11.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace4d_0097", "family": "plate", "tier": 1, "seed": 2468007501, "symmetry": "radial", "op_count": 2, "ir_hash": "bca9d8262d29935a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 954.0, "surface_area": 1050.0, "principal_moments": [20000.0, 55100.0, 73700.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 24.86, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 16.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 7.5, "min": 5.0, "max": 11.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007501 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 24.86, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 16.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 7.5, \"min\": 5.0, \"max\": 11.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace4e_0098", "family": "block", "tier": 2, "seed": 2468007502, "symmetry": "none", "op_count": 3, "ir_hash": "0270678251add966", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22400.0, "surface_area": 8940.0, "principal_moments": [3520000.0, 3570000.0, 5590000.0], "n_faces": 16, "n_edges": 38, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 38.11, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 19.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 35.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 19.8, "min": 9.9, "max": 39.6, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 6.3, "min": 2.5, "max": 15.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.9, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007502 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 38.11, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 19.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 35.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 19.8, \"min\": 9.9, \"max\": 39.6, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 6.3, \"min\": 2.5, \"max\": 15.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.9, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace4f_0099", "family": "revolved", "tier": 0, "seed": 2468007503, "symmetry": "radial", "op_count": 1, "ir_hash": "d9015e53b3c857d9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 219000.0, "surface_area": 38500.0, "principal_moments": [99399999.99999999, 300000000.0, 300000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 54.96, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 138.7, "min": 41.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007503 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 54.96, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 138.7, \"min\": 41.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ace50_0100", "family": "flanged", "tier": 2, "seed": 2468007504, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "ce506d2d26faaca7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 48200.0, "surface_area": 16000.0, "principal_moments": [14999999.999999998, 20600000.0, 20600000.0], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 35.65, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 51.9, "min": 15.6, "max": 129.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.9, "min": 2.0, "max": 25.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 68.4, "min": 46.3, "max": 106.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.8, "min": 1.1, "max": 20.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 20.5, "min": 13.7, "max": 30.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007504 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35.65, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 51.9, \"min\": 15.6, \"max\": 129.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.9, \"min\": 2.0, \"max\": 25.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 68.4, \"min\": 46.3, \"max\": 106.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.8, \"min\": 1.1, \"max\": 20.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 20.5, \"min\": 13.7, \"max\": 30.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace51_0101", "family": "revolved", "tier": 1, "seed": 2468007505, "symmetry": "none", "op_count": 1, "ir_hash": "7a1e67321d42bd0a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1150000.0, "surface_area": 109000.0, "principal_moments": [1520000000.0, 7000000000.0, 7000000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 234.2, "min": 70.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 29.3, "min": 2.0, "max": 52.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 134.9, "min": 90.0, "max": 225.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 27.5, "min": 8.2, "max": 117.1, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007505 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 234.2, \"min\": 70.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 29.3, \"min\": 2.0, \"max\": 52.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 134.9, \"min\": 90.0, \"max\": 225.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 27.5, \"min\": 8.2, \"max\": 117.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace52_0102", "family": "revolved", "tier": 1, "seed": 2468007506, "symmetry": "none", "op_count": 1, "ir_hash": "d23af7a87a5ea891", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 267.0, "surface_area": 353.0, "principal_moments": [3020.0, 3020.0, 5250.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 10.92, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 4.2, "min": 1.3, "max": 12.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 6.2, "min": 2.0, "max": 7.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007506 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 10.92, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 4.2, \"min\": 1.3, \"max\": 12.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 6.2, \"min\": 2.0, \"max\": 7.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace53_0103", "family": "revolved", "tier": 2, "seed": 2468007507, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8769a99dd3c48b59", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 74500.0, "surface_area": 20000.0, "principal_moments": [14099999.999999998, 63599999.99999999, 63599999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 35.47, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 113.1, "min": 33.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007507 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35.47, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 113.1, \"min\": 33.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ace55_0105", "family": "ribbed", "tier": 2, "seed": 2468007509, "symmetry": "none", "op_count": 3, "ir_hash": "c484e66a1534ae3a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 57800.0, "surface_area": 26600.0, "principal_moments": [24099999.999999996, 40700000.0, 59799999.99999999], "n_faces": 54, "n_edges": 148, "n_vertices": 92}, "params": {"base_w": {"type": "float", "default": 90, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 63.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.8, "min": 6.7, "max": 33.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.0, "min": 1.0, "max": 10.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007509 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 63.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.8, \"min\": 6.7, \"max\": 33.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.0, \"max\": 10.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace56_0106", "family": "revolved", "tier": 1, "seed": 2468007510, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "ff29a3d5133b0cbc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7960.0, "surface_area": 2800.0, "principal_moments": [433000.0, 737000.0, 737000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 19.97, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 28.2, "min": 8.5, "max": 84.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 6.1, "min": 2.0, "max": 14.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007510 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 19.97, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 28.2, \"min\": 8.5, \"max\": 84.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 6.1, \"min\": 2.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z or Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ace59_0109", "family": "profiled", "tier": 1, "seed": 2468007513, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "187305b31ab812e3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 251000.0, "surface_area": 57800.0, "principal_moments": [60299999.99999999, 1370000000.0, 1370000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 40, "min": 20.0, "max": 80.0, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 300.0, "min": 90.0, "max": 900.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007513 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 300.0, \"min\": 90.0, \"max\": 900.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace5a_0110", "family": "plate", "tier": 1, "seed": 2468007514, "symmetry": "none", "op_count": 2, "ir_hash": "973d7e2a2af85146", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11700.0, "surface_area": 4310.0, "principal_moments": [506000.0, 2810000.0, 3030000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"plate_w": {"type": "float", "default": 52.02, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 19.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 1.9, "min": 2.0, "max": 1.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007514 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 52.02, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 19.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.9, \"min\": 2.0, \"max\": 1.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 9.8\n _ssy = 10.6\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace5b_0111", "family": "bracket", "tier": 2, "seed": 2468007515, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "abea7b81a0655875", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24200.0, "surface_area": 17100.0, "principal_moments": [9450000.0, 25599999.999999996, 26099999.999999996], "n_faces": 14, "n_edges": 45, "n_vertices": 28}, "params": {"base_len": {"type": "float", "default": 84.78, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 62.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 51.75, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.6, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007515 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 84.78, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 62.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 51.75, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.6, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace5c_0112", "family": "revolved", "tier": 0, "seed": 2468007516, "symmetry": "none", "op_count": 1, "ir_hash": "6c6f7c5f48ba8bf0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1930.0, "surface_area": 1820.0, "principal_moments": [28900.0, 169000.0, 169000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 10, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 36.8, "min": 11.0, "max": 110.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007516 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 10, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 36.8, \"min\": 11.0, \"max\": 110.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ace5d_0113", "family": "enclosure", "tier": 1, "seed": 2468007517, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "8de7f0ecfdebb216", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38800.0, "surface_area": 18900.0, "principal_moments": [18000000.0, 18300000.0, 22899999.999999996], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 48.95, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 48.2, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 41.9, "min": 16.8, "max": 83.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007517 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 48.95, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 48.2, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 41.9, \"min\": 16.8, \"max\": 83.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace5e_0114", "family": "plate", "tier": 2, "seed": 2468007518, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "9721db81d6ed123a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13200.0, "surface_area": 5990.0, "principal_moments": [897000.0, 6940000.0, 7760000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 28.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007518 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 28.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08012463808471437)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace5f_0115", "family": "revolved", "tier": 0, "seed": 2468007519, "symmetry": "none", "op_count": 1, "ir_hash": "46293a7124552bdc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6530.0, "surface_area": 3300.0, "principal_moments": [392000.0, 574000.0, 574000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 20, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 31.2, "min": 9.4, "max": 93.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007519 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 20, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 31.2, \"min\": 9.4, \"max\": 93.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace60_0116", "family": "plate", "tier": 1, "seed": 2468007520, "symmetry": "radial", "op_count": 2, "ir_hash": "aa3e0c0e171416b2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 85600.0, "surface_area": 21700.0, "principal_moments": [39800000.0, 97599999.99999999, 136000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 116.37, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 74.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 34.9, "min": 23.3, "max": 52.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007520 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 116.37, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 74.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 34.9, \"min\": 23.3, \"max\": 52.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace61_0117", "family": "plate", "tier": 2, "seed": 2468007521, "symmetry": "radial", "op_count": 3, "ir_hash": "46fbde3174dc6d76", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16400.0, "surface_area": 5280.0, "principal_moments": [1040000.0, 5900000.0, 6670000.0], "n_faces": 28, "n_edges": 78, "n_vertices": 52}, "params": {"plate_w": {"type": "float", "default": 65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 25.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 19.5, "min": 13.0, "max": 29.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007521 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 25.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 19.5, \"min\": 13.0, \"max\": 29.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08688106012378835)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ace62_0118", "family": "gear", "tier": 1, "seed": 2468007522, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "7c967bf3014c18b5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4070.0, "surface_area": 2630.0, "principal_moments": [270000.0, 270000.0, 521000.0], "n_faces": 129, "n_edges": 381, "n_vertices": 254}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 21, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.4, "min": 2.2, "max": 13.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 4.2, "min": 2.0, "max": 16.6, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007522 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 21, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.4, \"min\": 2.2, \"max\": 13.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 4.2, \"min\": 2.0, \"max\": 16.6, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ace63_0119", "family": "threaded", "tier": 2, "seed": 2468007523, "symmetry": "none", "op_count": 1, "ir_hash": "b82d42e56233e420", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24100.0, "surface_area": 9230.0, "principal_moments": [3150000.0, 6630000.0, 6630000.0], "n_faces": 399, "n_edges": 1139, "n_vertices": 742}, "params": {"major_d": {"type": "float", "default": 16.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.0, "min": 1.0, "max": 4.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 50.3, "min": 20.1, "max": 100.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007523 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 4.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 50.3, \"min\": 20.1, \"max\": 100.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace64_0120", "family": "plate", "tier": 1, "seed": 2468007524, "symmetry": "radial", "op_count": 2, "ir_hash": "7408fc6a7a0f2758", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23500.0, "surface_area": 11000.0, "principal_moments": [7940000.0, 11100000.0, 19000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 75, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 63.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 22.5, "min": 15.0, "max": 33.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007524 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 75, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 63.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 22.5, \"min\": 15.0, \"max\": 33.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace65_0121", "family": "bracket", "tier": 2, "seed": 2468007525, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "f3d2e0f5ac2f5d9b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14000.0, "surface_area": 11000.0, "principal_moments": [9940000.0, 12999999.999999998, 22000000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 80.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 2.4, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007525 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 80.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.4, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ace66_0122", "family": "ribbed", "tier": 2, "seed": 2468007526, "symmetry": "none", "op_count": 3, "ir_hash": "4d2c5dd95f33ca10", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37400.0, "surface_area": 15800.0, "principal_moments": [8690000.0, 22200000.0, 29599999.999999996], "n_faces": 46, "n_edges": 128, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 83.1, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 45.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 9.2, "min": 3.7, "max": 18.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.3, "min": 1.0, "max": 8.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 10.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007526 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 83.1, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 45.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 9.2, \"min\": 3.7, \"max\": 18.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.3, \"min\": 1.0, \"max\": 8.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 10.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ace67_0123", "family": "gear", "tier": 1, "seed": 2468007527, "symmetry": "none", "op_count": 1, "ir_hash": "bff1f21445c3d0ff", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34400.0, "surface_area": 10200.0, "principal_moments": [7410000.0, 7410000.0, 13399999.999999998], "n_faces": 111, "n_edges": 327, "n_vertices": 218}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 18, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 16.0, "min": 6.4, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 10.9, "min": 2.0, "max": 27.9, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007527 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 18, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 16.0, \"min\": 6.4, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 10.9, \"min\": 2.0, \"max\": 27.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace68_0124", "family": "revolved", "tier": 2, "seed": 2468007528, "symmetry": "radial", "op_count": 2, "ir_hash": "af26fefb3f2a8a5e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 409000.0, "surface_area": 49300.0, "principal_moments": [157000000.0, 1560000000.0, 1560000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 52.82, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 208.2, "min": 62.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.9, "min": 2.0, "max": 37.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007528 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 52.82, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 208.2, \"min\": 62.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.9, \"min\": 2.0, \"max\": 37.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ace6a_0126", "family": "enclosure", "tier": 1, "seed": 2468007530, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "67e2c7fea313cae5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 43900.0, "surface_area": 30000.0, "principal_moments": [28099999.999999996, 40000000.0, 49999999.99999999], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 75, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 56.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 44.7, "min": 17.9, "max": 89.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007530 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 75, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 56.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 44.7, \"min\": 17.9, \"max\": 89.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ace6b_0127", "family": "gear", "tier": 2, "seed": 2468007531, "symmetry": "none", "op_count": 1, "ir_hash": "040763ad8d244bac", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14800.0, "surface_area": 8040.0, "principal_moments": [3750000.0, 3750000.0, 7430000.0], "n_faces": 323, "n_edges": 963, "n_vertices": 642}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 40, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 18.4, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": -0.25, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.19, "min": 0.0, "max": 0.75, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 10.7, "min": 2.0, "max": 33.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007531 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 40, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 18.4, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.25, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.19, \"min\": 0.0, \"max\": 0.75, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 10.7, \"min\": 2.0, \"max\": 33.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace6c_0128", "family": "block", "tier": 2, "seed": 2468007532, "symmetry": "radial", "op_count": 3, "ir_hash": "f7f4fc62df875550", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 180000.0, "surface_area": 23800.0, "principal_moments": [83500000.0, 102000000.0, 137000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 71.73, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 40.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 62.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 21.5, "min": 14.3, "max": 32.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "boss_d": {"type": "float", "default": 9.7, "min": 4.8, "max": 19.4, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 7.1, "min": 2.8, "max": 17.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007532 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 71.73, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 40.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 62.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 21.5, \"min\": 14.3, \"max\": 32.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"boss_d\": {\"type\": 'float', \"default\": 9.7, \"min\": 4.8, \"max\": 19.4, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 7.1, \"min\": 2.8, \"max\": 17.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace6d_0129", "family": "plate", "tier": 0, "seed": 2468007533, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "652d0817f37ab44f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8410.0, "surface_area": 3140.0, "principal_moments": [659000.0, 928000.0, 1500000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 35.51, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 29.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007533 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 35.51, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 29.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace6e_0130", "family": "plate", "tier": 1, "seed": 2468007534, "symmetry": "radial", "op_count": 2, "ir_hash": "9fb354671a91ad07", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 49800.0, "surface_area": 19500.0, "principal_moments": [24999999.999999996, 50999999.99999999, 75700000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 110, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 77.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 33.0, "min": 22.0, "max": 49.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007534 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 110, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 77.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 33.0, \"min\": 22.0, \"max\": 49.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace70_0132", "family": "revolved", "tier": 2, "seed": 2468007536, "symmetry": "none", "op_count": 2, "ir_hash": "5226fe9115b7898f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 204000.0, "surface_area": 26800.0, "principal_moments": [99399999.99999999, 174000000.0, 174000000.0], "n_faces": 12, "n_edges": 20, "n_vertices": 12}, "params": {"outer_d": {"type": "float", "default": 59.48, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 84.9, "min": 25.5, "max": 254.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 20.5, "min": 2.0, "max": 41.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 2.69, "min": 1.08, "max": 8.07, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 8.7, "min": 3.48, "max": 26.1, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 55.2, "min": 12.7, "max": 72.2, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007536 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 59.48, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 84.9, \"min\": 25.5, \"max\": 254.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 20.5, \"min\": 2.0, \"max\": 41.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 2.69, \"min\": 1.08, \"max\": 8.07, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 8.7, \"min\": 3.48, \"max\": 26.1, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 55.2, \"min\": 12.7, \"max\": 72.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ace75_0137", "family": "gear", "tier": 1, "seed": 2468007541, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "5c843e36a4f99980", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17700.0, "surface_area": 7680.0, "principal_moments": [3780000.0, 3780000.0, 7410000.0], "n_faces": 231, "n_edges": 687, "n_vertices": 458}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 38, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 7.2, "min": 2.9, "max": 18.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 9.7, "min": 2.0, "max": 31.9, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007541 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 38, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 7.2, \"min\": 2.9, \"max\": 18.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 9.7, \"min\": 2.0, \"max\": 31.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace76_0138", "family": "block", "tier": 1, "seed": 2468007542, "symmetry": "none", "op_count": 2, "ir_hash": "14b277a1647a0082", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 529000.0, "surface_area": 49000.0, "principal_moments": [530000000.0, 586000000.0, 826000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 93.96, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 57.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007542 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 93.96, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 57.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace77_0139", "family": "compound", "tier": 1, "seed": 2468007543, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "90aa22107d306c92", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 48600.0, "surface_area": 10100.0, "principal_moments": [10600000.0, 11300000.0, 17500000.0], "n_faces": 24, "n_edges": 64, "n_vertices": 42}, "params": {"block_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 47.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 23.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 3.9, "min": 1.9, "max": 5.2, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 9.1, "min": 1.7, "max": 20.3, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 3.8, "min": 2.0, "max": 4.9, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007543 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 47.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 23.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 3.9, \"min\": 1.9, \"max\": 5.2, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 9.1, \"min\": 1.7, \"max\": 20.3, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 4.9, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ace7a_0142", "family": "block", "tier": 1, "seed": 2468007546, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "9a19ea81dcb7e658", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 57600.0, "surface_area": 12000.0, "principal_moments": [10600000.0, 19000000.0, 20900000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 29.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 36.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.6, "min": 2.0, "max": 3.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007546 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 29.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 36.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.6, \"min\": 2.0, \"max\": 3.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 10.3\n _ssy = 9.9\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ace7b_0143", "family": "flanged", "tier": 1, "seed": 2468007547, "symmetry": "none", "op_count": 2, "ir_hash": "7cd48afbaf4283f7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 202000.0, "surface_area": 42200.0, "principal_moments": [186000000.0, 186000000.0, 305000000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"outer_d": {"type": "float", "default": 65, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 43.0, "min": 12.9, "max": 107.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 26.4, "min": 2.0, "max": 45.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 134.5, "min": 84.5, "max": 195.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.7, "min": 2.3, "max": 17.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 40.4, "min": 26.9, "max": 60.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007547 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 43.0, \"min\": 12.9, \"max\": 107.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 26.4, \"min\": 2.0, \"max\": 45.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 134.5, \"min\": 84.5, \"max\": 195.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.7, \"min\": 2.3, \"max\": 17.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 40.4, \"min\": 26.9, \"max\": 60.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ace7c_0144", "family": "threaded", "tier": 0, "seed": 2468007548, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "106031aab42e75d9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23100.0, "surface_area": 7390.0, "principal_moments": [1440000.0, 7590000.0, 7590000.0], "n_faces": 357, "n_edges": 981, "n_vertices": 626}, "params": {"major_d": {"type": "float", "default": 24.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 3.0, "min": 1.5, "max": 6.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 60.0, "min": 24.0, "max": 120.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007548 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 24.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.5, \"max\": 6.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 60.0, \"min\": 24.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ace7d_0145", "family": "enclosure", "tier": 2, "seed": 2468007549, "symmetry": "none", "op_count": 4, "ir_hash": "8ce2358592ad375d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29900.0, "surface_area": 20800.0, "principal_moments": [10300000.0, 20200000.0, 22400000.0], "n_faces": 35, "n_edges": 108, "n_vertices": 72}, "params": {"enc_w": {"type": "float", "default": 69.23, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 30.7, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 46.0, "min": 18.4, "max": 92.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.1, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 6.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007549 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 69.23, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 30.7, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 46.0, \"min\": 18.4, \"max\": 92.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.1, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 6.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.0616690929477038)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ace7e_0146", "family": "ribbed", "tier": 2, "seed": 2468007550, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "1c64a8d2d0f45e05", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45200.0, "surface_area": 16100.0, "principal_moments": [12699999.999999998, 23499999.999999996, 30499999.999999996], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 70, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 47.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 19.8, "min": 7.9, "max": 39.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.6, "min": 1.0, "max": 14.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007550 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 47.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 19.8, \"min\": 7.9, \"max\": 39.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 1.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace7f_0147", "family": "revolved", "tier": 0, "seed": 2468007551, "symmetry": "none", "op_count": 1, "ir_hash": "10555198b27a9c52", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 52000.0, "surface_area": 12100.0, "principal_moments": [17600000.0, 17600000.0, 31399999.999999996], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 63.42, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 24.7, "min": 7.4, "max": 74.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007551 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 63.42, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 24.7, \"min\": 7.4, \"max\": 74.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace81_0149", "family": "compound", "tier": 1, "seed": 2468007553, "symmetry": "none", "op_count": 3, "ir_hash": "8daa9b054676329a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 413000.0, "surface_area": 42800.0, "principal_moments": [380000000.0, 380000000.0, 463000000.0], "n_faces": 14, "n_edges": 34, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 80.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 65.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 18.4, "min": 7.4, "max": 29.4, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 25.0, "min": 4.6, "max": 55.2, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 10.6, "min": 2.0, "max": 13.2, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007553 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 80.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 65.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 18.4, \"min\": 7.4, \"max\": 29.4, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 4.6, \"max\": 55.2, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 10.6, \"min\": 2.0, \"max\": 13.2, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ace83_0151", "family": "flanged", "tier": 2, "seed": 2468007555, "symmetry": "none", "op_count": 2, "ir_hash": "8a1fd7625197345d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39100.0, "surface_area": 14300.0, "principal_moments": [12499999.999999998, 12499999.999999998, 20000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 35, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 26.4, "min": 7.9, "max": 66.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 12.9, "min": 2.0, "max": 24.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 79.0, "min": 45.5, "max": 105.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.5, "min": 1.3, "max": 10.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 23.7, "min": 15.8, "max": 35.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007555 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 26.4, \"min\": 7.9, \"max\": 66.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 12.9, \"min\": 2.0, \"max\": 24.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 79.0, \"min\": 45.5, \"max\": 105.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.3, \"max\": 10.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 23.7, \"min\": 15.8, \"max\": 35.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace84_0152", "family": "compound", "tier": 1, "seed": 2468007556, "symmetry": "none", "op_count": 2, "ir_hash": "53e89ac7e2f1819f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32200.0, "surface_area": 6920.0, "principal_moments": [2310000.0, 17800000.0, 17800000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 25.36, "min": 12.7, "max": 45.6, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 55.0, "min": 22.0, "max": 110.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 11.5, "min": 5.8, "max": 22.8, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 42.4, "min": 12.7, "max": 106.0, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007556 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 25.36, \"min\": 12.7, \"max\": 45.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 55.0, \"min\": 22.0, \"max\": 110.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 11.5, \"min\": 5.8, \"max\": 22.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 42.4, \"min\": 12.7, \"max\": 106.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ace85_0153", "family": "ribbed", "tier": 1, "seed": 2468007557, "symmetry": "none", "op_count": 2, "ir_hash": "de6ded6cc567d57b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31400.0, "surface_area": 14700.0, "principal_moments": [7510000.0, 15099999.999999998, 21400000.0], "n_faces": 46, "n_edges": 112, "n_vertices": 68}, "params": {"base_w": {"type": "float", "default": 75, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 38.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 10.1, "min": 4.0, "max": 20.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.6, "min": 1.0, "max": 14.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007557 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 75, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 38.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 10.1, \"min\": 4.0, \"max\": 20.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 1.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace86_0154", "family": "plate", "tier": 1, "seed": 2468007558, "symmetry": "none", "op_count": 2, "ir_hash": "5d9b4790219c9120", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24600.0, "surface_area": 10300.0, "principal_moments": [3300000.0, 22400000.0, 25499999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 104.86, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 39.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 9.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007558 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 104.86, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 39.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 9.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace87_0155", "family": "compound", "tier": 2, "seed": 2468007559, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "62860ff9b9a1f595", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 194000.0, "surface_area": 32900.0, "principal_moments": [168000000.0, 205000000.0, 266000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"base_w": {"type": "float", "default": 107.59, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 93.2, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 16.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 28.8, "min": 11.5, "max": 46.6, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 57.0, "min": 17.1, "max": 171.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007559 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 107.59, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 93.2, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 16.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 28.8, \"min\": 11.5, \"max\": 46.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 57.0, \"min\": 17.1, \"max\": 171.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ace88_0156", "family": "gear", "tier": 2, "seed": 2468007560, "symmetry": "none", "op_count": 1, "ir_hash": "35d3fdb381c4e575", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12800.0, "surface_area": 5350.0, "principal_moments": [1550000.0, 1550000.0, 2900000.0], "n_faces": 203, "n_edges": 603, "n_vertices": 402}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 25, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 9.5, "min": 3.8, "max": 23.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 28.1, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": -0.16, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.32, "min": 0.0, "max": 0.75, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 20.2, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007560 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 25, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 9.5, \"min\": 3.8, \"max\": 23.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 28.1, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.16, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.32, \"min\": 0.0, \"max\": 0.75, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 20.2, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace89_0157", "family": "bracket", "tier": 2, "seed": 2468007561, "symmetry": "none", "op_count": 1, "ir_hash": "d62226e4142886b0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13000.0, "surface_area": 7560.0, "principal_moments": [1960000.0, 4370000.0, 5600000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 26.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 38.49, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 30.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 3.6, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007561 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 26.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 38.49, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 30.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.6, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace8a_0158", "family": "plate", "tier": 1, "seed": 2468007562, "symmetry": "radial", "op_count": 2, "ir_hash": "03517b56509b369a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29000.0, "surface_area": 9760.0, "principal_moments": [5260000.0, 15699999.999999998, 20700000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 46.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.0, "min": 16.0, "max": 36.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007562 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 46.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.0, \"min\": 16.0, \"max\": 36.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace8b_0159", "family": "plate", "tier": 2, "seed": 2468007563, "symmetry": "none", "op_count": 3, "ir_hash": "8418801c27c4e2b0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5240.0, "surface_area": 2860.0, "principal_moments": [153000.0, 1100000.0, 1220000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"plate_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 18.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.1, "min": 2.0, "max": 2.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007563 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 18.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.1, \"min\": 2.0, \"max\": 2.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(13.3, 14.5, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.11739933985670489)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ace8c_0160", "family": "ribbed", "tier": 1, "seed": 2468007564, "symmetry": "none", "op_count": 2, "ir_hash": "e97a5a8a6a23a1f4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22400.0, "surface_area": 8580.0, "principal_moments": [3230000.0, 4510000.0, 6400000.0], "n_faces": 26, "n_edges": 60, "n_vertices": 40}, "params": {"base_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 37.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 11.3, "min": 4.5, "max": 22.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.4, "min": 1.0, "max": 8.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007564 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 37.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 11.3, \"min\": 4.5, \"max\": 22.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.4, \"min\": 1.0, \"max\": 8.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace8d_0161", "family": "plate", "tier": 2, "seed": 2468007565, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "c426583e04429740", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19900.0, "surface_area": 8530.0, "principal_moments": [1960000.0, 16199999.999999998, 18000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 99.24, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 34.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 7.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007565 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 99.24, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 34.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 7.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.05295773231034656)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace8e_0162", "family": "compound", "tier": 2, "seed": 2468007566, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "a47bdfd86af4d3a0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 69700.0, "surface_area": 15400.0, "principal_moments": [23299999.999999996, 28499999.999999996, 28499999.999999996], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 28.77, "min": 17.3, "max": 46.0, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 28.6, "min": 11.4, "max": 71.5, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 30.3, "min": 15.2, "max": 39.9, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 33.5, "min": 10.0, "max": 83.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 18.0, "min": 2.0, "max": 21.8, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007566 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 28.77, \"min\": 17.3, \"max\": 46.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 28.6, \"min\": 11.4, \"max\": 71.5, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 30.3, \"min\": 15.2, \"max\": 39.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 33.5, \"min\": 10.0, \"max\": 83.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 18.0, \"min\": 2.0, \"max\": 21.8, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_r\"], p[\"base_r\"]) * 0.1195943095245777)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace8f_0163", "family": "revolved", "tier": 1, "seed": 2468007567, "symmetry": "none", "op_count": 1, "ir_hash": "274f2f2dca243076", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 195000.0, "surface_area": 43900.0, "principal_moments": [170000000.0, 170000000.0, 260000000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 65.74, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 57.6, "min": 17.3, "max": 172.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 131.8, "min": 78.9, "max": 197.2, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.3, "min": 1.9, "max": 28.8, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007567 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65.74, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 57.6, \"min\": 17.3, \"max\": 172.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 131.8, \"min\": 78.9, \"max\": 197.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.3, \"min\": 1.9, \"max\": 28.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ace90_0164", "family": "threaded", "tier": 0, "seed": 2468007568, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d40fa87c686ce570", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10300.0, "surface_area": 4800.0, "principal_moments": [285000.0, 3210000.0, 3210000.0], "n_faces": 537, "n_edges": 1481, "n_vertices": 946}, "params": {"major_d": {"type": "float", "default": 16.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.0, "min": 1.0, "max": 4.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 60.0, "min": 24.0, "max": 120.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007568 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 4.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 60.0, \"min\": 24.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ace92_0166", "family": "ribbed", "tier": 2, "seed": 2468007570, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "4e991c14b68e001d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9380.0, "surface_area": 6400.0, "principal_moments": [1100000.0, 2120000.0, 2700000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 26.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 14.0, "min": 5.6, "max": 28.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.8, "min": 1.0, "max": 9.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007570 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 26.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 14.0, \"min\": 5.6, \"max\": 28.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.8, \"min\": 1.0, \"max\": 9.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ace93_0167", "family": "plate", "tier": 2, "seed": 2468007571, "symmetry": "none", "op_count": 3, "ir_hash": "bc8eb4602acabe87", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 51100.0, "surface_area": 14500.0, "principal_moments": [9310000.0, 55299999.99999999, 63699999.99999999], "n_faces": 22, "n_edges": 48, "n_vertices": 32}, "params": {"plate_w": {"type": "float", "default": 115, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 46.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 10.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "cb_d": {"type": "float", "default": 10.6, "min": 7.9, "max": 15.9, "step": 0.5, "group": "Holes", "label": "Counterbore diameter (mm)"}, "cb_depth": {"type": "float", "default": 4.2, "min": 2.1, "max": 8.4, "step": 0.5, "group": "Holes", "label": "Counterbore depth (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007571 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 115, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 46.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 10.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"cb_d\": {\"type\": 'float', \"default\": 10.6, \"min\": 7.9, \"max\": 15.9, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Counterbore diameter (mm)'},\n \"cb_depth\": {\"type\": 'float', \"default\": 4.2, \"min\": 2.1, \"max\": 8.4, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Counterbore depth (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cboreHole(p[\"hole_d\"], p[\"cb_d\"], p[\"cb_depth\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.10186735980320526)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace94_0168", "family": "revolved", "tier": 2, "seed": 2468007572, "symmetry": "none", "op_count": 2, "ir_hash": "595cf75f431f4dd8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 774000.0, "surface_area": 115000.0, "principal_moments": [729000000.0, 5820000000.0, 5820000000.0], "n_faces": 12, "n_edges": 20, "n_vertices": 12}, "params": {"outer_d": {"type": "float", "default": 75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 286.7, "min": 86.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 44.9, "min": 2.0, "max": 52.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 5.55, "min": 2.22, "max": 16.65, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 31.84, "min": 12.74, "max": 95.52, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 94.3, "min": 43.0, "max": 243.7, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.7, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007572 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 286.7, \"min\": 86.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 44.9, \"min\": 2.0, \"max\": 52.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 5.55, \"min\": 2.22, \"max\": 16.65, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 31.84, \"min\": 12.74, \"max\": 95.52, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 94.3, \"min\": 43.0, \"max\": 243.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.7, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace96_0170", "family": "bracket", "tier": 2, "seed": 2468007574, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "85e22ea01203e9f3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11300.0, "surface_area": 8200.0, "principal_moments": [2500000.0, 3590000.0, 4720000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 37.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.9, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007574 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 37.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.9, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ace9a_0174", "family": "bracket", "tier": 1, "seed": 2468007578, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "0dbdd1d9596a5e27", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12400.0, "surface_area": 9120.0, "principal_moments": [3140000.0, 4370000.0, 6260000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 34.12, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 38.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 60.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007578 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 34.12, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 38.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 60.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ace9c_0176", "family": "gear", "tier": 2, "seed": 2468007580, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8f2249f7a89f094b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6570.0, "surface_area": 3430.0, "principal_moments": [538000.0, 538000.0, 1020000.0], "n_faces": 179, "n_edges": 531, "n_vertices": 354}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 22, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 7.2, "min": 2.9, "max": 18.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 13.6, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.24, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.26, "min": 0.0, "max": 0.75, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 5.1, "min": 2.0, "max": 17.6, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007580 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 22, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 7.2, \"min\": 2.9, \"max\": 18.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 13.6, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.24, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.26, \"min\": 0.0, \"max\": 0.75, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 5.1, \"min\": 2.0, \"max\": 17.6, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ace9d_0177", "family": "gear", "tier": 0, "seed": 2468007581, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ea3183b170e4734d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 69600.0, "surface_area": 17600.0, "principal_moments": [31799999.999999996, 31799999.999999996, 61799999.99999999], "n_faces": 170, "n_edges": 504, "n_vertices": 336}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 28, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 12.7, "min": 5.1, "max": 31.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007581 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 28, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 12.7, \"min\": 5.1, \"max\": 31.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ace9e_0178", "family": "compound", "tier": 1, "seed": 2468007582, "symmetry": "none", "op_count": 2, "ir_hash": "d53ef509e881ba46", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26800.0, "surface_area": 8600.0, "principal_moments": [6060000.0, 6060000.0, 6120000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 25, "min": 15.0, "max": 40.0, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 13.2, "min": 5.3, "max": 33.0, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 22.0, "min": 11.0, "max": 34.6, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 28.3, "min": 8.5, "max": 70.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 12.9, "min": 2.0, "max": 15.8, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007582 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 13.2, \"min\": 5.3, \"max\": 33.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 22.0, \"min\": 11.0, \"max\": 34.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 28.3, \"min\": 8.5, \"max\": 70.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 12.9, \"min\": 2.0, \"max\": 15.8, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ace9f_0179", "family": "revolved", "tier": 2, "seed": 2468007583, "symmetry": "none", "op_count": 1, "ir_hash": "481ea051b38c0997", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 296000.0, "surface_area": 44600.0, "principal_moments": [317000000.0, 317000000.0, 477000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 75.43, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 56.4, "min": 16.9, "max": 169.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 41.2, "min": 2.0, "max": 52.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 124.1, "min": 90.5, "max": 226.3, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 15.6, "min": 4.7, "max": 28.2, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007583 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75.43, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 56.4, \"min\": 16.9, \"max\": 169.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 41.2, \"min\": 2.0, \"max\": 52.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 124.1, \"min\": 90.5, \"max\": 226.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 15.6, \"min\": 4.7, \"max\": 28.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acea0_0180", "family": "compound", "tier": 2, "seed": 2468007584, "symmetry": "none", "op_count": 5, "ir_hash": "ddfc33db074aedf2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26200.0, "surface_area": 7280.0, "principal_moments": [3650000.0, 3980000.0, 5740000.0], "n_faces": 21, "n_edges": 49, "n_vertices": 31}, "params": {"block_w": {"type": "float", "default": 35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 37.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 20.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 5.0, "min": 2.0, "max": 9.4, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 6.6, "min": 1.2, "max": 15.0, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 2.7, "min": 2.0, "max": 3.6, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 7.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007584 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 37.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 20.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 9.4, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 6.6, \"min\": 1.2, \"max\": 15.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 2.7, \"min\": 2.0, \"max\": 3.6, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 7.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acea1_0181", "family": "gear", "tier": 0, "seed": 2468007585, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "bb466532e9dfa48f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 434.0, "surface_area": 509.0, "principal_moments": [4180.0, 4180.0, 5930.0], "n_faces": 62, "n_edges": 180, "n_vertices": 120}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 10, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.8, "min": 2.3, "max": 14.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007585 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 10, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.3, \"max\": 14.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931acea2_0182", "family": "enclosure", "tier": 1, "seed": 2468007586, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "90f8c69706d09d5a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 68900.0, "surface_area": 48300.0, "principal_moments": [73100000.0, 87800000.0, 99499999.99999999], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 80, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 54.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 78.2, "min": 31.3, "max": 156.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.9, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007586 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 80, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 54.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 78.2, \"min\": 31.3, \"max\": 156.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.9, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acea4_0184", "family": "plate", "tier": 2, "seed": 2468007588, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "211e277105272ed0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2700.0, "surface_area": 1740.0, "principal_moments": [54400.0, 153000.0, 162000.0], "n_faces": 42, "n_edges": 120, "n_vertices": 80}, "params": {"plate_w": {"type": "float", "default": 25, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 12.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.6, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007588 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 12.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.6, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.05978793223902179)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acea5_0185", "family": "bracket", "tier": 2, "seed": 2468007589, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "04ba87f7c2fe5d93", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13500.0, "surface_area": 9900.0, "principal_moments": [3230000.0, 6760000.0, 7330000.0], "n_faces": 14, "n_edges": 45, "n_vertices": 28}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 48.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 42.34, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 2.8, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007589 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 48.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 42.34, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.8, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acea7_0187", "family": "block", "tier": 1, "seed": 2468007591, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "9ffc1968d94b5f6c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 76800.0, "surface_area": 15900.0, "principal_moments": [15899999.999999998, 44200000.0, 54099999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 45.21, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 21.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 80.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007591 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45.21, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 21.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 80.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931acea8_0188", "family": "ribbed", "tier": 1, "seed": 2468007592, "symmetry": "none", "op_count": 2, "ir_hash": "21021ed9985df6b4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15900.0, "surface_area": 7870.0, "principal_moments": [1730000.0, 4620000.0, 5680000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 55.35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 28.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 11.3, "min": 4.5, "max": 22.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.1, "min": 1.0, "max": 5.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007592 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 55.35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 28.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 11.3, \"min\": 4.5, \"max\": 22.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.1, \"min\": 1.0, \"max\": 5.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931aceaa_0190", "family": "bracket", "tier": 2, "seed": 2468007594, "symmetry": "none", "op_count": 1, "ir_hash": "936e14b49260dee4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13200.0, "surface_area": 8300.0, "principal_moments": [5690000.0, 6670000.0, 11499999.999999998], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 52.36, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 62.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 19.48, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 7.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.5, "min": 2.0, "max": 9.7, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007594 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 52.36, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 62.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 19.48, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 7.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 2.0, \"max\": 9.7, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acead_0193", "family": "flanged", "tier": 1, "seed": 2468007597, "symmetry": "none", "op_count": 2, "ir_hash": "8c1a0bfecebeebea", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 188000.0, "surface_area": 39000.0, "principal_moments": [167000000.0, 167000000.0, 253000000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"outer_d": {"type": "float", "default": 57.44, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 49.1, "min": 14.7, "max": 122.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 25.2, "min": 2.0, "max": 40.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 124.7, "min": 74.7, "max": 172.3, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.0, "min": 2.7, "max": 19.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 37.4, "min": 24.9, "max": 56.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007597 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 57.44, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 49.1, \"min\": 14.7, \"max\": 122.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 25.2, \"min\": 2.0, \"max\": 40.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 124.7, \"min\": 74.7, \"max\": 172.3, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.0, \"min\": 2.7, \"max\": 19.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 37.4, \"min\": 24.9, \"max\": 56.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931aceae_0194", "family": "revolved", "tier": 2, "seed": 2468007598, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "35d86d0edfaec860", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 54800.0, "surface_area": 13400.0, "principal_moments": [16199999.999999998, 16199999.999999998, 24999999.999999996], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 45.53, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 27.1, "min": 8.1, "max": 81.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 14.0, "min": 2.0, "max": 31.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 72.8, "min": 54.6, "max": 136.6, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.9, "min": 1.8, "max": 13.6, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.6, "min": 0.1, "max": 1.8, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007598 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45.53, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 27.1, \"min\": 8.1, \"max\": 81.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 14.0, \"min\": 2.0, \"max\": 31.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 72.8, \"min\": 54.6, \"max\": 136.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.9, \"min\": 1.8, \"max\": 13.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.6, \"min\": 0.1, \"max\": 1.8, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931aceb1_0197", "family": "plate", "tier": 1, "seed": 2468007601, "symmetry": "none", "op_count": 2, "ir_hash": "28941d7880ca5f0c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5800.0, "surface_area": 2980.0, "principal_moments": [252000.0, 981000.0, 1200000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 22.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007601 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 22.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931aceb2_0198", "family": "block", "tier": 2, "seed": 2468007602, "symmetry": "none", "op_count": 3, "ir_hash": "a18b186cecc53fbc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 50900.0, "surface_area": 12000.0, "principal_moments": [11399999.999999998, 12399999.999999998, 19400000.0], "n_faces": 24, "n_edges": 63, "n_vertices": 42}, "params": {"block_w": {"type": "float", "default": 47.57, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 23.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 48.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 6.8, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "boss_d": {"type": "float", "default": 14.0, "min": 7.0, "max": 28.0, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 5.1, "min": 2.0, "max": 12.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007602 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 47.57, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 23.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 48.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 6.8, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 14.0, \"min\": 7.0, \"max\": 28.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 5.1, \"min\": 2.0, \"max\": 12.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931aceb3_0199", "family": "flanged", "tier": 2, "seed": 2468007603, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "94f4f0430cecc7a1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 64300.0, "surface_area": 18200.0, "principal_moments": [22300000.0, 30399999.999999996, 30399999.999999996], "n_faces": 32, "n_edges": 80, "n_vertices": 47}, "params": {"outer_d": {"type": "float", "default": 40, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 54.8, "min": 16.4, "max": 137.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.5, "min": 2.0, "max": 28.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 71.7, "min": 52.0, "max": 120.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.5, "min": 1.3, "max": 21.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 21.5, "min": 14.3, "max": 32.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007603 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 54.8, \"min\": 16.4, \"max\": 137.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.5, \"min\": 2.0, \"max\": 28.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 71.7, \"min\": 52.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.3, \"max\": 21.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 21.5, \"min\": 14.3, \"max\": 32.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931aceb5_0201", "family": "ribbed", "tier": 2, "seed": 2468007605, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "1f4959541b0105d4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24700.0, "surface_area": 9670.0, "principal_moments": [3230000.0, 7960000.0, 10100000.0], "n_faces": 46, "n_edges": 128, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 31.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 7.0, "min": 2.8, "max": 14.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.0, "min": 1.0, "max": 12.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 7.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007605 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 31.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 7.0, \"min\": 2.8, \"max\": 14.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 1.0, \"max\": 12.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 7.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931aceb6_0202", "family": "compound", "tier": 2, "seed": 2468007606, "symmetry": "none", "op_count": 2, "ir_hash": "1abf49a185cb1b20", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 76900.0, "surface_area": 12100.0, "principal_moments": [22100000.0, 31099999.999999996, 31199999.999999996], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"base_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 30.0, "min": 18.0, "max": 48.0, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 28.5, "min": 11.4, "max": 71.2, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 23.1, "min": 11.6, "max": 38.8, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 37.9, "min": 11.4, "max": 94.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007606 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 30.0, \"min\": 18.0, \"max\": 48.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 28.5, \"min\": 11.4, \"max\": 71.2, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 23.1, \"min\": 11.6, \"max\": 38.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 37.9, \"min\": 11.4, \"max\": 94.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931aceb7_0203", "family": "plate", "tier": 0, "seed": 2468007607, "symmetry": "radial", "op_count": 1, "ir_hash": "bd34a1580838a6d7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 55000.0, "surface_area": 12500.0, "principal_moments": [12499999.999999998, 37800000.0, 48999999.99999999], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 90, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 50.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007607 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 50.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931aceb8_0204", "family": "ribbed", "tier": 2, "seed": 2468007608, "symmetry": "none", "op_count": 2, "ir_hash": "bb189b1c22f40446", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12600.0, "surface_area": 7490.0, "principal_moments": [1410000.0, 3700000.0, 4580000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 27.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 11.7, "min": 4.7, "max": 23.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.3, "min": 1.0, "max": 5.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007608 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 27.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 11.7, \"min\": 4.7, \"max\": 23.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.3, \"min\": 1.0, \"max\": 5.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931aceb9_0205", "family": "ribbed", "tier": 1, "seed": 2468007609, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "351cb4dc07e07024", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27000.0, "surface_area": 13000.0, "principal_moments": [7050000.0, 18000000.0, 22899999.999999996], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 75.48, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 46.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 17.3, "min": 6.9, "max": 34.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.5, "min": 1.0, "max": 11.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007609 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 75.48, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 46.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 17.3, \"min\": 6.9, \"max\": 34.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.0, \"max\": 11.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931aceba_0206", "family": "enclosure", "tier": 1, "seed": 2468007610, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "934e84b30ffbe689", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 78100.0, "surface_area": 30600.0, "principal_moments": [48099999.99999999, 55799999.99999999, 81200000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 72.1, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 32.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 70.9, "min": 28.4, "max": 141.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007610 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 72.1, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 32.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 70.9, \"min\": 28.4, \"max\": 141.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acebb_0207", "family": "plate", "tier": 0, "seed": 2468007611, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "71422776f2a958ce", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3730.0, "surface_area": 2960.0, "principal_moments": [146000.0, 1040000.0, 1180000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 57.77, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 21.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007611 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 57.77, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 21.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acebc_0208", "family": "revolved", "tier": 2, "seed": 2468007612, "symmetry": "none", "op_count": 1, "ir_hash": "df9f3115ea0e2e1a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23300.0, "surface_area": 8910.0, "principal_moments": [2180000.0, 8070000.0, 8070000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 25, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 71.1, "min": 21.3, "max": 213.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007612 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 71.1, \"min\": 21.3, \"max\": 213.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acebd_0209", "family": "plate", "tier": 2, "seed": 2468007613, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "498ef02a6f1da0a5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10600.0, "surface_area": 3840.0, "principal_moments": [414000.0, 2270000.0, 2430000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 18.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007613 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 18.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.10956293274715337)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931acebe_0210", "family": "profiled", "tier": 1, "seed": 2468007614, "symmetry": "none", "op_count": 1, "ir_hash": "24a2fef087c4f00e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 133000.0, "surface_area": 29200.0, "principal_moments": [37200000.0, 162000000.0, 162000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 43.27, "min": 21.6, "max": 86.5, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 135.2, "min": 40.6, "max": 405.6, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007614 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 43.27, \"min\": 21.6, \"max\": 86.5, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 135.2, \"min\": 40.6, \"max\": 405.6, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acebf_0211", "family": "revolved", "tier": 1, "seed": 2468007615, "symmetry": "none", "op_count": 1, "ir_hash": "55ebe79cd8a2685f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 125000.0, "surface_area": 26600.0, "principal_moments": [38900000.0, 119000000.0, 119000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 45.49, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 115.6, "min": 34.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007615 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45.49, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 115.6, \"min\": 34.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acec0_0212", "family": "revolved", "tier": 0, "seed": 2468007616, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "f0d6affe03e13c16", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 536000.0, "surface_area": 65900.0, "principal_moments": [514000000.0, 1070000000.0, 1070000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 80.0, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 159.9, "min": 48.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007616 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 80.0, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 159.9, \"min\": 48.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acec2_0214", "family": "compound", "tier": 1, "seed": 2468007618, "symmetry": "none", "op_count": 2, "ir_hash": "01bf09e2f395b71b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1570.0, "surface_area": 1260.0, "principal_moments": [47900.0, 47900.0, 60600.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 10.0, "min": 6.0, "max": 16.0, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 4.9, "min": 2.0, "max": 12.2, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 10.5, "min": 5.2, "max": 13.9, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 7.9, "min": 2.4, "max": 19.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 6.2, "min": 2.0, "max": 7.6, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007618 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 10.0, \"min\": 6.0, \"max\": 16.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.0, \"max\": 12.2, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 5.2, \"max\": 13.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 7.9, \"min\": 2.4, \"max\": 19.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 6.2, \"min\": 2.0, \"max\": 7.6, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acec3_0215", "family": "bracket", "tier": 2, "seed": 2468007619, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "5cae5545c444af84", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 83500.0, "surface_area": 25200.0, "principal_moments": [63799999.99999999, 110000000.0, 145000000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 77.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45.56, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 8.9, "min": 4.0, "max": 22.8, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007619 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 77.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45.56, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 8.9, \"min\": 4.0, \"max\": 22.8, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acec4_0216", "family": "plate", "tier": 1, "seed": 2468007620, "symmetry": "none", "op_count": 2, "ir_hash": "6063c1c37249d07c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7240.0, "surface_area": 5550.0, "principal_moments": [1170000.0, 1850000.0, 3010000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 55.47, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 44.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 9.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007620 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 55.47, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 44.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 9.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acec5_0217", "family": "threaded", "tier": 0, "seed": 2468007621, "symmetry": "none", "op_count": 1, "ir_hash": "2b23df162296e6c8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 640.0, "surface_area": 804.0, "principal_moments": [2380.0, 42600.0, 42600.0], "n_faces": 285, "n_edges": 733, "n_vertices": 450}, "params": {"major_d": {"type": "float", "default": 6.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.0, "min": 0.5, "max": 2.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 28.0, "min": 11.2, "max": 56.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007621 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.5, \"max\": 2.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 28.0, \"min\": 11.2, \"max\": 56.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acec6_0218", "family": "bracket", "tier": 1, "seed": 2468007622, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "1c120ef4f339d104", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42600.0, "surface_area": 30400.0, "principal_moments": [47899999.99999999, 67400000.0, 93699999.99999999], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007622 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acec7_0219", "family": "bracket", "tier": 1, "seed": 2468007623, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "adbf8bfe057bf644", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39400.0, "surface_area": 28100.0, "principal_moments": [20900000.0, 92099999.99999999, 93899999.99999999], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 86.34, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 78.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 58.78, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 65.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007623 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 86.34, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 78.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 58.78, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 65.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acec8_0220", "family": "compound", "tier": 1, "seed": 2468007624, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "2fb39d189193bbce", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18500.0, "surface_area": 5650.0, "principal_moments": [1990000.0, 2960000.0, 2980000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 26.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 26.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 11.8, "min": 4.7, "max": 18.2, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 23.3, "min": 3.5, "max": 47.2, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 5.6, "min": 2.0, "max": 8.5, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007624 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 26.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 26.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 11.8, \"min\": 4.7, \"max\": 18.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 23.3, \"min\": 3.5, \"max\": 47.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 5.6, \"min\": 2.0, \"max\": 8.5, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acecd_0225", "family": "revolved", "tier": 1, "seed": 2468007629, "symmetry": "none", "op_count": 1, "ir_hash": "0ee6834ce1ce10c0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10100.0, "surface_area": 4690.0, "principal_moments": [679000.0, 1450000.0, 1450000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 21.16, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 43.1, "min": 12.9, "max": 129.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007629 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 21.16, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 43.1, \"min\": 12.9, \"max\": 129.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931acece_0226", "family": "enclosure", "tier": 1, "seed": 2468007630, "symmetry": "none", "op_count": 2, "ir_hash": "3a34876b4fb666b5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 52400.0, "surface_area": 28600.0, "principal_moments": [22100000.0, 60899999.99999999, 63399999.99999999], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 93.76, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 40.5, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 43.2, "min": 17.3, "max": 86.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007630 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 93.76, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 40.5, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 43.2, \"min\": 17.3, \"max\": 86.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acecf_0227", "family": "bracket", "tier": 2, "seed": 2468007631, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "152596f609ef0982", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26400.0, "surface_area": 9570.0, "principal_moments": [2900000.0, 32799999.999999996, 33900000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 43.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 69.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 8.2, "min": 4.0, "max": 10.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007631 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 43.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 69.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 8.2, \"min\": 4.0, \"max\": 10.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931aced0_0228", "family": "revolved", "tier": 2, "seed": 2468007632, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "af9ca4203454d521", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 89500.0, "surface_area": 17800.0, "principal_moments": [38000000.0, 38400000.0, 38400000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 53.2, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 60.4, "min": 18.1, "max": 181.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007632 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 53.2, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 60.4, \"min\": 18.1, \"max\": 181.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931aced2_0230", "family": "profiled", "tier": 1, "seed": 2468007634, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "c0d6fb6ef9fae877", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 122000.0, "surface_area": 14900.0, "principal_moments": [25699999.999999996, 101000000.0, 101000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"circ_r": {"type": "float", "default": 21.58, "min": 10.8, "max": 43.2, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 93.0, "min": 27.9, "max": 279.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007634 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 21.58, \"min\": 10.8, \"max\": 43.2, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 93.0, \"min\": 27.9, \"max\": 279.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931aced3_0231", "family": "revolved", "tier": 1, "seed": 2468007635, "symmetry": "none", "op_count": 2, "ir_hash": "b4a00ff6c985716e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 54100.0, "surface_area": 13100.0, "principal_moments": [15399999.999999998, 23299999.999999996, 23299999.999999996], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 29.31, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 55.8, "min": 16.7, "max": 167.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 9.6, "min": 2.0, "max": 20.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 60.0, "min": 35.2, "max": 87.9, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.6, "min": 2.9, "max": 27.9, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007635 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 29.31, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 55.8, \"min\": 16.7, \"max\": 167.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 9.6, \"min\": 2.0, \"max\": 20.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 60.0, \"min\": 35.2, \"max\": 87.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.6, \"min\": 2.9, \"max\": 27.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 3.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931aced6_0234", "family": "plate", "tier": 1, "seed": 2468007638, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3a5a05099462df54", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19200.0, "surface_area": 9300.0, "principal_moments": [2670000.0, 14499999.999999998, 17100000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 95.6, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 40.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 9.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007638 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 95.6, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 40.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 9.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931aced7_0235", "family": "gear", "tier": 0, "seed": 2468007639, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "21f05d6094dad1a6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33600.0, "surface_area": 11300.0, "principal_moments": [10300000.0, 10300000.0, 20200000.0], "n_faces": 140, "n_edges": 414, "n_vertices": 276}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 23, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 9.1, "min": 3.6, "max": 22.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007639 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 23, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 9.1, \"min\": 3.6, \"max\": 22.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931aced8_0236", "family": "threaded", "tier": 1, "seed": 2468007640, "symmetry": "none", "op_count": 1, "ir_hash": "69334d0bdcf10842", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1900.0, "surface_area": 1760.0, "principal_moments": [12700.0, 338000.0, 338000.0], "n_faces": 375, "n_edges": 967, "n_vertices": 594}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 46.0, "min": 18.4, "max": 92.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007640 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 46.0, \"min\": 18.4, \"max\": 92.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931aced9_0237", "family": "profiled", "tier": 1, "seed": 2468007641, "symmetry": "none", "op_count": 1, "ir_hash": "8c409e9d1b136366", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 116000.0, "surface_area": 22500.0, "principal_moments": [10500000.0, 673000000.0, 680000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 32.44, "min": 16.2, "max": 64.9, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 15, "min": 7.5, "max": 30.0, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 263.9, "min": 79.2, "max": 791.7, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007641 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 32.44, \"min\": 16.2, \"max\": 64.9, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 15, \"min\": 7.5, \"max\": 30.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 263.9, \"min\": 79.2, \"max\": 791.7, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931aceda_0238", "family": "bracket", "tier": 2, "seed": 2468007642, "symmetry": "none", "op_count": 1, "ir_hash": "a1b32e10529a596d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 92500.0, "surface_area": 28300.0, "principal_moments": [91299999.99999999, 137000000.0, 198000000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 89.73, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 6.8, "min": 4.0, "max": 22.5, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007642 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 89.73, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.8, \"min\": 4.0, \"max\": 22.5, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acedc_0240", "family": "block", "tier": 2, "seed": 2468007644, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "9efe2e1857c227f5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20100.0, "surface_area": 10200.0, "principal_moments": [2180000.0, 6750000.0, 8300000.0], "n_faces": 15, "n_edges": 48, "n_vertices": 32}, "params": {"block_w": {"type": "float", "default": 31.9, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 12.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 63.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.6, "min": 2.0, "max": 2.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 21.2, "min": 10.6, "max": 25.5, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 6.8, "min": 3.4, "max": 10.3, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 31.7, "min": 12.7, "max": 53.7, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007644 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 31.9, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 12.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 63.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.6, \"min\": 2.0, \"max\": 2.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 21.2, \"min\": 10.6, \"max\": 25.5, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 6.8, \"min\": 3.4, \"max\": 10.3, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 31.7, \"min\": 12.7, \"max\": 53.7, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acedd_0241", "family": "revolved", "tier": 1, "seed": 2468007645, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "bf10e171fe2494e1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2160.0, "surface_area": 1690.0, "principal_moments": [68400.0, 110000.0, 110000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 10, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 25.2, "min": 7.6, "max": 75.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 19.4, "min": 12.0, "max": 30.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.2, "min": 1.3, "max": 12.6, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.5, "min": 0.1, "max": 4.5, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007645 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 10, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 25.2, \"min\": 7.6, \"max\": 75.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 19.4, \"min\": 12.0, \"max\": 30.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.2, \"min\": 1.3, \"max\": 12.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.1, \"max\": 4.5, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acedf_0243", "family": "revolved", "tier": 2, "seed": 2468007647, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "dea2b6f9099541ae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 421000.0, "surface_area": 48600.0, "principal_moments": [219000000.0, 1100000000.0, 1100000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 60.65, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 167.7, "min": 50.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 22.0, "min": 2.0, "max": 42.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007647 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60.65, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 167.7, \"min\": 50.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 22.0, \"min\": 2.0, \"max\": 42.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acee0_0244", "family": "revolved", "tier": 1, "seed": 2468007648, "symmetry": "none", "op_count": 1, "ir_hash": "2a9583dc6cb6039f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 105000.0, "surface_area": 22700.0, "principal_moments": [31899999.999999996, 76800000.0, 76800000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 45, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 98.9, "min": 29.7, "max": 296.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007648 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 98.9, \"min\": 29.7, \"max\": 296.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acee2_0246", "family": "revolved", "tier": 1, "seed": 2468007650, "symmetry": "none", "op_count": 1, "ir_hash": "7cfc679087404a20", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11700.0, "surface_area": 5570.0, "principal_moments": [907000.0, 2650000.0, 2650000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 21.61, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 47.5, "min": 14.2, "max": 142.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 12.4, "min": 2.0, "max": 15.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007650 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 21.61, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 47.5, \"min\": 14.2, \"max\": 142.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 12.4, \"min\": 2.0, \"max\": 15.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acee3_0247", "family": "plate", "tier": 0, "seed": 2468007651, "symmetry": "none", "op_count": 1, "ir_hash": "85c9e28417cac4a2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9690.0, "surface_area": 7140.0, "principal_moments": [2470000.0, 2770000.0, 5220000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 58.51, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 55.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007651 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 58.51, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 55.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acee4_0248", "family": "bracket", "tier": 2, "seed": 2468007652, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "2bb0eb3dbb0df6e0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19700.0, "surface_area": 9350.0, "principal_moments": [3990000.0, 6170000.0, 7860000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 32.41, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.8, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007652 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 32.41, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.8, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acee5_0249", "family": "compound", "tier": 2, "seed": 2468007653, "symmetry": "none", "op_count": 5, "ir_hash": "c9333b7e8475cdf1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 93000.0, "surface_area": 15700.0, "principal_moments": [29499999.999999996, 32499999.999999996, 37500000.0], "n_faces": 41, "n_edges": 110, "n_vertices": 72}, "params": {"block_w": {"type": "float", "default": 51.11, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 46.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 39.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 3.6, "min": 1.8, "max": 8.9, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 8.0, "min": 1.7, "max": 20.0, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 3.7, "min": 2.0, "max": 4.8, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 10.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007653 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 51.11, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 46.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 39.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 3.6, \"min\": 1.8, \"max\": 8.9, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 8.0, \"min\": 1.7, \"max\": 20.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 3.7, \"min\": 2.0, \"max\": 4.8, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 10.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acee6_0250", "family": "revolved", "tier": 0, "seed": 2468007654, "symmetry": "radial", "op_count": 1, "ir_hash": "d659ee11e2364f30", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8170.0, "surface_area": 4800.0, "principal_moments": [315000.0, 1950000.0, 1950000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 16.02, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 60.8, "min": 18.2, "max": 182.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007654 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 16.02, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 60.8, \"min\": 18.2, \"max\": 182.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acee7_0251", "family": "threaded", "tier": 0, "seed": 2468007655, "symmetry": "none", "op_count": 1, "ir_hash": "7fc5d3818a20ef4c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1370.0, "surface_area": 1080.0, "principal_moments": [14300.0, 57600.0, 57600.0], "n_faces": 150, "n_edges": 380, "n_vertices": 232}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 21.2, "min": 8.5, "max": 42.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007655 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 21.2, \"min\": 8.5, \"max\": 42.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acee8_0252", "family": "threaded", "tier": 0, "seed": 2468007656, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "4ea22eb0a57b826c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 233.0, "surface_area": 359.0, "principal_moments": [605.0, 4380.0, 4390.0], "n_faces": 190, "n_edges": 484, "n_vertices": 296}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 14.6, "min": 5.8, "max": 29.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007656 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 14.6, \"min\": 5.8, \"max\": 29.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acee9_0253", "family": "bracket", "tier": 1, "seed": 2468007657, "symmetry": "none", "op_count": 1, "ir_hash": "ab6c1343f85ea52d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12300.0, "surface_area": 5520.0, "principal_moments": [1660000.0, 2970000.0, 3440000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 33.07, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 39.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 31.73, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007657 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 33.07, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 39.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 31.73, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931aceeb_0255", "family": "bracket", "tier": 1, "seed": 2468007659, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "fd9b32540162b98e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10800.0, "surface_area": 6430.0, "principal_moments": [2020000.0, 2730000.0, 3650000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 34.28, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 38.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007659 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 34.28, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 38.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07100591802908611)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931aceed_0257", "family": "enclosure", "tier": 2, "seed": 2468007661, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "a158a88b32a79dc6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 151000.0, "surface_area": 54400.0, "principal_moments": [150000000.0, 211000000.0, 283000000.0], "n_faces": 19, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 101.67, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 42.5, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 88.1, "min": 35.2, "max": 176.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 9.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007661 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 101.67, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 42.5, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 88.1, \"min\": 35.2, \"max\": 176.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 9.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931aceef_0259", "family": "gear", "tier": 1, "seed": 2468007663, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "66190534f6d30c78", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3200.0, "surface_area": 2150.0, "principal_moments": [159000.0, 159000.0, 301000.0], "n_faces": 165, "n_edges": 489, "n_vertices": 326}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 27, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.8, "min": 2.3, "max": 14.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 14.7, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007663 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 27, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.3, \"max\": 14.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 14.7, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acef0_0260", "family": "bracket", "tier": 2, "seed": 2468007664, "symmetry": "none", "op_count": 1, "ir_hash": "c50bbc6233dcfa1e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20400.0, "surface_area": 11300.0, "principal_moments": [5390000.0, 11799999.999999998, 12899999.999999998], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 62.29, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 48.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.9, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007664 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 62.29, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 48.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931acef1_0261", "family": "ribbed", "tier": 2, "seed": 2468007665, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f9126c3782da60f0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23200.0, "surface_area": 12000.0, "principal_moments": [5270000.0, 15099999.999999998, 19400000.0], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 78.22, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 44.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 13.5, "min": 5.4, "max": 27.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.5, "min": 1.0, "max": 8.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007665 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 78.22, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 44.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 13.5, \"min\": 5.4, \"max\": 27.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 1.0, \"max\": 8.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acef2_0262", "family": "revolved", "tier": 0, "seed": 2468007666, "symmetry": "none", "op_count": 1, "ir_hash": "4b25d2a712ff1258", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 508.0, "surface_area": 745.0, "principal_moments": [3160.0, 18100.0, 18100.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 6.44, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 23.4, "min": 7.0, "max": 70.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007666 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 6.44, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 23.4, \"min\": 7.0, \"max\": 70.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acef3_0263", "family": "block", "tier": 1, "seed": 2468007667, "symmetry": "none", "op_count": 2, "ir_hash": "e378e6b60d59c64e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 184000.0, "surface_area": 27200.0, "principal_moments": [78000000.0, 153000000.0, 203000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 64.98, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 30.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 95.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007667 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 64.98, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 30.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 95.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acef4_0264", "family": "block", "tier": 1, "seed": 2468007668, "symmetry": "none", "op_count": 2, "ir_hash": "2f1f2ed6f62bb9c5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13700.0, "surface_area": 5040.0, "principal_moments": [1070000.0, 1650000.0, 2120000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 25.85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 16.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 34.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.8, "min": 2.0, "max": 1.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007668 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25.85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 16.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 34.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.8, \"min\": 2.0, \"max\": 1.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 6.5\n _ssy = 6.1\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acef5_0265", "family": "bracket", "tier": 1, "seed": 2468007669, "symmetry": "none", "op_count": 1, "ir_hash": "3ffe76f82677f9d2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29900.0, "surface_area": 16700.0, "principal_moments": [12399999.999999998, 32099999.999999996, 34200000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 59.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 53.72, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007669 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 59.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 53.72, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acef8_0268", "family": "bracket", "tier": 1, "seed": 2468007672, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "23331649288e872b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37900.0, "surface_area": 27200.0, "principal_moments": [37400000.0, 45200000.0, 62999999.99999999], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 71.14, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 82.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55.45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007672 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 71.14, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 82.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55.45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acef9_0269", "family": "revolved", "tier": 2, "seed": 2468007673, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "1bab4d0f4bc1a8fd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1180000.0, "surface_area": 101000.0, "principal_moments": [2460000000.0, 4100000000.0, 4100000000.0], "n_faces": 14, "n_edges": 23, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 70, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 178.3, "min": 53.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 29.4, "min": 2.0, "max": 49.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 147.1, "min": 84.0, "max": 210.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 47.4, "min": 14.2, "max": 89.2, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "groove_depth": {"type": "float", "default": 5.51, "min": 2.2, "max": 16.53, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 9.83, "min": 3.93, "max": 29.49, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 83.5, "min": 26.7, "max": 151.6, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 1.4, "min": 0.1, "max": 4.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007673 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 70, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 178.3, \"min\": 53.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 29.4, \"min\": 2.0, \"max\": 49.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 147.1, \"min\": 84.0, \"max\": 210.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 47.4, \"min\": 14.2, \"max\": 89.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 5.51, \"min\": 2.2, \"max\": 16.53, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 9.83, \"min\": 3.93, \"max\": 29.49, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 83.5, \"min\": 26.7, \"max\": 151.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.4, \"min\": 0.1, \"max\": 4.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931acefd_0273", "family": "profiled", "tier": 0, "seed": 2468007677, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "1e2e1dfd59874b37", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 110000.0, "surface_area": 21300.0, "principal_moments": [10700000.0, 535000000.0, 542000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 33.68, "min": 16.8, "max": 67.4, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 15, "min": 7.5, "max": 30.0, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 241.0, "min": 72.3, "max": 723.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007677 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 33.68, \"min\": 16.8, \"max\": 67.4, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 15, \"min\": 7.5, \"max\": 30.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 241.0, \"min\": 72.3, \"max\": 723.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acefe_0274", "family": "block", "tier": 1, "seed": 2468007678, "symmetry": "none", "op_count": 2, "ir_hash": "8915b7b5e8719268", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 578000.0, "surface_area": 50400.0, "principal_moments": [564000000.0, 741000000.0, 786000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 80, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 73.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007678 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 73.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931aceff_0275", "family": "revolved", "tier": 0, "seed": 2468007679, "symmetry": "radial", "op_count": 1, "ir_hash": "cb35252668b81de8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5240.0, "surface_area": 2940.0, "principal_moments": [248000.0, 437000.0, 437000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 17.77, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 31.7, "min": 9.5, "max": 95.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007679 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 17.77, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 31.7, \"min\": 9.5, \"max\": 95.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acf01_0277", "family": "flanged", "tier": 1, "seed": 2468007681, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "c73dfab55ea3b86a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 179000.0, "surface_area": 42100.0, "principal_moments": [175000000.0, 175000000.0, 252000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 54.86, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 54.4, "min": 16.3, "max": 136.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 26.7, "min": 2.0, "max": 38.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 131.2, "min": 71.3, "max": 164.6, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.4, "min": 2.2, "max": 21.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 39.4, "min": 26.2, "max": 59.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007681 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 54.86, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 54.4, \"min\": 16.3, \"max\": 136.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 26.7, \"min\": 2.0, \"max\": 38.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 131.2, \"min\": 71.3, \"max\": 164.6, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.4, \"min\": 2.2, \"max\": 21.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 39.4, \"min\": 26.2, \"max\": 59.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf02_0278", "family": "revolved", "tier": 1, "seed": 2468007682, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "62848addb3d32062", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 102000.0, "surface_area": 22900.0, "principal_moments": [28799999.999999996, 80600000.0, 80600000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 43.31, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 104.3, "min": 31.3, "max": 312.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007682 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 43.31, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 104.3, \"min\": 31.3, \"max\": 312.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf03_0279", "family": "bracket", "tier": 2, "seed": 2468007683, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "740f603eadef39de", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33500.0, "surface_area": 13500.0, "principal_moments": [10300000.0, 33199999.999999996, 39200000.0], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 83.29, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 82.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 6.6, "min": 3.0, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007683 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 83.29, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 82.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.6, \"min\": 3.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acf04_0280", "family": "compound", "tier": 1, "seed": 2468007684, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f788df427ba635a5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 116000.0, "surface_area": 17200.0, "principal_moments": [39000000.0, 51899999.99999999, 60899999.99999999], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 57.69, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 50.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 39.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 7.7, "min": 3.9, "max": 13.8, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 26.6, "min": 4.0, "max": 53.3, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 6.6, "min": 2.0, "max": 9.6, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007684 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 57.69, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 50.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 39.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 7.7, \"min\": 3.9, \"max\": 13.8, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 26.6, \"min\": 4.0, \"max\": 53.3, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 6.6, \"min\": 2.0, \"max\": 9.6, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf07_0283", "family": "plate", "tier": 0, "seed": 2468007687, "symmetry": "none", "op_count": 1, "ir_hash": "0a4707e462367fb6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5760.0, "surface_area": 3550.0, "principal_moments": [284000.0, 1740000.0, 2000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 24.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007687 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 24.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf08_0284", "family": "block", "tier": 1, "seed": 2468007688, "symmetry": "none", "op_count": 2, "ir_hash": "defe075c9cb3a0ab", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10900.0, "surface_area": 5150.0, "principal_moments": [691000.0, 1500000.0, 1910000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 24.35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 12.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 38.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.6, "min": 2.0, "max": 1.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007688 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 24.35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 12.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 38.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.6, \"min\": 2.0, \"max\": 1.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 4.6\n _ssy = 3.9\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acf09_0285", "family": "flanged", "tier": 1, "seed": 2468007689, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "0903a3fecc73c4fe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 881000.0, "surface_area": 94600.0, "principal_moments": [1650000000.0, 2040000000.0, 2040000000.0], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 95, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 117.9, "min": 35.4, "max": 294.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 33.7, "min": 2.0, "max": 66.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 170.7, "min": 123.5, "max": 285.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.7, "min": 2.9, "max": 47.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 51.2, "min": 34.1, "max": 76.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007689 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 117.9, \"min\": 35.4, \"max\": 294.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 33.7, \"min\": 2.0, \"max\": 66.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 170.7, \"min\": 123.5, \"max\": 285.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.7, \"min\": 2.9, \"max\": 47.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 51.2, \"min\": 34.1, \"max\": 76.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931acf0a_0286", "family": "enclosure", "tier": 2, "seed": 2468007690, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "595e2685a81ddceb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 112000.0, "surface_area": 65400.0, "principal_moments": [138000000.0, 230000000.0, 240000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 110, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 61.4, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 80.7, "min": 32.3, "max": 161.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.5, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007690 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 110, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 61.4, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 80.7, \"min\": 32.3, \"max\": 161.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf0b_0287", "family": "plate", "tier": 0, "seed": 2468007691, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "39e9f1518514e3d7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26700.0, "surface_area": 8750.0, "principal_moments": [2880000.0, 20200000.0, 22799999.999999996], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 35.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007691 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 35.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf0c_0288", "family": "plate", "tier": 1, "seed": 2468007692, "symmetry": "radial", "op_count": 2, "ir_hash": "4def897856a50835", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9370.0, "surface_area": 3390.0, "principal_moments": [449000.0, 1600000.0, 1890000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"plate_w": {"type": "float", "default": 44.13, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 21.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 13.2, "min": 8.8, "max": 19.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007692 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 44.13, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 21.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 13.2, \"min\": 8.8, \"max\": 19.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf0d_0289", "family": "block", "tier": 2, "seed": 2468007693, "symmetry": "none", "op_count": 3, "ir_hash": "f0618f11a52a5e72", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 75400.0, "surface_area": 19400.0, "principal_moments": [19400000.0, 45300000.0, 59099999.99999999], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 20.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 84.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 26.2, "min": 13.1, "max": 40.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 9.0, "min": 4.5, "max": 16.3, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 32.0, "min": 12.8, "max": 71.4, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007693 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 20.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 84.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 26.2, \"min\": 13.1, \"max\": 40.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 9.0, \"min\": 4.5, \"max\": 16.3, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 32.0, \"min\": 12.8, \"max\": 71.4, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acf0e_0290", "family": "flanged", "tier": 2, "seed": 2468007694, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "870d83b1c127a883", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 232000.0, "surface_area": 36900.0, "principal_moments": [190000000.0, 190000000.0, 237000000.0], "n_faces": 56, "n_edges": 148, "n_vertices": 87}, "params": {"outer_d": {"type": "float", "default": 64.36, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 57.3, "min": 17.2, "max": 143.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 22.1, "min": 2.0, "max": 45.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 111.2, "min": 83.7, "max": 193.1, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 11.0, "min": 3.3, "max": 22.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 33.4, "min": 22.2, "max": 50.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007694 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 64.36, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 57.3, \"min\": 17.2, \"max\": 143.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 22.1, \"min\": 2.0, \"max\": 45.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 111.2, \"min\": 83.7, \"max\": 193.1, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 11.0, \"min\": 3.3, \"max\": 22.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 33.4, \"min\": 22.2, \"max\": 50.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf11_0293", "family": "revolved", "tier": 2, "seed": 2468007697, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "b5a59a98eb719950", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15600.0, "surface_area": 5890.0, "principal_moments": [2020000.0, 2020000.0, 2670000.0], "n_faces": 7, "n_edges": 10, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 34.02, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 26.7, "min": 8.0, "max": 80.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "groove_depth": {"type": "float", "default": 2.38, "min": 0.95, "max": 7.14, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 2.35, "min": 0.94, "max": 7.05, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 10.1, "min": 4.0, "max": 22.7, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007697 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 34.02, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 26.7, \"min\": 8.0, \"max\": 80.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 2.38, \"min\": 0.95, \"max\": 7.14, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 2.35, \"min\": 0.94, \"max\": 7.05, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 10.1, \"min\": 4.0, \"max\": 22.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931acf12_0294", "family": "ribbed", "tier": 2, "seed": 2468007698, "symmetry": "none", "op_count": 2, "ir_hash": "b3e5d0b242525b94", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31700.0, "surface_area": 16100.0, "principal_moments": [7150000.0, 11100000.0, 16699999.999999998], "n_faces": 54, "n_edges": 132, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 37.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 13.9, "min": 5.6, "max": 27.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.6, "min": 1.0, "max": 14.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007698 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 37.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 13.9, \"min\": 5.6, \"max\": 27.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 1.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acf14_0296", "family": "gear", "tier": 2, "seed": 2468007700, "symmetry": "none", "op_count": 1, "ir_hash": "bf85f64ade2f57bb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1830.0, "surface_area": 1430.0, "principal_moments": [55500.0, 55500.0, 101000.0], "n_faces": 307, "n_edges": 763, "n_vertices": 458}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 19, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.7, "min": 2.3, "max": 14.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 24.3, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": -0.12, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.3, "min": 0.0, "max": 0.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 3.0, "min": 2.0, "max": 9.9, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007700 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 19, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.3, \"max\": 14.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 24.3, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.12, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.3, \"min\": 0.0, \"max\": 0.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 9.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=True, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf15_0297", "family": "plate", "tier": 0, "seed": 2468007701, "symmetry": "none", "op_count": 1, "ir_hash": "6d2ac62f23fdeff3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2780.0, "surface_area": 1600.0, "principal_moments": [84900.0, 214000.0, 287000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 30, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 18.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007701 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 18.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf16_0298", "family": "revolved", "tier": 1, "seed": 2468007702, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "196b0ed94e62bd97", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 911000.0, "surface_area": 97600.0, "principal_moments": [721000000.0, 6140000000.0, 6140000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 72.59, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 275.8, "min": 82.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 32.6, "min": 2.0, "max": 50.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 1.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007702 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 72.59, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 275.8, \"min\": 82.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 32.6, \"min\": 2.0, \"max\": 50.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 1.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf1c_0304", "family": "revolved", "tier": 1, "seed": 2468007708, "symmetry": "none", "op_count": 1, "ir_hash": "c67067e96877eef7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 47500.0, "surface_area": 14600.0, "principal_moments": [11499999.999999998, 27099999.999999996, 27099999.999999996], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 30, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 68.9, "min": 20.7, "max": 206.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.5, "min": 2.0, "max": 21.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 50.7, "min": 36.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 11.7, "min": 3.5, "max": 34.5, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007708 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 68.9, \"min\": 20.7, \"max\": 206.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.5, \"min\": 2.0, \"max\": 21.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 50.7, \"min\": 36.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 11.7, \"min\": 3.5, \"max\": 34.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf1d_0305", "family": "revolved", "tier": 0, "seed": 2468007709, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "36fa1080fed17649", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29400.0, "surface_area": 8690.0, "principal_moments": [5400000.0, 6360000.0, 6360000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 35, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 45.8, "min": 13.7, "max": 137.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007709 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 45.8, \"min\": 13.7, \"max\": 137.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf1e_0306", "family": "bracket", "tier": 2, "seed": 2468007710, "symmetry": "none", "op_count": 1, "ir_hash": "ca3dc92c0850db67", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 47800.0, "surface_area": 21700.0, "principal_moments": [15599999.999999998, 80800000.0, 84900000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 70.19, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 51.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 76.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 4.2, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007710 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70.19, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 51.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 76.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.2, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf1f_0307", "family": "revolved", "tier": 1, "seed": 2468007711, "symmetry": "none", "op_count": 1, "ir_hash": "9b4a4d8c69aaad7e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 691.0, "surface_area": 847.0, "principal_moments": [4570.0, 41500.0, 41500.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 6.58, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 26.1, "min": 7.8, "max": 78.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 3.1, "min": 2.0, "max": 4.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007711 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 6.58, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 26.1, \"min\": 7.8, \"max\": 78.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 3.1, \"min\": 2.0, \"max\": 4.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf20_0308", "family": "plate", "tier": 0, "seed": 2468007712, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "e8bd560eb12696c4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27300.0, "surface_area": 8870.0, "principal_moments": [3380000.0, 18800000.0, 21900000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 90.49, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 37.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007712 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 90.49, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 37.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf23_0311", "family": "block", "tier": 2, "seed": 2468007715, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "cb1c490401c34aff", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4890.0, "surface_area": 3330.0, "principal_moments": [228000.0, 370000.0, 499000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 20, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 10.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 28.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.1, "min": 2.0, "max": 2.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 9.0, "min": 4.5, "max": 16.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 6.7, "min": 3.4, "max": 8.6, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 13.5, "min": 5.4, "max": 24.2, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007715 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 10.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 28.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.1, \"min\": 2.0, \"max\": 2.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 9.0, \"min\": 4.5, \"max\": 16.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 6.7, \"min\": 3.4, \"max\": 8.6, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 13.5, \"min\": 5.4, \"max\": 24.2, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf24_0312", "family": "block", "tier": 2, "seed": 2468007716, "symmetry": "none", "op_count": 3, "ir_hash": "029499b317996733", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 215000.0, "surface_area": 30500.0, "principal_moments": [97099999.99999999, 196000000.0, 250000000.0], "n_faces": 17, "n_edges": 45, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 34.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 98.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007716 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 34.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 98.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 16.2\n _ssy = 15.2\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.06558639008682236)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf26_0314", "family": "bracket", "tier": 2, "seed": 2468007718, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "0517c24180169234", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27500.0, "surface_area": 16100.0, "principal_moments": [23699999.999999996, 34800000.0, 55399999.99999999], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 82.36, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 87.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 26.47, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.8, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007718 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 82.36, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 87.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 26.47, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf27_0315", "family": "bracket", "tier": 2, "seed": 2468007719, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "899d64935266df1d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 79600.0, "surface_area": 24100.0, "principal_moments": [54499999.99999999, 71900000.0, 86100000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 66.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55.05, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 7.1, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007719 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 66.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55.05, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 7.1, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acf28_0316", "family": "compound", "tier": 2, "seed": 2468007720, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "2f5f3947dbc1d087", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 84500.0, "surface_area": 19800.0, "principal_moments": [39700000.0, 53299999.99999999, 57999999.99999999], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_w": {"type": "float", "default": 75, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 52.4, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 20.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 15.4, "min": 6.2, "max": 26.2, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 69.9, "min": 21.0, "max": 209.7, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 8.7, "min": 2.0, "max": 11.1, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 11.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007720 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 75, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 52.4, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 20.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 15.4, \"min\": 6.2, \"max\": 26.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 69.9, \"min\": 21.0, \"max\": 209.7, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 8.7, \"min\": 2.0, \"max\": 11.1, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 11.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf29_0317", "family": "plate", "tier": 1, "seed": 2468007721, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "fe5527209579b1cb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 64300.0, "surface_area": 15500.0, "principal_moments": [14999999.999999998, 59899999.99999999, 73400000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 105.66, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 51.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 11.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007721 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 105.66, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 51.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 11.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acf2a_0318", "family": "compound", "tier": 1, "seed": 2468007722, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f6328008b735aae3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24100.0, "surface_area": 7810.0, "principal_moments": [5100000.0, 5160000.0, 5160000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 23.59, "min": 14.2, "max": 37.7, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 12.0, "min": 4.8, "max": 30.0, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 19.4, "min": 9.7, "max": 34.9, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 29.1, "min": 8.7, "max": 72.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 10.2, "min": 2.0, "max": 14.0, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007722 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 23.59, \"min\": 14.2, \"max\": 37.7, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.8, \"max\": 30.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 19.4, \"min\": 9.7, \"max\": 34.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 29.1, \"min\": 8.7, \"max\": 72.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 10.2, \"min\": 2.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acf2b_0319", "family": "threaded", "tier": 1, "seed": 2468007723, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "6d0a3fde52eda31a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2470.0, "surface_area": 1900.0, "principal_moments": [80300.0, 125000.0, 125000.0], "n_faces": 135, "n_edges": 365, "n_vertices": 232}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 20.4, "min": 8.2, "max": 40.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007723 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 20.4, \"min\": 8.2, \"max\": 40.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf2c_0320", "family": "revolved", "tier": 2, "seed": 2468007724, "symmetry": "radial", "op_count": 2, "ir_hash": "0e85326b9aa815d5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 747000.0, "surface_area": 77300.0, "principal_moments": [771000000.0, 3100000000.0, 3100000000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 57.98, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 206.3, "min": 61.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 25.3, "min": 2.0, "max": 40.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 105.0, "min": 69.6, "max": 173.9, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 50.9, "min": 15.3, "max": 103.2, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.3, "min": 0.1, "max": 3.9, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007724 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 57.98, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 206.3, \"min\": 61.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 25.3, \"min\": 2.0, \"max\": 40.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 105.0, \"min\": 69.6, \"max\": 173.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 50.9, \"min\": 15.3, \"max\": 103.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.3, \"min\": 0.1, \"max\": 3.9, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf33_0327", "family": "block", "tier": 1, "seed": 2468007731, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "a53e87c4a163f974", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 737000.0, "surface_area": 65900.0, "principal_moments": [941000000.0, 1060000000.0, 1080000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 90, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 87.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 98.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 10.1, "min": 2.0, "max": 16.9, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007731 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 90, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 87.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 98.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.1, \"min\": 2.0, \"max\": 16.9, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931acf34_0328", "family": "ribbed", "tier": 1, "seed": 2468007732, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "dc9b81b4a8000fd8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14500.0, "surface_area": 7740.0, "principal_moments": [2040000.0, 3700000.0, 4270000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 22.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 19.4, "min": 7.8, "max": 38.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.0, "min": 1.0, "max": 12.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007732 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 22.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 19.4, \"min\": 7.8, \"max\": 38.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 1.0, \"max\": 12.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acf35_0329", "family": "gear", "tier": 1, "seed": 2468007733, "symmetry": "none", "op_count": 1, "ir_hash": "163088986fbfe773", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9460.0, "surface_area": 4340.0, "principal_moments": [736000.0, 736000.0, 999000.0], "n_faces": 69, "n_edges": 201, "n_vertices": 134}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 11, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 17.3, "min": 6.9, "max": 43.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 5.4, "min": 2.0, "max": 12.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007733 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 11, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 17.3, \"min\": 6.9, \"max\": 43.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 5.4, \"min\": 2.0, \"max\": 12.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf36_0330", "family": "revolved", "tier": 2, "seed": 2468007734, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "0196728d631e7d0e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 463000.0, "surface_area": 59000.0, "principal_moments": [254000000.0, 1590000000.0, 1590000000.0], "n_faces": 12, "n_edges": 20, "n_vertices": 12}, "params": {"outer_d": {"type": "float", "default": 61.49, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 193.5, "min": 58.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 25.7, "min": 2.0, "max": 43.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 4.89, "min": 1.96, "max": 14.67, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 12.4, "min": 4.96, "max": 37.2, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 61.1, "min": 29.0, "max": 164.5, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.7, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007734 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 61.49, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 193.5, \"min\": 58.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 25.7, \"min\": 2.0, \"max\": 43.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 4.89, \"min\": 1.96, \"max\": 14.67, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 12.4, \"min\": 4.96, \"max\": 37.2, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 61.1, \"min\": 29.0, \"max\": 164.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.7, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf39_0333", "family": "plate", "tier": 2, "seed": 2468007737, "symmetry": "none", "op_count": 3, "ir_hash": "0737ef24f6e4a588", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19600.0, "surface_area": 6690.0, "principal_moments": [1740000.0, 6920000.0, 8340000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"plate_w": {"type": "float", "default": 65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 31.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007737 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 31.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(26.0, 12.6, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.10862657392394287)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf3a_0334", "family": "block", "tier": 1, "seed": 2468007738, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "60b4cab1dac35594", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 571000.0, "surface_area": 55800.0, "principal_moments": [567000000.0, 709000000.0, 809000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 71.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007738 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 71.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf3b_0335", "family": "revolved", "tier": 0, "seed": 2468007739, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ae79a48713bcbae7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9800.0, "surface_area": 4180.0, "principal_moments": [1260000.0, 1260000.0, 2350000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 40, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 11.7, "min": 3.5, "max": 35.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007739 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 11.7, \"min\": 3.5, \"max\": 35.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf3d_0337", "family": "revolved", "tier": 2, "seed": 2468007741, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "471a2000fb443fc2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 359000.0, "surface_area": 57000.0, "principal_moments": [260000000.0, 903000000.0, 903000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 65.72, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 160.7, "min": 48.2, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 38.4, "min": 2.0, "max": 46.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007741 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65.72, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 160.7, \"min\": 48.2, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 38.4, \"min\": 2.0, \"max\": 46.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acf3e_0338", "family": "threaded", "tier": 0, "seed": 2468007742, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "bdc265f2318a869b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 279.0, "surface_area": 369.0, "principal_moments": [1030.0, 3960.0, 3960.0], "n_faces": 130, "n_edges": 328, "n_vertices": 200}, "params": {"major_d": {"type": "float", "default": 6.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.0, "min": 0.5, "max": 2.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 12.3, "min": 5.0, "max": 24.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007742 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.5, \"max\": 2.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 12.3, \"min\": 5.0, \"max\": 24.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf3f_0339", "family": "bracket", "tier": 1, "seed": 2468007743, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "2be4c0acef77f0d9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21900.0, "surface_area": 8920.0, "principal_moments": [5710000.0, 6260000.0, 10300000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 28.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 54.31, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007743 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 28.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 54.31, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acf43_0343", "family": "compound", "tier": 1, "seed": 2468007747, "symmetry": "none", "op_count": 2, "ir_hash": "56315b1c2bba3d83", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61700.0, "surface_area": 11100.0, "principal_moments": [15599999.999999998, 16499999.999999998, 18400000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 40, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 41.5, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 36.7, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 12.1, "min": 4.8, "max": 25.7, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 20.2, "min": 3.6, "max": 48.4, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 5.7, "min": 2.0, "max": 8.7, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007747 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 41.5, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 36.7, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 12.1, \"min\": 4.8, \"max\": 25.7, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 20.2, \"min\": 3.6, \"max\": 48.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.0, \"max\": 8.7, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf45_0345", "family": "plate", "tier": 1, "seed": 2468007749, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "957be46456b53e3b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 574.0, "surface_area": 789.0, "principal_moments": [5410.0, 38400.0, 43400.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 28.65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 10.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.3, "min": 2.0, "max": 2.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007749 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 28.65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 10.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.3, \"min\": 2.0, \"max\": 2.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931acf46_0346", "family": "enclosure", "tier": 1, "seed": 2468007750, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "f6705f8785f0cc41", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 57700.0, "surface_area": 29700.0, "principal_moments": [34300000.0, 41700000.0, 57199999.99999999], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 70, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 33.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 67.1, "min": 26.8, "max": 134.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007750 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 70, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 33.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 67.1, \"min\": 26.8, \"max\": 134.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf47_0347", "family": "revolved", "tier": 1, "seed": 2468007751, "symmetry": "none", "op_count": 1, "ir_hash": "f03f2ad287e23785", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 119000.0, "surface_area": 27600.0, "principal_moments": [70700000.0, 70700000.0, 119000000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 60, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 40.4, "min": 12.1, "max": 121.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 104.1, "min": 72.0, "max": 180.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.6, "min": 2.3, "max": 20.2, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007751 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 40.4, \"min\": 12.1, \"max\": 121.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 104.1, \"min\": 72.0, \"max\": 180.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.6, \"min\": 2.3, \"max\": 20.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf48_0348", "family": "block", "tier": 1, "seed": 2468007752, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "be4f83f97a467cbb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 361000.0, "surface_area": 43600.0, "principal_moments": [280000000.0, 356000000.0, 526000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 87.38, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 43.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 12.6, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007752 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 87.38, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 43.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 12.6, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf4a_0350", "family": "block", "tier": 2, "seed": 2468007754, "symmetry": "radial", "op_count": 3, "ir_hash": "c88ed6091fbee8a3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 70400.0, "surface_area": 13200.0, "principal_moments": [16800000.0, 22700000.0, 26599999.999999996], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 53.54, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 42.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 29.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 16.1, "min": 10.7, "max": 24.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "boss_d": {"type": "float", "default": 20.4, "min": 10.2, "max": 40.8, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 11.3, "min": 4.5, "max": 28.2, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 14.3, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007754 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 53.54, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 42.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 29.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 16.1, \"min\": 10.7, \"max\": 24.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"boss_d\": {\"type\": 'float', \"default\": 20.4, \"min\": 10.2, \"max\": 40.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 11.3, \"min\": 4.5, \"max\": 28.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 14.3, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf4b_0351", "family": "bracket", "tier": 1, "seed": 2468007755, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "bc14c270d684e5b2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20800.0, "surface_area": 12300.0, "principal_moments": [3990000.0, 38300000.0, 40000000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 53.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 26.16, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 68.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007755 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 53.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 26.16, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 68.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf4c_0352", "family": "bracket", "tier": 1, "seed": 2468007756, "symmetry": "none", "op_count": 1, "ir_hash": "108092211454666d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32000.0, "surface_area": 12800.0, "principal_moments": [11200000.0, 17000000.0, 21600000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 48.36, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 57.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 54.09, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007756 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 48.36, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 57.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 54.09, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf51_0357", "family": "plate", "tier": 2, "seed": 2468007761, "symmetry": "radial", "op_count": 3, "ir_hash": "ab8ca3b7e32fcf5a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4330.0, "surface_area": 2630.0, "principal_moments": [123000.0, 997000.0, 1100000.0], "n_faces": 28, "n_edges": 78, "n_vertices": 52}, "params": {"plate_w": {"type": "float", "default": 52.21, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 18.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 15.7, "min": 10.4, "max": 23.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007761 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 52.21, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 18.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 15.7, \"min\": 10.4, \"max\": 23.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07513295192673956)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf53_0359", "family": "block", "tier": 1, "seed": 2468007763, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "46857f560ff953a4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12000.0, "surface_area": 4390.0, "principal_moments": [920000.0, 1130000.0, 1340000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 24.18, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 19.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 27.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007763 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 24.18, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 19.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 27.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acf54_0360", "family": "flanged", "tier": 1, "seed": 2468007764, "symmetry": "none", "op_count": 2, "ir_hash": "a4af7a479e0dbf2e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39600.0, "surface_area": 14600.0, "principal_moments": [12699999.999999998, 12699999.999999998, 21100000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 36.65, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 24.6, "min": 7.4, "max": 61.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 12.9, "min": 2.0, "max": 25.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 80.7, "min": 47.6, "max": 109.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.3, "min": 1.3, "max": 9.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.2, "min": 16.1, "max": 36.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007764 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 36.65, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 24.6, \"min\": 7.4, \"max\": 61.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 12.9, \"min\": 2.0, \"max\": 25.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 80.7, \"min\": 47.6, \"max\": 109.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.3, \"min\": 1.3, \"max\": 9.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.2, \"min\": 16.1, \"max\": 36.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931acf55_0361", "family": "enclosure", "tier": 1, "seed": 2468007765, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "b12869d9ed7fc8be", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 90300.0, "surface_area": 67800.0, "principal_moments": [118000000.0, 199000000.0, 199000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 111.12, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 64.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 79.6, "min": 31.8, "max": 159.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.7, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007765 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 111.12, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 64.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 79.6, \"min\": 31.8, \"max\": 159.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.7, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acf56_0362", "family": "compound", "tier": 1, "seed": 2468007766, "symmetry": "none", "op_count": 3, "ir_hash": "278552758e245a74", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 83300.0, "surface_area": 23300.0, "principal_moments": [39500000.0, 82600000.0, 115000000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_w": {"type": "float", "default": 110, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 74.0, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 10.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 14.0, "min": 5.6, "max": 37.0, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 38.9, "min": 11.7, "max": 116.7, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 7.0, "min": 2.0, "max": 10.1, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007766 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 110, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 74.0, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 10.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 14.0, \"min\": 5.6, \"max\": 37.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 38.9, \"min\": 11.7, \"max\": 116.7, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 7.0, \"min\": 2.0, \"max\": 10.1, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acf57_0363", "family": "flanged", "tier": 1, "seed": 2468007767, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "bc5fa3379f912948", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 298000.0, "surface_area": 54300.0, "principal_moments": [359000000.0, 359000000.0, 564000000.0], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 85, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 51.9, "min": 15.6, "max": 129.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 45.5, "min": 2.0, "max": 59.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 145.4, "min": 110.5, "max": 255.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.5, "min": 2.5, "max": 20.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 43.6, "min": 29.1, "max": 65.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007767 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 51.9, \"min\": 15.6, \"max\": 129.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 45.5, \"min\": 2.0, \"max\": 59.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 145.4, \"min\": 110.5, \"max\": 255.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.5, \"min\": 2.5, \"max\": 20.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 43.6, \"min\": 29.1, \"max\": 65.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf58_0364", "family": "revolved", "tier": 2, "seed": 2468007768, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "68d8265bec15c4f4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 264000.0, "surface_area": 32900.0, "principal_moments": [122000000.0, 359000000.0, 359000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 57.43, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 116.3, "min": 34.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 20.2, "min": 2.0, "max": 40.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007768 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 57.43, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 116.3, \"min\": 34.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 20.2, \"min\": 2.0, \"max\": 40.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931acf59_0365", "family": "ribbed", "tier": 1, "seed": 2468007769, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "e28c3f14d5a2fa7a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13100.0, "surface_area": 7280.0, "principal_moments": [1960000.0, 5410000.0, 7000000.0], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 35.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 9.5, "min": 3.8, "max": 19.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.1, "min": 1.0, "max": 12.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007769 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 35.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 9.5, \"min\": 3.8, \"max\": 19.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.1, \"min\": 1.0, \"max\": 12.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf5a_0366", "family": "plate", "tier": 0, "seed": 2468007770, "symmetry": "none", "op_count": 1, "ir_hash": "7f3bbc25857d1932", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3060.0, "surface_area": 1360.0, "principal_moments": [62200.0, 192000.0, 203000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 25.51, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 10.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007770 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 25.51, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acf5b_0367", "family": "compound", "tier": 1, "seed": 2468007771, "symmetry": "none", "op_count": 2, "ir_hash": "ea8f0f1d0eb40061", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15600.0, "surface_area": 4250.0, "principal_moments": [1580000.0, 1680000.0, 1730000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 26.61, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 22.9, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 25.2, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_w": {"type": "float", "default": 6.1, "min": 3.0, "max": 14.1, "step": 0.5, "group": "Spigot", "label": "Spigot width (mm)"}, "spig_slot_l": {"type": "float", "default": 14.5, "min": 7.3, "max": 17.6, "step": 1.0, "group": "Spigot", "label": "Spigot slot length (mm)"}, "spig_len": {"type": "float", "default": 6.7, "min": 1.8, "max": 24.4, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 3.4, "min": 2.0, "max": 4.4, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007771 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 26.61, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 22.9, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 25.2, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_w\": {\"type\": 'float', \"default\": 6.1, \"min\": 3.0, \"max\": 14.1, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Spigot width (mm)'},\n \"spig_slot_l\": {\"type\": 'float', \"default\": 14.5, \"min\": 7.3, \"max\": 17.6, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot slot length (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 6.7, \"min\": 1.8, \"max\": 24.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 3.4, \"min\": 2.0, \"max\": 4.4, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .slot2D(p[\"spig_slot_l\"], p[\"spig_w\"]).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acf5c_0368", "family": "compound", "tier": 2, "seed": 2468007772, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "cf3d6453eeffc023", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4910.0, "surface_area": 2460.0, "principal_moments": [147000.0, 503000.0, 503000.0], "n_faces": 13, "n_edges": 27, "n_vertices": 18}, "params": {"shaft_d": {"type": "float", "default": 15.87, "min": 7.9, "max": 28.6, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 20.9, "min": 8.4, "max": 41.8, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 11.0, "min": 5.5, "max": 14.3, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 9.8, "min": 2.9, "max": 24.5, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "head_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Head", "label": "Drive head sides"}, "head_r": {"type": "float", "default": 4.9, "min": 2.9, "max": 5.3, "step": 1.0, "group": "Head", "label": "Drive head circumradius (mm)"}, "head_len": {"type": "float", "default": 6.7, "min": 2.0, "max": 13.4, "step": 1.0, "group": "Head", "label": "Drive head length (mm)"}, "axial_bore": {"type": "float", "default": 4.4, "min": 2.0, "max": 6.1, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007772 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 15.87, \"min\": 7.9, \"max\": 28.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 20.9, \"min\": 8.4, \"max\": 41.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 11.0, \"min\": 5.5, \"max\": 14.3, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 9.8, \"min\": 2.9, \"max\": 24.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"head_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Head', \"label\": 'Drive head sides'},\n \"head_r\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.9, \"max\": 5.3, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head circumradius (mm)'},\n \"head_len\": {\"type\": 'float', \"default\": 6.7, \"min\": 2.0, \"max\": 13.4, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 4.4, \"min\": 2.0, \"max\": 6.1, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"head_sides\"], p[\"head_r\"] * 2).extrude(p[\"head_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acf5d_0369", "family": "threaded", "tier": 1, "seed": 2468007773, "symmetry": "none", "op_count": 1, "ir_hash": "251d5acc4c777ed4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 179.0, "surface_area": 339.0, "principal_moments": [293.0, 4810.0, 4810.0], "n_faces": 260, "n_edges": 666, "n_vertices": 408}, "params": {"major_d": {"type": "float", "default": 4.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.7, "min": 0.35, "max": 1.4, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 17.8, "min": 7.1, "max": 35.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007773 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.35, \"max\": 1.4, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 17.8, \"min\": 7.1, \"max\": 35.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf5e_0370", "family": "plate", "tier": 0, "seed": 2468007774, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "91e5fd34cbe114dd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4300.0, "surface_area": 3340.0, "principal_moments": [264000.0, 1010000.0, 1270000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 53.04, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 27.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007774 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 53.04, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 27.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf5f_0371", "family": "block", "tier": 2, "seed": 2468007775, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "92f3a78bf00f8ff8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16800.0, "surface_area": 5600.0, "principal_moments": [1860000.0, 1900000.0, 3010000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 15.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 27.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 24.5, "min": 12.2, "max": 49.0, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.5, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007775 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 15.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 27.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 24.5, \"min\": 12.2, \"max\": 49.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.5, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acf60_0372", "family": "gear", "tier": 2, "seed": 2468007776, "symmetry": "none", "op_count": 1, "ir_hash": "b2edc6843258260c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 80100.0, "surface_area": 18600.0, "principal_moments": [35200000.0, 35200000.0, 66499999.99999999], "n_faces": 211, "n_edges": 627, "n_vertices": 418}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 26, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 17.0, "min": 6.8, "max": 42.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 11.9, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": -0.03, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.38, "min": 0.0, "max": 1.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 16.2, "min": 2.0, "max": 42.3, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007776 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 26, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 17.0, \"min\": 6.8, \"max\": 42.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 11.9, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.03, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.38, \"min\": 0.0, \"max\": 1.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 16.2, \"min\": 2.0, \"max\": 42.3, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf62_0374", "family": "block", "tier": 1, "seed": 2468007778, "symmetry": "none", "op_count": 2, "ir_hash": "25ff294050f69ccc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 333000.0, "surface_area": 38200.0, "principal_moments": [228000000.0, 327000000.0, 456000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 80, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 42.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007778 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 42.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 20.0\n _ssy = 20.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acf65_0377", "family": "compound", "tier": 1, "seed": 2468007781, "symmetry": "none", "op_count": 3, "ir_hash": "bf994c52f8950891", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15800.0, "surface_area": 6050.0, "principal_moments": [2930000.0, 2970000.0, 3800000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"base_w": {"type": "float", "default": 43.13, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 32.2, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 10.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 10.3, "min": 4.1, "max": 16.1, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 37.8, "min": 11.3, "max": 113.4, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 7.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007781 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 43.13, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 32.2, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 10.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 10.3, \"min\": 4.1, \"max\": 16.1, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 37.8, \"min\": 11.3, \"max\": 113.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 7.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf67_0379", "family": "revolved", "tier": 1, "seed": 2468007783, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "59279f863f5cf0ff", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 168000.0, "surface_area": 29000.0, "principal_moments": [107000000.0, 107000000.0, 118000000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 53.82, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 72.4, "min": 21.7, "max": 217.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 83.0, "min": 64.6, "max": 161.5, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 18.4, "min": 5.5, "max": 36.2, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007783 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 53.82, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 72.4, \"min\": 21.7, \"max\": 217.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 83.0, \"min\": 64.6, \"max\": 161.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 18.4, \"min\": 5.5, \"max\": 36.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf68_0380", "family": "block", "tier": 2, "seed": 2468007784, "symmetry": "none", "op_count": 3, "ir_hash": "51be4d677979f061", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 70100.0, "surface_area": 16600.0, "principal_moments": [19500000.0, 27699999.999999996, 39500000.0], "n_faces": 20, "n_edges": 57, "n_vertices": 38}, "params": {"block_w": {"type": "float", "default": 49.32, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 24.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 66.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.2, "min": 2.0, "max": 2.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "pocket_w": {"type": "float", "default": 26.4, "min": 13.2, "max": 39.5, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 16.3, "min": 8.2, "max": 19.8, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 22.5, "min": 9.0, "max": 56.6, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007784 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 49.32, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 24.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 66.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 2.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"pocket_w\": {\"type\": 'float', \"default\": 26.4, \"min\": 13.2, \"max\": 39.5, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 16.3, \"min\": 8.2, \"max\": 19.8, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 22.5, \"min\": 9.0, \"max\": 56.6, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 12.3\n _ssy = 11.3\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf69_0381", "family": "block", "tier": 2, "seed": 2468007785, "symmetry": "none", "op_count": 3, "ir_hash": "f99af6feae4907c8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 154000.0, "surface_area": 24900.0, "principal_moments": [49299999.99999999, 131000000.0, 134000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 89.64, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 41.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 46.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 37.5, "min": 18.8, "max": 71.7, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 22.3, "min": 11.2, "max": 33.2, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 15.3, "min": 6.1, "max": 39.4, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007785 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 89.64, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 41.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 46.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 37.5, \"min\": 18.8, \"max\": 71.7, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 22.3, \"min\": 11.2, \"max\": 33.2, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 15.3, \"min\": 6.1, \"max\": 39.4, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf6a_0382", "family": "block", "tier": 1, "seed": 2468007786, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "7fd1f3069469b961", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 320000.0, "surface_area": 49100.0, "principal_moments": [259000000.0, 303000000.0, 489000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 94.26, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 38.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 10.1, "min": 2.0, "max": 11.2, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007786 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 94.26, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 38.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.1, \"min\": 2.0, \"max\": 11.2, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf6b_0383", "family": "revolved", "tier": 0, "seed": 2468007787, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ba79dc4e78d019d0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4550.0, "surface_area": 2320.0, "principal_moments": [265000.0, 265000.0, 426000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 25, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 13.9, "min": 4.2, "max": 41.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007787 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 13.9, \"min\": 4.2, \"max\": 41.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acf6c_0384", "family": "threaded", "tier": 0, "seed": 2468007788, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "6dedd05bda166828", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11900.0, "surface_area": 4610.0, "principal_moments": [513000.0, 2200000.0, 2200000.0], "n_faces": 313, "n_edges": 857, "n_vertices": 546}, "params": {"major_d": {"type": "float", "default": 20.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.5, "min": 1.25, "max": 5.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 44.5, "min": 17.8, "max": 89.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007788 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 20.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.25, \"max\": 5.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 44.5, \"min\": 17.8, \"max\": 89.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf6d_0385", "family": "bracket", "tier": 1, "seed": 2468007789, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d2f6fc79b1b84a50", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4340.0, "surface_area": 2900.0, "principal_moments": [347000.0, 496000.0, 627000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007789 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acf71_0389", "family": "flanged", "tier": 1, "seed": 2468007793, "symmetry": "radial", "op_count": 2, "ir_hash": "bee958a1b5d1a9fe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 474000.0, "surface_area": 72200.0, "principal_moments": [829000000.0, 829000000.0, 1510000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 80.25, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 46.2, "min": 13.9, "max": 115.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 25.7, "min": 2.0, "max": 56.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 182.8, "min": 104.3, "max": 240.8, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 12.6, "min": 3.8, "max": 18.5, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 54.8, "min": 36.6, "max": 82.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007793 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 80.25, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 46.2, \"min\": 13.9, \"max\": 115.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 25.7, \"min\": 2.0, \"max\": 56.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 182.8, \"min\": 104.3, \"max\": 240.8, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 12.6, \"min\": 3.8, \"max\": 18.5, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 54.8, \"min\": 36.6, \"max\": 82.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acf72_0390", "family": "flanged", "tier": 1, "seed": 2468007794, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "ea3d0aa5b827c988", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 306000.0, "surface_area": 50800.0, "principal_moments": [338000000.0, 338000000.0, 515000000.0], "n_faces": 29, "n_edges": 114, "n_vertices": 76}, "params": {"outer_d": {"type": "float", "default": 74.99, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 54.5, "min": 16.3, "max": 136.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 33.5, "min": 2.0, "max": 52.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 135.3, "min": 97.5, "max": 225.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 12.4, "min": 3.7, "max": 21.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 40.6, "min": 27.1, "max": 60.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007794 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 74.99, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 54.5, \"min\": 16.3, \"max\": 136.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 33.5, \"min\": 2.0, \"max\": 52.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 135.3, \"min\": 97.5, \"max\": 225.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 12.4, \"min\": 3.7, \"max\": 21.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 40.6, \"min\": 27.1, \"max\": 60.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acf73_0391", "family": "gear", "tier": 1, "seed": 2468007795, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d8cec700568588a2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 117000.0, "surface_area": 24300.0, "principal_moments": [68500000.0, 68500000.0, 131000000.0], "n_faces": 189, "n_edges": 561, "n_vertices": 374}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 31, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 17.9, "min": 7.2, "max": 44.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 15.4, "min": 2.0, "max": 51.3, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007795 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 31, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 17.9, \"min\": 7.2, \"max\": 44.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 15.4, \"min\": 2.0, \"max\": 51.3, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf74_0392", "family": "bracket", "tier": 1, "seed": 2468007796, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "670be60c31c6aa4b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6670.0, "surface_area": 3520.0, "principal_moments": [666000.0, 730000.0, 1080000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007796 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('X').workplane(centerOption='CenterOfBoundBox')\n .rect(p[\"tab_a\"], p[\"tab_b\"]).extrude(p[\"tab_t\"])\n )\n result = (\n result.faces('>X').workplane()\n .rect(p[\"tab_a\"] * 0.6, p[\"tab_b\"] * 0.6, forConstruction=True)\n .vertices().hole(p[\"tab_hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acf77_0395", "family": "gear", "tier": 2, "seed": 2468007799, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "5b811873bfc08119", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8150.0, "surface_area": 3870.0, "principal_moments": [709000.0, 709000.0, 1310000.0], "n_faces": 139, "n_edges": 411, "n_vertices": 274}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 17, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 9.1, "min": 3.6, "max": 22.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": 0.19, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.32, "min": 0.0, "max": 1.0, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 6.7, "min": 2.0, "max": 17.4, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007799 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 17, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 9.1, \"min\": 3.6, \"max\": 22.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.19, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.32, \"min\": 0.0, \"max\": 1.0, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 6.7, \"min\": 2.0, \"max\": 17.4, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf78_0396", "family": "bracket", "tier": 1, "seed": 2468007800, "symmetry": "none", "op_count": 1, "ir_hash": "e2c01393dd2d4d63", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5860.0, "surface_area": 4540.0, "principal_moments": [772000.0, 1040000.0, 1460000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 34.76, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007800 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 34.76, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acf7e_0402", "family": "threaded", "tier": 1, "seed": 2468007806, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "68ba1b78cf09aeaa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4920.0, "surface_area": 3560.0, "principal_moments": [160000.0, 754000.0, 754000.0], "n_faces": 263, "n_edges": 717, "n_vertices": 456}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 40.6, "min": 16.2, "max": 81.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007806 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 40.6, \"min\": 16.2, \"max\": 81.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acf7f_0403", "family": "threaded", "tier": 1, "seed": 2468007807, "symmetry": "none", "op_count": 1, "ir_hash": "8472a36745e22b75", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21000.0, "surface_area": 8180.0, "principal_moments": [2760000.0, 4760000.0, 4760000.0], "n_faces": 348, "n_edges": 994, "n_vertices": 648}, "params": {"major_d": {"type": "float", "default": 16.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.0, "min": 1.0, "max": 4.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 44.0, "min": 17.6, "max": 88.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007807 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 4.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 44.0, \"min\": 17.6, \"max\": 88.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf80_0404", "family": "block", "tier": 2, "seed": 2468007808, "symmetry": "none", "op_count": 3, "ir_hash": "e814bf7017defa37", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 206000.0, "surface_area": 37700.0, "principal_moments": [97299999.99999999, 200000000.0, 264000000.0], "n_faces": 25, "n_edges": 66, "n_vertices": 44}, "params": {"block_w": {"type": "float", "default": 70.25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 31.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.2, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "boss_d": {"type": "float", "default": 24.8, "min": 12.4, "max": 49.6, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 11.5, "min": 4.6, "max": 28.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 17.4, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007808 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70.25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 31.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.2, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 24.8, \"min\": 12.4, \"max\": 49.6, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 11.5, \"min\": 4.6, \"max\": 28.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 17.4, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acf81_0405", "family": "gear", "tier": 0, "seed": 2468007809, "symmetry": "none", "op_count": 1, "ir_hash": "96a9f5310a0ec67c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8020.0, "surface_area": 3520.0, "principal_moments": [529000.0, 529000.0, 818000.0], "n_faces": 86, "n_edges": 252, "n_vertices": 168}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 14, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 13.4, "min": 5.4, "max": 33.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007809 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 14, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 13.4, \"min\": 5.4, \"max\": 33.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf82_0406", "family": "bracket", "tier": 2, "seed": 2468007810, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "40c1b7edc24ac23f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35000.0, "surface_area": 19100.0, "principal_moments": [16299999.999999998, 32399999.999999996, 35500000.0], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 72.25, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 69.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 59.54, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.4, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007810 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 72.25, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 69.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 59.54, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.4, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931acf83_0407", "family": "enclosure", "tier": 2, "seed": 2468007811, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "2a4c4ada38fe3c4b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 78000.0, "surface_area": 42300.0, "principal_moments": [64599999.99999999, 97699999.99999999, 104000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 85, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 50.5, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 67.6, "min": 27.0, "max": 135.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 11.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007811 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 85, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 50.5, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 67.6, \"min\": 27.0, \"max\": 135.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 11.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf84_0408", "family": "plate", "tier": 1, "seed": 2468007812, "symmetry": "radial", "op_count": 2, "ir_hash": "2463ef76fab9d251", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18100.0, "surface_area": 8710.0, "principal_moments": [2280000.0, 13599999.999999998, 15799999.999999998], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"plate_w": {"type": "float", "default": 95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 38.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 28.5, "min": 19.0, "max": 42.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007812 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 38.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 28.5, \"min\": 19.0, \"max\": 42.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf85_0409", "family": "revolved", "tier": 2, "seed": 2468007813, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "5ad735e34900be7b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 151000.0, "surface_area": 24100.0, "principal_moments": [86800000.0, 86800000.0, 111000000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 70, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 59.0, "min": 17.7, "max": 177.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.6, "min": 0.1, "max": 1.8, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007813 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 70, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 59.0, \"min\": 17.7, \"max\": 177.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.6, \"min\": 0.1, \"max\": 1.8, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931acf87_0411", "family": "profiled", "tier": 0, "seed": 2468007815, "symmetry": "none", "op_count": 1, "ir_hash": "004744d1354186a2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26400.0, "surface_area": 6870.0, "principal_moments": [1030000.0, 30199999.999999996, 30499999.999999996], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 20.0, "min": 10.0, "max": 40.0, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 13.23, "min": 6.6, "max": 26.5, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 116.4, "min": 34.9, "max": 349.2, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007815 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 20.0, \"min\": 10.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 13.23, \"min\": 6.6, \"max\": 26.5, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 116.4, \"min\": 34.9, \"max\": 349.2, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acf88_0412", "family": "flanged", "tier": 2, "seed": 2468007816, "symmetry": "none", "op_count": 2, "ir_hash": "10b6cf02206666d9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 455000.0, "surface_area": 74200.0, "principal_moments": [732000000.0, 732000000.0, 1200000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 95, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 55.3, "min": 16.6, "max": 138.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 45.1, "min": 2.0, "max": 66.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 178.9, "min": 123.5, "max": 285.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.4, "min": 2.5, "max": 22.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 53.7, "min": 35.8, "max": 80.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007816 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 55.3, \"min\": 16.6, \"max\": 138.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 45.1, \"min\": 2.0, \"max\": 66.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 178.9, \"min\": 123.5, \"max\": 285.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.5, \"max\": 22.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 53.7, \"min\": 35.8, \"max\": 80.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf89_0413", "family": "plate", "tier": 2, "seed": 2468007817, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "17737697a9c2455a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10800.0, "surface_area": 3720.0, "principal_moments": [759000.0, 1200000.0, 1700000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 26.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007817 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 26.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08942345948085798)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf8a_0414", "family": "bracket", "tier": 1, "seed": 2468007818, "symmetry": "none", "op_count": 1, "ir_hash": "ae1ab39d0c22dc91", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4420.0, "surface_area": 3800.0, "principal_moments": [583000.0, 1390000.0, 1800000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 42.62, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 33.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 15.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 6.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007818 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 42.62, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 33.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 15.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 6.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf8b_0415", "family": "revolved", "tier": 0, "seed": 2468007819, "symmetry": "none", "op_count": 1, "ir_hash": "39059c34c6cf87ba", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 137000.0, "surface_area": 24900.0, "principal_moments": [63799999.99999999, 89200000.0, 89200000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 55.76, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 84.0, "min": 25.2, "max": 252.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007819 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55.76, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 84.0, \"min\": 25.2, \"max\": 252.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf8c_0416", "family": "bracket", "tier": 2, "seed": 2468007820, "symmetry": "none", "op_count": 1, "ir_hash": "650064b18f37ef98", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6760.0, "surface_area": 4360.0, "principal_moments": [762000.0, 1240000.0, 1300000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 24.5, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 9.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007820 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 24.5, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 9.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acf8d_0417", "family": "flanged", "tier": 1, "seed": 2468007821, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f21863a335475a8b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 43100.0, "surface_area": 15400.0, "principal_moments": [15699999.999999998, 15699999.999999998, 25699999.999999996], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 37.63, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 28.0, "min": 8.4, "max": 70.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 20.4, "min": 2.0, "max": 26.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 79.8, "min": 48.9, "max": 112.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.5, "min": 1.6, "max": 11.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 23.9, "min": 16.0, "max": 35.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007821 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 37.63, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 28.0, \"min\": 8.4, \"max\": 70.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 20.4, \"min\": 2.0, \"max\": 26.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 79.8, \"min\": 48.9, \"max\": 112.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.5, \"min\": 1.6, \"max\": 11.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 23.9, \"min\": 16.0, \"max\": 35.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931acf8e_0418", "family": "ribbed", "tier": 2, "seed": 2468007822, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "19f4dfa674f91fb6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61500.0, "surface_area": 18700.0, "principal_moments": [21900000.0, 47199999.99999999, 67099999.99999999], "n_faces": 30, "n_edges": 88, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 92.33, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 63.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 9.8, "min": 3.9, "max": 19.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.6, "min": 1.0, "max": 9.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007822 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 92.33, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 63.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 9.8, \"min\": 3.9, \"max\": 19.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.6, \"min\": 1.0, \"max\": 9.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf8f_0419", "family": "plate", "tier": 2, "seed": 2468007823, "symmetry": "none", "op_count": 3, "ir_hash": "b207492b2ddba01f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10400.0, "surface_area": 4370.0, "principal_moments": [492000.0, 2200000.0, 2520000.0], "n_faces": 34, "n_edges": 96, "n_vertices": 64}, "params": {"plate_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 22.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.3, "min": 2.0, "max": 2.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}, "hole_slot_len": {"type": "float", "default": 5.9, "min": 3.4, "max": 12.5, "step": 0.5, "group": "Holes", "label": "Slot length (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007823 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 22.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.3, \"min\": 2.0, \"max\": 2.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n \"hole_slot_len\": {\"type\": 'float', \"default\": 5.9, \"min\": 3.4, \"max\": 12.5, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot length (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(20.0, 17.9, p[\"hole_nx\"], p[\"hole_ny\"])\n .slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07686845881322245)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acf90_0420", "family": "compound", "tier": 1, "seed": 2468007824, "symmetry": "none", "op_count": 2, "ir_hash": "edf3c9c136693f10", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 64000.0, "surface_area": 10800.0, "principal_moments": [12399999.999999998, 32599999.999999996, 32599999.999999996], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"base_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 26.07, "min": 15.6, "max": 41.7, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 24.9, "min": 10.0, "max": 62.2, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 25.2, "min": 12.6, "max": 33.7, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 47.7, "min": 14.3, "max": 119.2, "step": 1.0, "group": "Column", "label": "Column height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007824 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 26.07, \"min\": 15.6, \"max\": 41.7, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 24.9, \"min\": 10.0, \"max\": 62.2, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 25.2, \"min\": 12.6, \"max\": 33.7, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 47.7, \"min\": 14.3, \"max\": 119.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931acf92_0422", "family": "ribbed", "tier": 1, "seed": 2468007826, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "0860c7586bc39ce4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 52000.0, "surface_area": 27300.0, "principal_moments": [37900000.0, 42500000.0, 79800000.0], "n_faces": 36, "n_edges": 84, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 100.0, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 97.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 6.2, "min": 2.5, "max": 12.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.4, "min": 1.0, "max": 11.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007826 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 100.0, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 97.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 6.2, \"min\": 2.5, \"max\": 12.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.4, \"min\": 1.0, \"max\": 11.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acf93_0423", "family": "flanged", "tier": 2, "seed": 2468007827, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "6a18c7cb619bb4c2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1030000.0, "surface_area": 115000.0, "principal_moments": [2890000000.0, 2890000000.0, 3360000000.0], "n_faces": 26, "n_edges": 57, "n_vertices": 34}, "params": {"outer_d": {"type": "float", "default": 87.83, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 111.6, "min": 33.5, "max": 279.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 29.3, "min": 2.0, "max": 61.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 207.5, "min": 114.2, "max": 263.5, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 15.5, "min": 4.6, "max": 44.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 62.2, "min": 41.5, "max": 93.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007827 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 87.83, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 111.6, \"min\": 33.5, \"max\": 279.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 29.3, \"min\": 2.0, \"max\": 61.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 207.5, \"min\": 114.2, \"max\": 263.5, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 15.5, \"min\": 4.6, \"max\": 44.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 62.2, \"min\": 41.5, \"max\": 93.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931acf95_0425", "family": "profiled", "tier": 1, "seed": 2468007829, "symmetry": "none", "op_count": 1, "ir_hash": "76c63e061da155b3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 207000.0, "surface_area": 25500.0, "principal_moments": [34000000.0, 706000000.0, 706000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"circ_r": {"type": "float", "default": 19.11, "min": 9.6, "max": 38.2, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 200.0, "min": 60.0, "max": 600.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007829 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 19.11, \"min\": 9.6, \"max\": 38.2, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 200.0, \"min\": 60.0, \"max\": 600.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf96_0426", "family": "revolved", "tier": 0, "seed": 2468007830, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "818a7a041733fbc4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 213000.0, "surface_area": 41000.0, "principal_moments": [76900000.0, 398000000.0, 398000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 49.09, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 168.6, "min": 50.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007830 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 49.09, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 168.6, \"min\": 50.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acf97_0427", "family": "gear", "tier": 0, "seed": 2468007831, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "077dcd0078c2c0fd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34100.0, "surface_area": 9810.0, "principal_moments": [7570000.0, 7570000.0, 14099999.999999998], "n_faces": 116, "n_edges": 342, "n_vertices": 228}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 19, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 13.6, "min": 5.4, "max": 34.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007831 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 19, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 13.6, \"min\": 5.4, \"max\": 34.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf98_0428", "family": "plate", "tier": 0, "seed": 2468007832, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "4ba169300c6f26ee", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 89500.0, "surface_area": 21800.0, "principal_moments": [45999999.99999999, 99199999.99999999, 144000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 114.89, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 77.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007832 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 114.89, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 77.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acf99_0429", "family": "gear", "tier": 1, "seed": 2468007833, "symmetry": "none", "op_count": 1, "ir_hash": "70f07661ae55c466", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2430.0, "surface_area": 1790.0, "principal_moments": [98900.0, 98900.0, 185000.0], "n_faces": 147, "n_edges": 435, "n_vertices": 290}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 24, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.7, "min": 2.3, "max": 14.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 5.1, "min": 2.0, "max": 12.9, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007833 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 24, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.3, \"max\": 14.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 5.1, \"min\": 2.0, \"max\": 12.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931acf9a_0430", "family": "profiled", "tier": 1, "seed": 2468007834, "symmetry": "none", "op_count": 1, "ir_hash": "88404604d9ea2c36", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 52300.0, "surface_area": 10900.0, "principal_moments": [3980000.0, 78500000.0, 80700000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 29.32, "min": 14.7, "max": 58.6, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 15, "min": 7.5, "max": 30.0, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 133.5, "min": 40.0, "max": 400.5, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007834 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 29.32, \"min\": 14.7, \"max\": 58.6, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 15, \"min\": 7.5, \"max\": 30.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 133.5, \"min\": 40.0, \"max\": 400.5, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acf9b_0431", "family": "plate", "tier": 0, "seed": 2468007835, "symmetry": "none", "op_count": 1, "ir_hash": "21e390dbeda527d2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 109000.0, "surface_area": 22800.0, "principal_moments": [80500000.0, 87900000.0, 166000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 97.54, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 93.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007835 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 97.54, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 93.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf9c_0432", "family": "revolved", "tier": 2, "seed": 2468007836, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "0ff8e0866bfbc0b1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 135000.0, "surface_area": 19400.0, "principal_moments": [54099999.99999999, 79300000.0, 79300000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 53.51, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 68.2, "min": 20.5, "max": 204.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 18.6, "min": 2.0, "max": 37.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007836 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 53.51, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 68.2, \"min\": 20.5, \"max\": 204.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 18.6, \"min\": 2.0, \"max\": 37.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acf9d_0433", "family": "block", "tier": 1, "seed": 2468007837, "symmetry": "none", "op_count": 2, "ir_hash": "d6cd8b8acf8ddca3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15400.0, "surface_area": 6030.0, "principal_moments": [1570000.0, 1660000.0, 2540000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 31.87, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 16.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 32.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 4.9, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007837 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 31.87, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 16.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 32.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 4.9, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acf9e_0434", "family": "bracket", "tier": 1, "seed": 2468007838, "symmetry": "none", "op_count": 1, "ir_hash": "1f3a4d97f55ab97a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 62100.0, "surface_area": 23800.0, "principal_moments": [27699999.999999996, 119000000.0, 120000000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 75, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 88.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 51.96, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 48.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007838 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 88.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 51.96, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 48.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acf9f_0435", "family": "revolved", "tier": 2, "seed": 2468007839, "symmetry": "none", "op_count": 2, "ir_hash": "461530efe3250ea1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 854000.0, "surface_area": 104000.0, "principal_moments": [955000000.0, 5510000000.0, 5510000000.0], "n_faces": 14, "n_edges": 23, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 68.92, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 240.7, "min": 72.2, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 34.3, "min": 2.0, "max": 48.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 118.9, "min": 82.7, "max": 206.8, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 27.6, "min": 8.3, "max": 120.3, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "groove_depth": {"type": "float", "default": 5.29, "min": 2.12, "max": 15.87, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 22.95, "min": 9.18, "max": 68.85, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 76.9, "min": 36.1, "max": 204.6, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 1.1, "min": 0.1, "max": 3.3, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007839 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 68.92, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 240.7, \"min\": 72.2, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 34.3, \"min\": 2.0, \"max\": 48.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 118.9, \"min\": 82.7, \"max\": 206.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 27.6, \"min\": 8.3, \"max\": 120.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 5.29, \"min\": 2.12, \"max\": 15.87, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 22.95, \"min\": 9.18, \"max\": 68.85, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 76.9, \"min\": 36.1, \"max\": 204.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.1, \"min\": 0.1, \"max\": 3.3, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acfa1_0437", "family": "plate", "tier": 0, "seed": 2468007841, "symmetry": "radial", "op_count": 1, "ir_hash": "8590ee9297fddcba", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2070.0, "surface_area": 1270.0, "principal_moments": [35400.0, 170000.0, 197000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 30.97, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 13.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007841 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30.97, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 13.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acfa2_0438", "family": "plate", "tier": 0, "seed": 2468007842, "symmetry": "none", "op_count": 1, "ir_hash": "77d9142f0d3b1def", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7510.0, "surface_area": 3360.0, "principal_moments": [636000.0, 1020000.0, 1610000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 40, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 31.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007842 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 31.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acfa3_0439", "family": "gear", "tier": 1, "seed": 2468007843, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "a40d271189784e00", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30000.0, "surface_area": 9380.0, "principal_moments": [6240000.0, 6240000.0, 11499999.999999998], "n_faces": 111, "n_edges": 327, "n_vertices": 218}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 18, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 13.8, "min": 5.5, "max": 34.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 9.6, "min": 2.0, "max": 27.9, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007843 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 18, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 13.8, \"min\": 5.5, \"max\": 34.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 9.6, \"min\": 2.0, \"max\": 27.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acfa4_0440", "family": "bracket", "tier": 1, "seed": 2468007844, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "717342e4b8408b40", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9870.0, "surface_area": 4870.0, "principal_moments": [1160000.0, 4020000.0, 4600000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 43.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 18.44, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 7.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007844 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 43.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 18.44, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 7.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931acfa6_0442", "family": "enclosure", "tier": 2, "seed": 2468007846, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "b6ea60cbc3e0d27f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 73900.0, "surface_area": 40000.0, "principal_moments": [63099999.99999999, 77900000.0, 88800000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 75, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 49.5, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 71.2, "min": 28.5, "max": 142.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 11.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007846 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 75, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 49.5, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 71.2, \"min\": 28.5, \"max\": 142.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 11.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acfa7_0443", "family": "compound", "tier": 1, "seed": 2468007847, "symmetry": "none", "op_count": 3, "ir_hash": "a0c9dbacea9ebf86", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24100.0, "surface_area": 6620.0, "principal_moments": [2770000.0, 3830000.0, 4240000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 33.38, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 24.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 28.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 14.3, "min": 5.7, "max": 22.9, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 24.7, "min": 9.9, "max": 39.5, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 2.8, "min": 2.0, "max": 3.1, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007847 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 33.38, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 24.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 28.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 14.3, \"min\": 5.7, \"max\": 22.9, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 24.7, \"min\": 9.9, \"max\": 39.5, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 2.8, \"min\": 2.0, \"max\": 3.1, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acfa9_0445", "family": "bracket", "tier": 1, "seed": 2468007849, "symmetry": "none", "op_count": 1, "ir_hash": "15ca0e2f5712a952", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30900.0, "surface_area": 22300.0, "principal_moments": [23899999.999999996, 32399999.999999996, 43300000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 68.07, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 72.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007849 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 68.07, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 72.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acfab_0447", "family": "compound", "tier": 1, "seed": 2468007851, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "ecc231a79d9aa3c6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9180.0, "surface_area": 4610.0, "principal_moments": [365000.0, 2370000.0, 2370000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 17.44, "min": 8.7, "max": 31.4, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 37.7, "min": 15.1, "max": 75.4, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 10.9, "min": 5.5, "max": 15.7, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 24.7, "min": 7.4, "max": 61.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 6.6, "min": 2.0, "max": 7.8, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007851 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 17.44, \"min\": 8.7, \"max\": 31.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 37.7, \"min\": 15.1, \"max\": 75.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 10.9, \"min\": 5.5, \"max\": 15.7, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 24.7, \"min\": 7.4, \"max\": 61.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 6.6, \"min\": 2.0, \"max\": 7.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acfac_0448", "family": "block", "tier": 2, "seed": 2468007852, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "953b0ec8c8b7b8c4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 198000.0, "surface_area": 35600.0, "principal_moments": [113000000.0, 144000000.0, 154000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 58.4, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 55.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 76.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 12.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 23.4, "min": 11.7, "max": 46.7, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 38.1, "min": 19.1, "max": 44.1, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 34.2, "min": 13.7, "max": 64.9, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007852 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 58.4, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 55.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 76.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 12.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 23.4, \"min\": 11.7, \"max\": 46.7, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 38.1, \"min\": 19.1, \"max\": 44.1, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 34.2, \"min\": 13.7, \"max\": 64.9, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acfad_0449", "family": "compound", "tier": 1, "seed": 2468007853, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "839ca14722e15f30", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 165000.0, "surface_area": 19500.0, "principal_moments": [36100000.0, 227000000.0, 227000000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 45, "min": 22.5, "max": 81.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 78.2, "min": 31.3, "max": 156.4, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 30.4, "min": 15.2, "max": 40.5, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 55.3, "min": 16.6, "max": 138.2, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007853 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 45, \"min\": 22.5, \"max\": 81.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 78.2, \"min\": 31.3, \"max\": 156.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 30.4, \"min\": 15.2, \"max\": 40.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 55.3, \"min\": 16.6, \"max\": 138.2, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931acfaf_0451", "family": "profiled", "tier": 1, "seed": 2468007855, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "619d646ab1a14c43", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 56800.0, "surface_area": 9840.0, "principal_moments": [6970000.0, 31599999.999999996, 31599999.999999996], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"circ_r": {"type": "float", "default": 19.19, "min": 9.6, "max": 38.4, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 4, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 77.1, "min": 23.1, "max": 231.3, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007855 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 19.19, \"min\": 9.6, \"max\": 38.4, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 77.1, \"min\": 23.1, \"max\": 231.3, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acfb0_0452", "family": "flanged", "tier": 1, "seed": 2468007856, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "320f608e8ff3fd35", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 584000.0, "surface_area": 73100.0, "principal_moments": [798000000.0, 1150000000.0, 1150000000.0], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 80, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 114.0, "min": 34.2, "max": 285.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 32.5, "min": 2.0, "max": 56.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 141.7, "min": 104.0, "max": 240.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 10.0, "min": 3.0, "max": 45.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 42.5, "min": 28.3, "max": 63.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007856 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 114.0, \"min\": 34.2, \"max\": 285.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 32.5, \"min\": 2.0, \"max\": 56.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 141.7, \"min\": 104.0, \"max\": 240.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 10.0, \"min\": 3.0, \"max\": 45.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 42.5, \"min\": 28.3, \"max\": 63.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acfb1_0453", "family": "threaded", "tier": 0, "seed": 2468007857, "symmetry": "none", "op_count": 1, "ir_hash": "5473bbf14f308bcf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5530.0, "surface_area": 3430.0, "principal_moments": [84100.0, 1620000.0, 1620000.0], "n_faces": 340, "n_edges": 874, "n_vertices": 536}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 58.8, "min": 23.5, "max": 117.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007857 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 58.8, \"min\": 23.5, \"max\": 117.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acfb3_0455", "family": "block", "tier": 2, "seed": 2468007859, "symmetry": "none", "op_count": 3, "ir_hash": "792ed12d8708d2c7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17800.0, "surface_area": 6020.0, "principal_moments": [1700000.0, 2360000.0, 2580000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 33.77, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 22.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 24.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 8.9, "min": 4.5, "max": 17.8, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 5.8, "min": 2.3, "max": 14.5, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.2, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007859 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 33.77, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 22.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 24.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 8.9, \"min\": 4.5, \"max\": 17.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.3, \"max\": 14.5, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.2, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acfb4_0456", "family": "plate", "tier": 1, "seed": 2468007860, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "0c6c3c89a311e5f4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29300.0, "surface_area": 12300.0, "principal_moments": [5470000.0, 27599999.999999996, 32899999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 107.4, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 47.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 10.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007860 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 107.4, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 47.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 10.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931acfb5_0457", "family": "profiled", "tier": 0, "seed": 2468007861, "symmetry": "none", "op_count": 1, "ir_hash": "e4f7c602361b652a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 300000.0, "surface_area": 63400.0, "principal_moments": [86100000.0, 1650000000.0, 1650000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 43.72, "min": 21.9, "max": 87.4, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 300.0, "min": 90.0, "max": 900.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007861 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 43.72, \"min\": 21.9, \"max\": 87.4, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 300.0, \"min\": 90.0, \"max\": 900.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acfb6_0458", "family": "block", "tier": 1, "seed": 2468007862, "symmetry": "none", "op_count": 2, "ir_hash": "23f33eb2a1ee3d78", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 125000.0, "surface_area": 21100.0, "principal_moments": [47399999.99999999, 54699999.99999999, 70800000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 38.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 61.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007862 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 38.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 61.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 10.3\n _ssy = 9.8\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acfb7_0459", "family": "bracket", "tier": 2, "seed": 2468007863, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "e9d00607e6a185ee", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32200.0, "surface_area": 11500.0, "principal_moments": [14099999.999999998, 32499999.999999996, 44600000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 80.08, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 65.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 19.66, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 7.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 9.0, "min": 4.0, "max": 9.8, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007863 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80.08, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 65.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 19.66, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 7.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 9.0, \"min\": 4.0, \"max\": 9.8, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931acfb8_0460", "family": "profiled", "tier": 2, "seed": 2468007864, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "d603304f7ca4c905", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 190000.0, "surface_area": 25400.0, "principal_moments": [29299999.999999996, 649000000.0, 649000000.0], "n_faces": 7, "n_edges": 15, "n_vertices": 10}, "params": {"circ_r": {"type": "float", "default": 20, "min": 10.0, "max": 40.0, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 200.0, "min": 60.0, "max": 600.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007864 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 20, \"min\": 10.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 200.0, \"min\": 60.0, \"max\": 600.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acfb9_0461", "family": "bracket", "tier": 1, "seed": 2468007865, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "e5c8d8f283fb01f8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17600.0, "surface_area": 12900.0, "principal_moments": [6100000.0, 15799999.999999998, 15899999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 71.52, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 62.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007865 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 71.52, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 62.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acfbc_0464", "family": "revolved", "tier": 1, "seed": 2468007868, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "1c6fced8f3477456", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 503000.0, "surface_area": 71600.0, "principal_moments": [534000000.0, 1560000000.0, 1560000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 65, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 162.5, "min": 48.8, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 37.2, "min": 2.0, "max": 45.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 108.2, "min": 78.0, "max": 195.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 23.9, "min": 7.2, "max": 81.2, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007868 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 162.5, \"min\": 48.8, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 37.2, \"min\": 2.0, \"max\": 45.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 108.2, \"min\": 78.0, \"max\": 195.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 23.9, \"min\": 7.2, \"max\": 81.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acfbd_0465", "family": "flanged", "tier": 2, "seed": 2468007869, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "b484c412fae4c0c1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 423000.0, "surface_area": 54000.0, "principal_moments": [410000000.0, 595000000.0, 595000000.0], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 73.1, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 97.5, "min": 29.2, "max": 243.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 22.9, "min": 2.0, "max": 51.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 120.0, "min": 95.0, "max": 219.3, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.2, "min": 2.5, "max": 39.0, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 36.0, "min": 24.0, "max": 54.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007869 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 73.1, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 97.5, \"min\": 29.2, \"max\": 243.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 22.9, \"min\": 2.0, \"max\": 51.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 120.0, \"min\": 95.0, \"max\": 219.3, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.2, \"min\": 2.5, \"max\": 39.0, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 36.0, \"min\": 24.0, \"max\": 54.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acfbe_0466", "family": "compound", "tier": 1, "seed": 2468007870, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "1b74c8b41c031102", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32500.0, "surface_area": 7950.0, "principal_moments": [4710000.0, 6750000.0, 6930000.0], "n_faces": 14, "n_edges": 34, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 39.87, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 28.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 29.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 8.9, "min": 3.6, "max": 12.6, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 8.3, "min": 2.2, "max": 26.7, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.4, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007870 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 39.87, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 28.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 29.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 8.9, \"min\": 3.6, \"max\": 12.6, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 8.3, \"min\": 2.2, \"max\": 26.7, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.4, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acfc1_0469", "family": "revolved", "tier": 1, "seed": 2468007873, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "26a7e5d85c6a1f4d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 399000.0, "surface_area": 55300.0, "principal_moments": [208000000.0, 1290000000.0, 1290000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 58.56, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 189.2, "min": 56.8, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 27.3, "min": 2.0, "max": 41.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007873 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 58.56, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 189.2, \"min\": 56.8, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 27.3, \"min\": 2.0, \"max\": 41.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acfc2_0470", "family": "block", "tier": 1, "seed": 2468007874, "symmetry": "none", "op_count": 2, "ir_hash": "c58c40553f098900", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 154000.0, "surface_area": 22700.0, "principal_moments": [58199999.99999999, 97599999.99999999, 128000000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 58.78, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 33.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 80.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007874 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 58.78, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 33.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 80.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 22.0\n _ssy = 22.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acfc3_0471", "family": "compound", "tier": 1, "seed": 2468007875, "symmetry": "none", "op_count": 2, "ir_hash": "c3f14186a55552f0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 76800.0, "surface_area": 10700.0, "principal_moments": [17300000.0, 27899999.999999996, 27899999.999999996], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 44.92, "min": 22.5, "max": 80.9, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 38.8, "min": 15.5, "max": 77.6, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 30.3, "min": 15.2, "max": 40.4, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 21.2, "min": 6.4, "max": 53.0, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007875 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 44.92, \"min\": 22.5, \"max\": 80.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 38.8, \"min\": 15.5, \"max\": 77.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 30.3, \"min\": 15.2, \"max\": 40.4, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 21.2, \"min\": 6.4, \"max\": 53.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acfc5_0473", "family": "compound", "tier": 2, "seed": 2468007877, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "5938ef47628e9489", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 205000.0, "surface_area": 26100.0, "principal_moments": [110000000.0, 138000000.0, 140000000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 57.26, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 62.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 56.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 26.4, "min": 10.6, "max": 39.5, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 26.5, "min": 7.9, "max": 105.6, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 12.6, "min": 2.0, "max": 19.0, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 12.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007877 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 57.26, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 62.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 56.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 26.4, \"min\": 10.6, \"max\": 39.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 26.5, \"min\": 7.9, \"max\": 105.6, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 12.6, \"min\": 2.0, \"max\": 19.0, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 12.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acfc6_0474", "family": "threaded", "tier": 0, "seed": 2468007878, "symmetry": "none", "op_count": 1, "ir_hash": "86b7b8b2d6af55ad", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3740.0, "surface_area": 2370.0, "principal_moments": [56900.0, 520000.0, 520000.0], "n_faces": 235, "n_edges": 603, "n_vertices": 370}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 39.9, "min": 16.0, "max": 79.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007878 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 39.9, \"min\": 16.0, \"max\": 79.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931acfc7_0475", "family": "enclosure", "tier": 2, "seed": 2468007879, "symmetry": "none", "op_count": 3, "ir_hash": "5095c8d28f498eca", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 171000.0, "surface_area": 87300.0, "principal_moments": [308000000.0, 415000000.0, 463000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 115, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 70.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 101.6, "min": 40.6, "max": 203.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007879 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 115, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 70.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 101.6, \"min\": 40.6, \"max\": 203.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acfc8_0476", "family": "revolved", "tier": 1, "seed": 2468007880, "symmetry": "radial", "op_count": 2, "ir_hash": "f44a90f94cb802f9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6620.0, "surface_area": 3220.0, "principal_moments": [396000.0, 590000.0, 590000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 20, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 31.8, "min": 9.5, "max": 95.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007880 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 20, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 31.8, \"min\": 9.5, \"max\": 95.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 3.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acfca_0478", "family": "plate", "tier": 1, "seed": 2468007882, "symmetry": "none", "op_count": 2, "ir_hash": "b5fe8b0d4b7a67c3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17700.0, "surface_area": 7800.0, "principal_moments": [1720000.0, 11899999.999999998, 13499999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 90.09, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 33.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 7.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007882 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 90.09, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 33.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 7.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931acfcb_0479", "family": "enclosure", "tier": 2, "seed": 2468007883, "symmetry": "none", "op_count": 4, "ir_hash": "1f1b19e8af96972a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 239000.0, "surface_area": 84200.0, "principal_moments": [400000000.0, 573000000.0, 651000000.0], "n_faces": 35, "n_edges": 108, "n_vertices": 72}, "params": {"enc_w": {"type": "float", "default": 120.0, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 68.2, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 100.8, "min": 40.3, "max": 201.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007883 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 120.0, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 68.2, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 100.8, \"min\": 40.3, \"max\": 201.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.06705192258397848)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acfcd_0481", "family": "revolved", "tier": 1, "seed": 2468007885, "symmetry": "radial", "op_count": 2, "ir_hash": "569d972177ec404b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 53600.0, "surface_area": 15000.0, "principal_moments": [18100000.0, 18100000.0, 27599999.999999996], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 33.88, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 41.1, "min": 12.3, "max": 123.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 73.1, "min": 40.7, "max": 101.6, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.8, "min": 2.6, "max": 20.6, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007885 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 33.88, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 41.1, \"min\": 12.3, \"max\": 123.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 73.1, \"min\": 40.7, \"max\": 101.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.8, \"min\": 2.6, \"max\": 20.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 3.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acfd2_0486", "family": "block", "tier": 1, "seed": 2468007890, "symmetry": "none", "op_count": 2, "ir_hash": "6cbbae533a16b383", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 439000.0, "surface_area": 42300.0, "principal_moments": [362000000.0, 465000000.0, 628000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 52.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 15.3, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007890 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 52.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 15.3, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acfd3_0487", "family": "bracket", "tier": 1, "seed": 2468007891, "symmetry": "none", "op_count": 1, "ir_hash": "4790939b1cf91b4a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 76000.0, "surface_area": 29200.0, "principal_moments": [75800000.0, 92399999.99999999, 130000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 75, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 84.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007891 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 84.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acfd4_0488", "family": "bracket", "tier": 2, "seed": 2468007892, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "29c0cf27f61f3e53", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 48400.0, "surface_area": 21100.0, "principal_moments": [22600000.0, 62199999.99999999, 66999999.99999999], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 86.37, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 6.3, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007892 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 86.37, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.3, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acfd5_0489", "family": "block", "tier": 1, "seed": 2468007893, "symmetry": "radial", "op_count": 2, "ir_hash": "5967dcfc869c32ca", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 415000.0, "surface_area": 44900.0, "principal_moments": [326000000.0, 440000000.0, 577000000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"block_w": {"type": "float", "default": 81.34, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 52.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.4, "min": 16.3, "max": 36.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007893 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 81.34, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 52.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.4, \"min\": 16.3, \"max\": 36.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acfd6_0490", "family": "threaded", "tier": 1, "seed": 2468007894, "symmetry": "none", "op_count": 1, "ir_hash": "f2cc72d1c5a66567", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18500.0, "surface_area": 7280.0, "principal_moments": [2420000.0, 3490000.0, 3490000.0], "n_faces": 303, "n_edges": 863, "n_vertices": 562}, "params": {"major_d": {"type": "float", "default": 16.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.0, "min": 1.0, "max": 4.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 38.6, "min": 15.4, "max": 77.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007894 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 4.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 38.6, \"min\": 15.4, \"max\": 77.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acfd7_0491", "family": "revolved", "tier": 1, "seed": 2468007895, "symmetry": "none", "op_count": 2, "ir_hash": "a1df44877437f712", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15500.0, "surface_area": 5030.0, "principal_moments": [985000.0, 3700000.0, 3700000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 21.28, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 50.2, "min": 15.1, "max": 150.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 7.5, "min": 2.0, "max": 14.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 1.2, "min": 0.1, "max": 3.6, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007895 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 21.28, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 50.2, \"min\": 15.1, \"max\": 150.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 7.5, \"min\": 2.0, \"max\": 14.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.2, \"min\": 0.1, \"max\": 3.6, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acfd9_0493", "family": "bracket", "tier": 1, "seed": 2468007897, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "c9d7c532265dd0a9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24800.0, "surface_area": 18200.0, "principal_moments": [19500000.0, 26899999.999999996, 40800000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 72.91, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 79.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 36.83, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007897 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 72.91, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 79.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 36.83, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931acfdb_0495", "family": "ribbed", "tier": 1, "seed": 2468007899, "symmetry": "none", "op_count": 2, "ir_hash": "50ef19b61a5db5cf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45600.0, "surface_area": 15400.0, "principal_moments": [13899999.999999998, 31099999.999999996, 41900000.0], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 54.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 15.3, "min": 6.1, "max": 30.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.4, "min": 1.0, "max": 13.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007899 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 54.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 15.3, \"min\": 6.1, \"max\": 30.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.4, \"min\": 1.0, \"max\": 13.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931acfdc_0496", "family": "ribbed", "tier": 2, "seed": 2468007900, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "7d04d6f3ac6a2f40", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20600.0, "surface_area": 9430.0, "principal_moments": [3040000.0, 5070000.0, 6760000.0], "n_faces": 38, "n_edges": 108, "n_vertices": 68}, "params": {"base_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 37.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 12.7, "min": 5.1, "max": 25.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.8, "min": 1.0, "max": 14.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 8.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007900 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 37.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 12.7, \"min\": 5.1, \"max\": 25.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.8, \"min\": 1.0, \"max\": 14.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 8.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acfdd_0497", "family": "revolved", "tier": 1, "seed": 2468007901, "symmetry": "radial", "op_count": 1, "ir_hash": "fe96e0cc5704fcf7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 289000.0, "surface_area": 38900.0, "principal_moments": [120000000.0, 678000000.0, 678000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 45, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 155.1, "min": 46.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.3, "min": 2.0, "max": 31.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 65.5, "min": 54.0, "max": 135.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 41.9, "min": 12.6, "max": 77.5, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007901 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 155.1, \"min\": 46.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.3, \"min\": 2.0, \"max\": 31.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 65.5, \"min\": 54.0, \"max\": 135.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 41.9, \"min\": 12.6, \"max\": 77.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acfde_0498", "family": "block", "tier": 1, "seed": 2468007902, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "204fdb32a852207c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24700.0, "surface_area": 6250.0, "principal_moments": [2760000.0, 4250000.0, 4260000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 37.72, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 26.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 25.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007902 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 37.72, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 26.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 25.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acfdf_0499", "family": "flanged", "tier": 2, "seed": 2468007903, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "55acee2e79da62e6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19500.0, "surface_area": 7630.0, "principal_moments": [3530000.0, 3810000.0, 3810000.0], "n_faces": 32, "n_edges": 80, "n_vertices": 47}, "params": {"outer_d": {"type": "float", "default": 24.91, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 32.7, "min": 9.8, "max": 81.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 9.0, "min": 2.0, "max": 17.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 49.8, "min": 32.4, "max": 74.7, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.4, "min": 1.3, "max": 13.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 14.9, "min": 10.0, "max": 22.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007903 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 24.91, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 32.7, \"min\": 9.8, \"max\": 81.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 9.0, \"min\": 2.0, \"max\": 17.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 49.8, \"min\": 32.4, \"max\": 74.7, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.4, \"min\": 1.3, \"max\": 13.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 14.9, \"min\": 10.0, \"max\": 22.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acfe2_0502", "family": "revolved", "tier": 2, "seed": 2468007906, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "246dcb8c42f6edf7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 398.0, "surface_area": 465.0, "principal_moments": [6350.0, 6350.0, 11500.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 13.2, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 4.3, "min": 1.3, "max": 12.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 7.5, "min": 2.0, "max": 9.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007906 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 13.2, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 4.3, \"min\": 1.3, \"max\": 12.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 7.5, \"min\": 2.0, \"max\": 9.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acfe3_0503", "family": "revolved", "tier": 1, "seed": 2468007907, "symmetry": "none", "op_count": 1, "ir_hash": "1995db703fc83c1d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9570.0, "surface_area": 5040.0, "principal_moments": [470000.0, 2000000.0, 2000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 18.1, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 55.8, "min": 16.7, "max": 167.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007907 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 18.1, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 55.8, \"min\": 16.7, \"max\": 167.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931acfe4_0504", "family": "ribbed", "tier": 1, "seed": 2468007908, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "bf416a0c0dd8ada0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 68600.0, "surface_area": 25300.0, "principal_moments": [31399999.999999996, 45500000.0, 70200000.0], "n_faces": 26, "n_edges": 60, "n_vertices": 40}, "params": {"base_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 70.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 18.7, "min": 7.5, "max": 37.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.0, "min": 1.0, "max": 10.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007908 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 70.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 18.7, \"min\": 7.5, \"max\": 37.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.0, \"max\": 10.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acfe5_0505", "family": "flanged", "tier": 1, "seed": 2468007909, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "0e8f034b9a04cd33", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 725000.0, "surface_area": 101000.0, "principal_moments": [1750000000.0, 1750000000.0, 2310000000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 90, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 93.9, "min": 28.2, "max": 234.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 49.4, "min": 2.0, "max": 63.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 193.4, "min": 117.0, "max": 270.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 13.5, "min": 4.0, "max": 37.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 58.0, "min": 38.7, "max": 87.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007909 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 93.9, \"min\": 28.2, \"max\": 234.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 49.4, \"min\": 2.0, \"max\": 63.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 193.4, \"min\": 117.0, \"max\": 270.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 13.5, \"min\": 4.0, \"max\": 37.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 58.0, \"min\": 38.7, \"max\": 87.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acfe7_0507", "family": "bracket", "tier": 2, "seed": 2468007911, "symmetry": "none", "op_count": 1, "ir_hash": "c8a820a6f547394a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23300.0, "surface_area": 10400.0, "principal_moments": [6260000.0, 22000000.0, 26999999.999999996], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 7.4, "min": 2.5, "max": 10.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007911 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 7.4, \"min\": 2.5, \"max\": 10.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acfe8_0508", "family": "threaded", "tier": 0, "seed": 2468007912, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "52bb8448c380a254", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7880.0, "surface_area": 3740.0, "principal_moments": [218000.0, 1490000.0, 1490000.0], "n_faces": 411, "n_edges": 1131, "n_vertices": 722}, "params": {"major_d": {"type": "float", "default": 16.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.0, "min": 1.0, "max": 4.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 46.0, "min": 18.4, "max": 92.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007912 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 4.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 46.0, \"min\": 18.4, \"max\": 92.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acfe9_0509", "family": "revolved", "tier": 0, "seed": 2468007913, "symmetry": "none", "op_count": 1, "ir_hash": "870ed1241a1282b8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5790.0, "surface_area": 2730.0, "principal_moments": [379000.0, 379000.0, 543000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 25, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 17.7, "min": 5.3, "max": 53.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007913 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 17.7, \"min\": 5.3, \"max\": 53.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931acfeb_0511", "family": "gear", "tier": 0, "seed": 2468007915, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "a983a29450e35720", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 544000.0, "surface_area": 66900.0, "principal_moments": [907000000.0, 907000000.0, 1750000000.0], "n_faces": 194, "n_edges": 576, "n_vertices": 384}, "params": {"module": {"type": "float", "default": 5.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 32, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 27.3, "min": 10.9, "max": 68.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007915 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 5.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 32, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 27.3, \"min\": 10.9, \"max\": 68.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931acfec_0512", "family": "bracket", "tier": 1, "seed": 2468007916, "symmetry": "none", "op_count": 1, "ir_hash": "1e86f0aa0bfff1d2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 36500.0, "surface_area": 14700.0, "principal_moments": [15699999.999999998, 25299999.999999996, 31999999.999999996], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 60, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 55.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 38.47, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007916 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 60, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 55.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 38.47, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acfed_0513", "family": "compound", "tier": 2, "seed": 2468007917, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "a47685912c406b19", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61200.0, "surface_area": 21500.0, "principal_moments": [40500000.0, 44300000.0, 47899999.99999999], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"base_w": {"type": "float", "default": 74.6, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 80.9, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 8.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 21.8, "min": 8.7, "max": 37.3, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 60.9, "min": 18.3, "max": 182.7, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 12.6, "min": 2.0, "max": 15.7, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007917 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 74.6, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 80.9, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 21.8, \"min\": 8.7, \"max\": 37.3, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 60.9, \"min\": 18.3, \"max\": 182.7, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 12.6, \"min\": 2.0, \"max\": 15.7, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_w\"], p[\"base_d\"]) * 0.06560544532230905)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931acfee_0514", "family": "plate", "tier": 1, "seed": 2468007918, "symmetry": "radial", "op_count": 2, "ir_hash": "ed1cc9a1b7302401", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10100.0, "surface_area": 6470.0, "principal_moments": [995000.0, 5460000.0, 6430000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"plate_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 34.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.0, "min": 16.0, "max": 36.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007918 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 34.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.0, \"min\": 16.0, \"max\": 36.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acfef_0515", "family": "block", "tier": 1, "seed": 2468007919, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f29cbd22da2f669e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 233000.0, "surface_area": 29600.0, "principal_moments": [119000000.0, 215000000.0, 293000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 71.39, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 33.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007919 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 71.39, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 33.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acff0_0516", "family": "block", "tier": 2, "seed": 2468007920, "symmetry": "radial", "op_count": 3, "ir_hash": "71b1e224a7102239", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 47900.0, "surface_area": 9280.0, "principal_moments": [7300000.0, 15099999.999999998, 16499999.999999998], "n_faces": 28, "n_edges": 78, "n_vertices": 52}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 27.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 32.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 16.5, "min": 11.0, "max": 24.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007920 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 27.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 32.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 16.5, \"min\": 11.0, \"max\": 24.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.052183197471465756)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acff2_0518", "family": "flanged", "tier": 1, "seed": 2468007922, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "8f1c94da59c9bff3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 99400.0, "surface_area": 23900.0, "principal_moments": [49499999.99999999, 50099999.99999999, 50099999.99999999], "n_faces": 29, "n_edges": 114, "n_vertices": 76}, "params": {"outer_d": {"type": "float", "default": 50.5, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 51.0, "min": 15.3, "max": 127.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 19.3, "min": 2.0, "max": 35.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 83.5, "min": 65.7, "max": 151.5, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.0, "min": 1.5, "max": 20.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 25.1, "min": 16.7, "max": 37.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007922 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50.5, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 51.0, \"min\": 15.3, \"max\": 127.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 19.3, \"min\": 2.0, \"max\": 35.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 83.5, \"min\": 65.7, \"max\": 151.5, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.0, \"min\": 1.5, \"max\": 20.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 25.1, \"min\": 16.7, \"max\": 37.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acff3_0519", "family": "flanged", "tier": 2, "seed": 2468007923, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f234ea46f7f0a447", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 384000.0, "surface_area": 62100.0, "principal_moments": [544000000.0, 544000000.0, 912000000.0], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 90.11, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 50.3, "min": 15.1, "max": 125.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 44.2, "min": 2.0, "max": 63.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 161.6, "min": 117.1, "max": 270.3, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 10.1, "min": 3.0, "max": 20.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 48.5, "min": 32.3, "max": 72.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007923 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 90.11, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 50.3, \"min\": 15.1, \"max\": 125.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 44.2, \"min\": 2.0, \"max\": 63.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 161.6, \"min\": 117.1, \"max\": 270.3, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 10.1, \"min\": 3.0, \"max\": 20.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 48.5, \"min\": 32.3, \"max\": 72.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acff4_0520", "family": "threaded", "tier": 0, "seed": 2468007924, "symmetry": "none", "op_count": 1, "ir_hash": "6a705af51fae091b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 126.0, "surface_area": 243.0, "principal_moments": [206.0, 1750.0, 1750.0], "n_faces": 185, "n_edges": 473, "n_vertices": 290}, "params": {"major_d": {"type": "float", "default": 4.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.7, "min": 0.35, "max": 1.4, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 12.6, "min": 5.0, "max": 25.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007924 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.35, \"max\": 1.4, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 12.6, \"min\": 5.0, \"max\": 25.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931acff5_0521", "family": "revolved", "tier": 0, "seed": 2468007925, "symmetry": "none", "op_count": 1, "ir_hash": "f70354c8dfbc448b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 251000.0, "surface_area": 40100.0, "principal_moments": [143000000.0, 310000000.0, 310000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 61.64, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 126.4, "min": 37.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007925 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 61.64, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 126.4, \"min\": 37.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acff6_0522", "family": "block", "tier": 1, "seed": 2468007926, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "6efd707f3fb7691f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6230.0, "surface_area": 3030.0, "principal_moments": [367000.0, 404000.0, 666000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 10.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 26.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.2, "min": 2.0, "max": 2.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007926 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 10.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 26.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 2.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acff8_0524", "family": "flanged", "tier": 2, "seed": 2468007928, "symmetry": "none", "op_count": 2, "ir_hash": "cc54e8a8db06e8d5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 465000.0, "surface_area": 65400.0, "principal_moments": [633000000.0, 633000000.0, 795000000.0], "n_faces": 17, "n_edges": 60, "n_vertices": 40}, "params": {"outer_d": {"type": "float", "default": 90, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 72.1, "min": 21.6, "max": 180.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 37.1, "min": 2.0, "max": 63.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 146.4, "min": 117.0, "max": 270.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.7, "min": 2.9, "max": 28.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 43.9, "min": 29.3, "max": 65.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007928 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 72.1, \"min\": 21.6, \"max\": 180.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 37.1, \"min\": 2.0, \"max\": 63.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 146.4, \"min\": 117.0, \"max\": 270.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.7, \"min\": 2.9, \"max\": 28.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 43.9, \"min\": 29.3, \"max\": 65.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acff9_0525", "family": "block", "tier": 1, "seed": 2468007929, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "761b504a7b5c82f3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24200.0, "surface_area": 7900.0, "principal_moments": [2550000.0, 5680000.0, 7300000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 32.7, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 15.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 50.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007929 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 32.7, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 15.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 50.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931acffa_0526", "family": "flanged", "tier": 2, "seed": 2468007930, "symmetry": "none", "op_count": 2, "ir_hash": "9d5d3de233cf2999", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45200.0, "surface_area": 15900.0, "principal_moments": [17300000.0, 18300000.0, 18300000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 35, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 46.1, "min": 13.8, "max": 115.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 18.9, "min": 2.0, "max": 24.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 71.0, "min": 45.5, "max": 105.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.9, "min": 1.5, "max": 18.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 21.3, "min": 14.2, "max": 31.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007930 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 46.1, \"min\": 13.8, \"max\": 115.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 18.9, \"min\": 2.0, \"max\": 24.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 71.0, \"min\": 45.5, \"max\": 105.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.9, \"min\": 1.5, \"max\": 18.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 21.3, \"min\": 14.2, \"max\": 31.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931acffb_0527", "family": "block", "tier": 2, "seed": 2468007931, "symmetry": "radial", "op_count": 3, "ir_hash": "8a2dfdf8f6664971", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 68200.0, "surface_area": 14000.0, "principal_moments": [13999999.999999998, 35300000.0, 44500000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 46.02, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 20.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 72.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 13.8, "min": 9.2, "max": 20.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "boss_d": {"type": "float", "default": 17.5, "min": 8.8, "max": 35.0, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 10.2, "min": 4.1, "max": 25.5, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007931 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 46.02, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 20.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 72.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 13.8, \"min\": 9.2, \"max\": 20.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"boss_d\": {\"type\": 'float', \"default\": 17.5, \"min\": 8.8, \"max\": 35.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 10.2, \"min\": 4.1, \"max\": 25.5, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931acffc_0528", "family": "threaded", "tier": 1, "seed": 2468007932, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "615607606d60e1f5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 366.0, "surface_area": 545.0, "principal_moments": [2960.0, 5840.0, 5840.0], "n_faces": 143, "n_edges": 387, "n_vertices": 246}, "params": {"major_d": {"type": "float", "default": 4.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.7, "min": 0.35, "max": 1.4, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 12.0, "min": 5.0, "max": 24.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007932 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.35, \"max\": 1.4, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 12.0, \"min\": 5.0, \"max\": 24.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931acffe_0530", "family": "compound", "tier": 1, "seed": 2468007934, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "e440001219e6e519", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 156000.0, "surface_area": 24100.0, "principal_moments": [73900000.0, 79700000.0, 85900000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 51.13, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 52.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 59.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 43.8, "min": 17.5, "max": 70.1, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 45.8, "min": 18.3, "max": 73.3, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 9.6, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007934 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 51.13, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 52.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 59.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 43.8, \"min\": 17.5, \"max\": 70.1, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 45.8, \"min\": 18.3, \"max\": 73.3, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 9.6, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad000_0532", "family": "revolved", "tier": 2, "seed": 2468007936, "symmetry": "none", "op_count": 1, "ir_hash": "865752950cc9155b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24000.0, "surface_area": 8220.0, "principal_moments": [3660000.0, 4750000.0, 4750000.0], "n_faces": 7, "n_edges": 10, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 32.15, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 46.0, "min": 13.8, "max": 138.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "groove_depth": {"type": "float", "default": 1.87, "min": 0.75, "max": 5.61, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 4.98, "min": 1.99, "max": 14.94, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 32.3, "min": 6.9, "max": 39.1, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007936 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 32.15, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 46.0, \"min\": 13.8, \"max\": 138.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 1.87, \"min\": 0.75, \"max\": 5.61, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 4.98, \"min\": 1.99, \"max\": 14.94, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 32.3, \"min\": 6.9, \"max\": 39.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad001_0533", "family": "revolved", "tier": 1, "seed": 2468007937, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "bcbe0ddb73cb3dfa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 169000.0, "surface_area": 35500.0, "principal_moments": [149000000.0, 149000000.0, 179000000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 51.95, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 61.8, "min": 18.5, "max": 185.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 26.4, "min": 2.0, "max": 36.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 112.5, "min": 62.3, "max": 155.9, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.2, "min": 2.8, "max": 30.9, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.1, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007937 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 51.95, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 61.8, \"min\": 18.5, \"max\": 185.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 26.4, \"min\": 2.0, \"max\": 36.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 112.5, \"min\": 62.3, \"max\": 155.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.2, \"min\": 2.8, \"max\": 30.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.1, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad003_0535", "family": "block", "tier": 1, "seed": 2468007939, "symmetry": "none", "op_count": 2, "ir_hash": "a44671432254b9f4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 216000.0, "surface_area": 27000.0, "principal_moments": [85200000.0, 201000000.0, 226000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 97.27, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 40.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 55.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007939 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 97.27, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 40.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 55.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 24.3\n _ssy = 23.0\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad004_0536", "family": "ribbed", "tier": 1, "seed": 2468007940, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f2b693c627e454f4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 44600.0, "surface_area": 22500.0, "principal_moments": [16800000.0, 20600000.0, 33099999.999999996], "n_faces": 31, "n_edges": 72, "n_vertices": 48}, "params": {"base_w": {"type": "float", "default": 71.17, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 69.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 18.6, "min": 7.4, "max": 37.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.7, "min": 1.0, "max": 11.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007940 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 71.17, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 69.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 18.6, \"min\": 7.4, \"max\": 37.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.7, \"min\": 1.0, \"max\": 11.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad005_0537", "family": "ribbed", "tier": 2, "seed": 2468007941, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "c67f22ab73acd658", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12700.0, "surface_area": 5720.0, "principal_moments": [1540000.0, 2870000.0, 4050000.0], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 45.67, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 35.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 9.0, "min": 3.6, "max": 18.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.5, "min": 1.0, "max": 11.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007941 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 45.67, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 35.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 9.0, \"min\": 3.6, \"max\": 18.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.0, \"max\": 11.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad006_0538", "family": "plate", "tier": 0, "seed": 2468007942, "symmetry": "none", "op_count": 1, "ir_hash": "0f072252e2df3cde", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5980.0, "surface_area": 3670.0, "principal_moments": [317000.0, 1800000.0, 2100000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 24.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007942 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 24.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad008_0540", "family": "plate", "tier": 1, "seed": 2468007944, "symmetry": "none", "op_count": 2, "ir_hash": "fbebe14e17177576", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38100.0, "surface_area": 11100.0, "principal_moments": [6120000.0, 26499999.999999996, 31999999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 91.45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 43.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007944 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 91.45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 43.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad009_0541", "family": "compound", "tier": 1, "seed": 2468007945, "symmetry": "none", "op_count": 2, "ir_hash": "566c53d73a5e07ae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 44400.0, "surface_area": 9000.0, "principal_moments": [7220000.0, 11499999.999999998, 12799999.999999998], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 45.67, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 28.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 34.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 8.7, "min": 3.5, "max": 19.9, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 19.6, "min": 2.6, "max": 34.8, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 4.2, "min": 2.0, "max": 6.3, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007945 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45.67, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 28.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 34.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 8.7, \"min\": 3.5, \"max\": 19.9, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 19.6, \"min\": 2.6, \"max\": 34.8, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 4.2, \"min\": 2.0, \"max\": 6.3, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad00f_0547", "family": "block", "tier": 2, "seed": 2468007951, "symmetry": "none", "op_count": 3, "ir_hash": "45ddbbd973194358", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 209000.0, "surface_area": 31600.0, "principal_moments": [121000000.0, 174000000.0, 189000000.0], "n_faces": 19, "n_edges": 57, "n_vertices": 38}, "params": {"block_w": {"type": "float", "default": 77.81, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 52.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 62.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "pocket_w": {"type": "float", "default": 36.3, "min": 18.1, "max": 62.2, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 29.5, "min": 14.8, "max": 41.7, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 36.7, "min": 14.7, "max": 52.7, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007951 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 77.81, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 52.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 62.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"pocket_w\": {\"type\": 'float', \"default\": 36.3, \"min\": 18.1, \"max\": 62.2, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 29.5, \"min\": 14.8, \"max\": 41.7, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 36.7, \"min\": 14.7, \"max\": 52.7, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 29.2\n _ssy = 25.6\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad010_0548", "family": "bracket", "tier": 1, "seed": 2468007952, "symmetry": "none", "op_count": 1, "ir_hash": "78edd1d7a14e5129", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11400.0, "surface_area": 6740.0, "principal_moments": [1970000.0, 4250000.0, 4530000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 41.61, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 46.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 34.22, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007952 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 41.61, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 46.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 34.22, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad013_0551", "family": "revolved", "tier": 0, "seed": 2468007955, "symmetry": "none", "op_count": 1, "ir_hash": "e13096c1a1507d32", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 98200.0, "surface_area": 18300.0, "principal_moments": [42300000.0, 42300000.0, 52999999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 60, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 52.1, "min": 15.6, "max": 156.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007955 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 52.1, \"min\": 15.6, \"max\": 156.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad014_0552", "family": "revolved", "tier": 1, "seed": 2468007956, "symmetry": "radial", "op_count": 2, "ir_hash": "83809f4cd48de4e9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 814000.0, "surface_area": 96600.0, "principal_moments": [781000000.0, 3240000000.0, 3240000000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 80.0, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 242.9, "min": 72.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.6, "min": 0.1, "max": 1.8, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007956 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 80.0, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 242.9, \"min\": 72.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.6, \"min\": 0.1, \"max\": 1.8, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad016_0554", "family": "bracket", "tier": 1, "seed": 2468007958, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "6c88f9785e1fc4f9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12500.0, "surface_area": 7560.0, "principal_moments": [2740000.0, 8990000.0, 10400000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 67.65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 62.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007958 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 67.65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 62.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad019_0557", "family": "ribbed", "tier": 1, "seed": 2468007961, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "318093a7b4274625", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61800.0, "surface_area": 23400.0, "principal_moments": [19600000.0, 37800000.0, 52499999.99999999], "n_faces": 54, "n_edges": 132, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 44.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 13.8, "min": 5.5, "max": 27.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.6, "min": 1.0, "max": 14.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007961 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 44.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 13.8, \"min\": 5.5, \"max\": 27.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 1.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad01b_0559", "family": "flanged", "tier": 1, "seed": 2468007963, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "fa13d5ee733c3c7a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 49900.0, "surface_area": 14900.0, "principal_moments": [15399999.999999998, 15399999.999999998, 24699999.999999996], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 45, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 26.0, "min": 7.8, "max": 65.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 14.9, "min": 2.0, "max": 31.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 74.6, "min": 58.5, "max": 135.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.2, "min": 1.9, "max": 10.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 22.4, "min": 14.9, "max": 33.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007963 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 26.0, \"min\": 7.8, \"max\": 65.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 14.9, \"min\": 2.0, \"max\": 31.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 74.6, \"min\": 58.5, \"max\": 135.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.2, \"min\": 1.9, \"max\": 10.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 22.4, \"min\": 14.9, \"max\": 33.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad01d_0561", "family": "plate", "tier": 1, "seed": 2468007965, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "c49f3692ef645f6d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 101000.0, "surface_area": 21900.0, "principal_moments": [44000000.0, 120000000.0, 161000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 118.66, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 71.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007965 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 118.66, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 71.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad01e_0562", "family": "threaded", "tier": 2, "seed": 2468007966, "symmetry": "none", "op_count": 1, "ir_hash": "de84fa10954203e2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3910.0, "surface_area": 2690.0, "principal_moments": [57700.0, 674000.0, 674000.0], "n_faces": 160, "n_edges": 410, "n_vertices": 252}, "params": {"thread_size": {"type": "enum", "default": "12x3", "choices": ["8x1.5", "10x2", "12x3", "14x3", "16x4", "18x4", "20x4", "24x5", "28x5", "30x6", "36x6", "40x7"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 45.1, "min": 18.0, "max": 90.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007966 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '12x3', \"choices\": ['8x1.5', '10x2', '12x3', '14x3', '16x4', '18x4', '20x4', '24x5', '28x5', '30x6', '36x6', '40x7'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 45.1, \"min\": 18.0, \"max\": 90.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.MetricTrapezoidalThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad01f_0563", "family": "revolved", "tier": 1, "seed": 2468007967, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "6626969d51611e2f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 49800.0, "surface_area": 19500.0, "principal_moments": [26699999.999999996, 26699999.999999996, 52099999.99999999], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 46.1, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 17.5, "min": 5.2, "max": 52.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 100.0, "min": 55.3, "max": 138.3, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.9, "min": 1.5, "max": 8.8, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007967 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 46.1, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 17.5, \"min\": 5.2, \"max\": 52.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 100.0, \"min\": 55.3, \"max\": 138.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.9, \"min\": 1.5, \"max\": 8.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad021_0565", "family": "revolved", "tier": 2, "seed": 2468007969, "symmetry": "none", "op_count": 1, "ir_hash": "541ba7fd0603ba68", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 464000.0, "surface_area": 65900.0, "principal_moments": [471000000.0, 1110000000.0, 1110000000.0], "n_faces": 8, "n_edges": 12, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 78.68, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 147.4, "min": 44.2, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 45.1, "min": 2.0, "max": 55.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 5.58, "min": 2.23, "max": 16.74, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 13.49, "min": 5.4, "max": 40.47, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 71.3, "min": 22.1, "max": 125.3, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007969 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 78.68, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 147.4, \"min\": 44.2, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 45.1, \"min\": 2.0, \"max\": 55.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 5.58, \"min\": 2.23, \"max\": 16.74, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 13.49, \"min\": 5.4, \"max\": 40.47, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 71.3, \"min\": 22.1, \"max\": 125.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad022_0566", "family": "flanged", "tier": 1, "seed": 2468007970, "symmetry": "none", "op_count": 2, "ir_hash": "11c413e80e724726", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 468000.0, "surface_area": 77400.0, "principal_moments": [846000000.0, 865000000.0, 865000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 80, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 96.1, "min": 28.8, "max": 240.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 42.4, "min": 2.0, "max": 56.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 161.2, "min": 104.0, "max": 240.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.9, "min": 2.4, "max": 38.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 48.4, "min": 32.2, "max": 72.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007970 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 96.1, \"min\": 28.8, \"max\": 240.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 42.4, \"min\": 2.0, \"max\": 56.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 161.2, \"min\": 104.0, \"max\": 240.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.9, \"min\": 2.4, \"max\": 38.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 48.4, \"min\": 32.2, \"max\": 72.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad023_0567", "family": "block", "tier": 1, "seed": 2468007971, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "a29c369faf00c2fe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61000.0, "surface_area": 13100.0, "principal_moments": [16099999.999999998, 17200000.0, 28099999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 54.24, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 22.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 51.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007971 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 54.24, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 22.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 51.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad025_0569", "family": "compound", "tier": 1, "seed": 2468007973, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "090c30259d216669", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11400.0, "surface_area": 3550.0, "principal_moments": [949000.0, 1630000.0, 1630000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 15.97, "min": 9.6, "max": 25.6, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 12.7, "min": 5.1, "max": 31.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 12.0, "min": 6.0, "max": 22.1, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 26.7, "min": 8.0, "max": 66.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007973 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 15.97, \"min\": 9.6, \"max\": 25.6, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 12.7, \"min\": 5.1, \"max\": 31.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 6.0, \"max\": 22.1, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 26.7, \"min\": 8.0, \"max\": 66.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad026_0570", "family": "plate", "tier": 0, "seed": 2468007974, "symmetry": "none", "op_count": 1, "ir_hash": "0e06005e8baea3f7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3490.0, "surface_area": 1480.0, "principal_moments": [77100.0, 239000.0, 245000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 26.44, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 11.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007974 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 26.44, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 11.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad028_0572", "family": "compound", "tier": 2, "seed": 2468007976, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "10544b7f90c43a22", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8070.0, "surface_area": 3850.0, "principal_moments": [816000.0, 865000.0, 896000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"base_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 17.95, "min": 10.8, "max": 28.7, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 8.4, "min": 3.4, "max": 21.0, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 12.9, "min": 6.5, "max": 23.2, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 21.3, "min": 6.4, "max": 53.2, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 7.0, "min": 2.0, "max": 9.3, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007976 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 17.95, \"min\": 10.8, \"max\": 28.7, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.4, \"max\": 21.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 12.9, \"min\": 6.5, \"max\": 23.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 21.3, \"min\": 6.4, \"max\": 53.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 7.0, \"min\": 2.0, \"max\": 9.3, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_r\"], p[\"base_r\"]) * 0.0724383625109444)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad029_0573", "family": "flanged", "tier": 1, "seed": 2468007977, "symmetry": "none", "op_count": 2, "ir_hash": "51119b11c8568e05", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 182000.0, "surface_area": 32300.0, "principal_moments": [128000000.0, 147000000.0, 147000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 53.48, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 67.8, "min": 20.3, "max": 169.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.6, "min": 2.0, "max": 37.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 100.1, "min": 69.5, "max": 160.4, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.3, "min": 2.5, "max": 27.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 30.0, "min": 20.0, "max": 45.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007977 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 53.48, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 67.8, \"min\": 20.3, \"max\": 169.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.6, \"min\": 2.0, \"max\": 37.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 100.1, \"min\": 69.5, \"max\": 160.4, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.3, \"min\": 2.5, \"max\": 27.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 30.0, \"min\": 20.0, \"max\": 45.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad02b_0575", "family": "compound", "tier": 1, "seed": 2468007979, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f102db04fe97a081", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27200.0, "surface_area": 7700.0, "principal_moments": [2990000.0, 7630000.0, 7630000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 30.16, "min": 15.1, "max": 54.3, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 34.1, "min": 13.6, "max": 68.2, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 17.8, "min": 8.9, "max": 27.1, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 26.4, "min": 7.9, "max": 66.0, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 8.9, "min": 2.0, "max": 12.8, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007979 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 30.16, \"min\": 15.1, \"max\": 54.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 34.1, \"min\": 13.6, \"max\": 68.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 17.8, \"min\": 8.9, \"max\": 27.1, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 26.4, \"min\": 7.9, \"max\": 66.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 8.9, \"min\": 2.0, \"max\": 12.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad02c_0576", "family": "revolved", "tier": 1, "seed": 2468007980, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "2ab610530d834921", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 609000.0, "surface_area": 69900.0, "principal_moments": [378000000.0, 2700000000.0, 2700000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 65, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 222.5, "min": 66.8, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 27.2, "min": 2.0, "max": 45.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007980 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 222.5, \"min\": 66.8, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 27.2, \"min\": 2.0, \"max\": 45.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad02d_0577", "family": "revolved", "tier": 1, "seed": 2468007981, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3a2de746a4453e5a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45600.0, "surface_area": 12300.0, "principal_moments": [9040000.0, 16199999.999999998, 16199999.999999998], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 36.38, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 65.8, "min": 19.7, "max": 197.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.6, "min": 0.1, "max": 1.8, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007981 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 36.38, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 65.8, \"min\": 19.7, \"max\": 197.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.6, \"min\": 0.1, \"max\": 1.8, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad031_0581", "family": "bracket", "tier": 1, "seed": 2468007985, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "29396e8da39a0521", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37900.0, "surface_area": 17500.0, "principal_moments": [18000000.0, 52399999.99999999, 57499999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007985 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad033_0583", "family": "bracket", "tier": 1, "seed": 2468007987, "symmetry": "none", "op_count": 1, "ir_hash": "48019120b84f6ad4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14100.0, "surface_area": 11000.0, "principal_moments": [10000000.0, 14999999.999999998, 23999999.999999996], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 75, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 79.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20.81, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 8.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007987 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 79.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20.81, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 8.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad034_0584", "family": "bracket", "tier": 1, "seed": 2468007988, "symmetry": "none", "op_count": 1, "ir_hash": "438724f406ab2e3a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13100.0, "surface_area": 4950.0, "principal_moments": [1230000.0, 3350000.0, 3510000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 29.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007988 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 29.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad037_0587", "family": "bracket", "tier": 2, "seed": 2468007991, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "59af3fbeebad55ad", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5720.0, "surface_area": 4570.0, "principal_moments": [810000.0, 2390000.0, 2990000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 35.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 15.4, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 6.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.3, "min": 1.5, "max": 7.7, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007991 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 35.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 15.4, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 6.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.3, \"min\": 1.5, \"max\": 7.7, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad038_0588", "family": "bracket", "tier": 1, "seed": 2468007992, "symmetry": "none", "op_count": 1, "ir_hash": "965a46bbca807a29", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12200.0, "surface_area": 5400.0, "principal_moments": [1550000.0, 3070000.0, 3370000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 40, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 34.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007992 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 40, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 34.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad03c_0592", "family": "revolved", "tier": 1, "seed": 2468007996, "symmetry": "none", "op_count": 1, "ir_hash": "aeea03710460496b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 457.0, "surface_area": 598.0, "principal_moments": [4040.0, 10600.0, 10600.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 7.4, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 15.0, "min": 4.5, "max": 45.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 4.0, "min": 2.0, "max": 5.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007996 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 7.4, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 15.0, \"min\": 4.5, \"max\": 45.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 5.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad03d_0593", "family": "enclosure", "tier": 1, "seed": 2468007997, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "b96de09eaccc49ba", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 85000.0, "surface_area": 32100.0, "principal_moments": [69000000.0, 76500000.0, 122000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 80, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 74.4, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 37.8, "min": 15.1, "max": 75.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007997 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 80, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 74.4, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 37.8, \"min\": 15.1, \"max\": 75.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad03e_0594", "family": "compound", "tier": 1, "seed": 2468007998, "symmetry": "none", "op_count": 3, "ir_hash": "846c2812bcb05ebe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 349000.0, "surface_area": 34600.0, "principal_moments": [234000000.0, 323000000.0, 366000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 48.7, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 89.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 61.1, "min": 24.4, "max": 97.8, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 80.2, "min": 32.1, "max": 128.3, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.4, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468007998 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 48.7, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 89.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 61.1, \"min\": 24.4, \"max\": 97.8, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 80.2, \"min\": 32.1, \"max\": 128.3, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.4, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.04498408429387093)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad042_0598", "family": "block", "tier": 1, "seed": 2468008002, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "c39a8ff1c28b308b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 151000.0, "surface_area": 24000.0, "principal_moments": [48099999.99999999, 136000000.0, 164000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 27.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008002 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 27.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 13.8\n _ssy = 13.0\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad044_0600", "family": "revolved", "tier": 0, "seed": 2468008004, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "cf1a234393bfc59d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 450.0, "surface_area": 499.0, "principal_moments": [5890.0, 5890.0, 9990.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 12.17, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 5.8, "min": 1.7, "max": 17.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008004 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 12.17, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 5.8, \"min\": 1.7, \"max\": 17.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad045_0601", "family": "plate", "tier": 1, "seed": 2468008005, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "5fa0cbfa2be8cdcc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20200.0, "surface_area": 6110.0, "principal_moments": [1870000.0, 5390000.0, 6770000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 55.71, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 31.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 7.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008005 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 55.71, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 31.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 7.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad046_0602", "family": "plate", "tier": 1, "seed": 2468008006, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "6681d895ab6ad352", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32500.0, "surface_area": 13600.0, "principal_moments": [7300000.0, 31899999.999999996, 39000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 110, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 52.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 11.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008006 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 110, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 52.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 11.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad048_0604", "family": "plate", "tier": 1, "seed": 2468008008, "symmetry": "radial", "op_count": 2, "ir_hash": "e3e8a35b356865eb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3280.0, "surface_area": 2110.0, "principal_moments": [73300.0, 466000.0, 519000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 40.6, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 15.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 12.2, "min": 8.1, "max": 18.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008008 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40.6, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 15.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 12.2, \"min\": 8.1, \"max\": 18.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad049_0605", "family": "enclosure", "tier": 1, "seed": 2468008009, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f9cdad71360aae3a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 92100.0, "surface_area": 40500.0, "principal_moments": [63499999.99999999, 122000000.0, 131000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 95, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 45.7, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 62.8, "min": 25.1, "max": 125.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.7, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008009 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 95, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 45.7, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 62.8, \"min\": 25.1, \"max\": 125.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.7, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad04a_0606", "family": "bracket", "tier": 1, "seed": 2468008010, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "88f47672f81929f6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21300.0, "surface_area": 7310.0, "principal_moments": [3700000.0, 6300000.0, 7400000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 44.13, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 37.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 36.59, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008010 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 44.13, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 37.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 36.59, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad04d_0609", "family": "revolved", "tier": 0, "seed": 2468008013, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "550fdcdcebbbd9cb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1660.0, "surface_area": 1300.0, "principal_moments": [43200.0, 54700.0, 54700.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 13.17, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 18.3, "min": 5.5, "max": 54.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008013 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 13.17, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 18.3, \"min\": 5.5, \"max\": 54.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad04e_0610", "family": "compound", "tier": 1, "seed": 2468008014, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "dcdf41d70451fe93", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42200.0, "surface_area": 8400.0, "principal_moments": [6980000.0, 9660000.0, 11200000.0], "n_faces": 21, "n_edges": 51, "n_vertices": 34}, "params": {"block_w": {"type": "float", "default": 43.64, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 27.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 34.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 4.0, "min": 2.0, "max": 6.3, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 7.5, "min": 1.6, "max": 19.4, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.7, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008014 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 43.64, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 27.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 34.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 6.3, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 7.5, \"min\": 1.6, \"max\": 19.4, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.7, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad04f_0611", "family": "revolved", "tier": 1, "seed": 2468008015, "symmetry": "none", "op_count": 2, "ir_hash": "69931bd2c4d35885", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 622000.0, "surface_area": 73900.0, "principal_moments": [781000000.0, 1370000000.0, 1370000000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 60.6, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 175.0, "min": 52.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 114.2, "min": 72.7, "max": 181.8, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 38.8, "min": 11.6, "max": 87.5, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.7, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008015 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60.6, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 175.0, \"min\": 52.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 114.2, \"min\": 72.7, \"max\": 181.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 38.8, \"min\": 11.6, \"max\": 87.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.7, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad052_0614", "family": "bracket", "tier": 1, "seed": 2468008018, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "5a0c533280abafc4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7560.0, "surface_area": 5960.0, "principal_moments": [1490000.0, 1950000.0, 2640000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 37.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008018 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 37.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad053_0615", "family": "flanged", "tier": 1, "seed": 2468008019, "symmetry": "none", "op_count": 2, "ir_hash": "bf06255ec4763ea6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 307000.0, "surface_area": 62200.0, "principal_moments": [429000000.0, 429000000.0, 488000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 68.45, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 76.5, "min": 22.9, "max": 191.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 33.5, "min": 2.0, "max": 47.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 154.1, "min": 89.0, "max": 205.4, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.3, "min": 1.9, "max": 30.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 46.2, "min": 30.8, "max": 69.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008019 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 68.45, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 76.5, \"min\": 22.9, \"max\": 191.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 33.5, \"min\": 2.0, \"max\": 47.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 154.1, \"min\": 89.0, \"max\": 205.4, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.3, \"min\": 1.9, \"max\": 30.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 46.2, \"min\": 30.8, \"max\": 69.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad055_0617", "family": "bracket", "tier": 1, "seed": 2468008021, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "a2efb40b10f6ec8a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 68200.0, "surface_area": 20500.0, "principal_moments": [34000000.0, 75000000.0, 81700000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 66.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 59.71, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008021 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 66.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 59.71, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z or 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad059_0621", "family": "bracket", "tier": 2, "seed": 2468008025, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "6ed0ee072f568761", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6400.0, "surface_area": 4990.0, "principal_moments": [516000.0, 4110000.0, 4400000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 48.69, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 38.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 15.36, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 44.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 6.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 4.2, "min": 1.5, "max": 7.7, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008025 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 48.69, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 38.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 15.36, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 44.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 6.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.2, \"min\": 1.5, \"max\": 7.7, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad05a_0622", "family": "block", "tier": 1, "seed": 2468008026, "symmetry": "none", "op_count": 2, "ir_hash": "6fec8a9ae255957c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6480.0, "surface_area": 3160.0, "principal_moments": [263000.0, 540000.0, 606000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 17.84, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 13.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 28.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.5, "min": 2.0, "max": 3.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008026 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 17.84, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 13.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 28.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.5, \"min\": 2.0, \"max\": 3.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad05b_0623", "family": "bracket", "tier": 1, "seed": 2468008027, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8794055ff046b7a2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34900.0, "surface_area": 11200.0, "principal_moments": [10200000.0, 14799999.999999998, 19300000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 53.41, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 42.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008027 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 53.41, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 42.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad05e_0626", "family": "revolved", "tier": 1, "seed": 2468008030, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "df7bc394d3c55d7b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 770.0, "surface_area": 752.0, "principal_moments": [13500.0, 14000.0, 14000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 10.8, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 12.6, "min": 3.8, "max": 37.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008030 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 10.8, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 12.6, \"min\": 3.8, \"max\": 37.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad05f_0627", "family": "ribbed", "tier": 1, "seed": 2468008031, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "63906a5d275f4c1c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34300.0, "surface_area": 18000.0, "principal_moments": [9240000.0, 11999999.999999998, 19300000.0], "n_faces": 36, "n_edges": 84, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 64.17, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 58.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 14.4, "min": 5.8, "max": 28.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.2, "min": 1.0, "max": 13.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008031 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 64.17, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 58.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 14.4, \"min\": 5.8, \"max\": 28.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.2, \"min\": 1.0, \"max\": 13.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad060_0628", "family": "ribbed", "tier": 2, "seed": 2468008032, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "f8f9f4f261914b35", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 52900.0, "surface_area": 23100.0, "principal_moments": [20500000.0, 36000000.0, 50599999.99999999], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 56.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 19.6, "min": 7.8, "max": 39.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.4, "min": 1.0, "max": 13.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008032 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 56.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 19.6, \"min\": 7.8, \"max\": 39.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.4, \"min\": 1.0, \"max\": 13.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad061_0629", "family": "revolved", "tier": 1, "seed": 2468008033, "symmetry": "none", "op_count": 1, "ir_hash": "0e1ddba55f88423a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7500.0, "surface_area": 4800.0, "principal_moments": [738000.0, 738000.0, 1270000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 26.99, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 14.6, "min": 4.4, "max": 43.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 45.0, "min": 32.4, "max": 81.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 1.9, "min": 0.6, "max": 7.3, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008033 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 26.99, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 14.6, \"min\": 4.4, \"max\": 43.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 45.0, \"min\": 32.4, \"max\": 81.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 1.9, \"min\": 0.6, \"max\": 7.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad062_0630", "family": "block", "tier": 1, "seed": 2468008034, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "302dd497490bfff0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 518000.0, "surface_area": 45100.0, "principal_moments": [499000000.0, 575000000.0, 788000000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 90.7, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 57.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008034 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 90.7, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 57.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 34.0\n _ssy = 36.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad063_0631", "family": "bracket", "tier": 2, "seed": 2468008035, "symmetry": "none", "op_count": 1, "ir_hash": "0b356946ac8f8f79", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8530.0, "surface_area": 6360.0, "principal_moments": [1320000.0, 2470000.0, 2790000.0], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 38.76, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 40.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.3, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008035 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 38.76, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 40.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.3, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad064_0632", "family": "block", "tier": 2, "seed": 2468008036, "symmetry": "none", "op_count": 3, "ir_hash": "1b031005e2b17361", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 83100.0, "surface_area": 19700.0, "principal_moments": [22100000.0, 37500000.0, 44100000.0], "n_faces": 23, "n_edges": 62, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 44.44, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 32.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 63.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "boss_d": {"type": "float", "default": 20.1, "min": 10.1, "max": 40.2, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 10.1, "min": 4.0, "max": 25.2, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 14.1, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008036 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 44.44, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 32.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 63.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"boss_d\": {\"type\": 'float', \"default\": 20.1, \"min\": 10.1, \"max\": 40.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 10.1, \"min\": 4.0, \"max\": 25.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 14.1, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 8.3\n _ssy = 8.8\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad065_0633", "family": "bracket", "tier": 2, "seed": 2468008037, "symmetry": "none", "op_count": 1, "ir_hash": "af17da78e7dd3b4e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9560.0, "surface_area": 5770.0, "principal_moments": [1570000.0, 1820000.0, 1850000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 27.21, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 28.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 31.61, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.9, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008037 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 27.21, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 28.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 31.61, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad066_0634", "family": "profiled", "tier": 0, "seed": 2468008038, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "56c50b9cd3a6303a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11900.0, "surface_area": 7820.0, "principal_moments": [449000.0, 10600000.0, 10600000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 15, "min": 7.5, "max": 30.0, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 101.9, "min": 30.6, "max": 305.7, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 8.7, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008038 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 15, \"min\": 7.5, \"max\": 30.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 101.9, \"min\": 30.6, \"max\": 305.7, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 8.7, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad067_0635", "family": "threaded", "tier": 1, "seed": 2468008039, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "d6119779fae3832d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2090.0, "surface_area": 1590.0, "principal_moments": [22000.0, 191000.0, 191000.0], "n_faces": 220, "n_edges": 562, "n_vertices": 344}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 32.3, "min": 12.9, "max": 64.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008039 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 32.3, \"min\": 12.9, \"max\": 64.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad069_0637", "family": "flanged", "tier": 1, "seed": 2468008041, "symmetry": "radial", "op_count": 2, "ir_hash": "78f9998e82b6c297", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18000.0, "surface_area": 7750.0, "principal_moments": [3240000.0, 3240000.0, 4110000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 26.54, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 26.4, "min": 7.9, "max": 66.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 12.5, "min": 2.0, "max": 18.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 52.3, "min": 34.5, "max": 79.6, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.3, "min": 1.3, "max": 10.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 15.7, "min": 10.5, "max": 23.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008041 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 26.54, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 26.4, \"min\": 7.9, \"max\": 66.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 12.5, \"min\": 2.0, \"max\": 18.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 52.3, \"min\": 34.5, \"max\": 79.6, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.3, \"min\": 1.3, \"max\": 10.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 15.7, \"min\": 10.5, \"max\": 23.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad06b_0639", "family": "enclosure", "tier": 2, "seed": 2468008043, "symmetry": "none", "op_count": 3, "ir_hash": "5e9e3b64448498e1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26700.0, "surface_area": 16000.0, "principal_moments": [6700000.0, 15399999.999999998, 16099999.999999998], "n_faces": 19, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 65, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 32.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 33.9, "min": 13.6, "max": 67.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 7.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008043 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 65, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 32.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 33.9, \"min\": 13.6, \"max\": 67.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 7.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad06c_0640", "family": "plate", "tier": 2, "seed": 2468008044, "symmetry": "none", "op_count": 3, "ir_hash": "5aace9510658d6dc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 50100.0, "surface_area": 20100.0, "principal_moments": [27999999.999999996, 45400000.0, 73100000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"plate_w": {"type": "float", "default": 105, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 82.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 9.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008044 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 105, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 82.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 9.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(28.0, 33.0, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.10324500101930806)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad06d_0641", "family": "compound", "tier": 1, "seed": 2468008045, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "5b555de32a6bcae6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 79700.0, "surface_area": 13200.0, "principal_moments": [24699999.999999996, 25099999.999999996, 28099999.999999996], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 40.3, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 40.9, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 46.9, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 8.6, "min": 4.3, "max": 14.3, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 23.5, "min": 4.2, "max": 55.7, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 5.9, "min": 2.0, "max": 10.0, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008045 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40.3, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 40.9, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 46.9, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 8.6, \"min\": 4.3, \"max\": 14.3, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 23.5, \"min\": 4.2, \"max\": 55.7, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 5.9, \"min\": 2.0, \"max\": 10.0, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"spig_sides\"], p[\"spig_r\"] * 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad06e_0642", "family": "bracket", "tier": 1, "seed": 2468008046, "symmetry": "none", "op_count": 1, "ir_hash": "f912f90c46bdcdbd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6030.0, "surface_area": 3130.0, "principal_moments": [419000.0, 1310000.0, 1500000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 39.88, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 34.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 15.01, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 6.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008046 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 39.88, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 34.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 15.01, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 6.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad070_0644", "family": "plate", "tier": 1, "seed": 2468008048, "symmetry": "none", "op_count": 2, "ir_hash": "ffaa63709907a564", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 54100.0, "surface_area": 13500.0, "principal_moments": [7800000.0, 59799999.99999999, 66299999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 115, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 40.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 9.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008048 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 115, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 40.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 9.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad071_0645", "family": "revolved", "tier": 2, "seed": 2468008049, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "cf147f7bd71687af", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 64000.0, "surface_area": 18000.0, "principal_moments": [16599999.999999998, 45999999.99999999, 45999999.99999999], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 26.32, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 101.4, "min": 30.4, "max": 304.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 55.4, "min": 31.6, "max": 79.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 14.6, "min": 4.4, "max": 50.7, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008049 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 26.32, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 101.4, \"min\": 30.4, \"max\": 304.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 55.4, \"min\": 31.6, \"max\": 79.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 14.6, \"min\": 4.4, \"max\": 50.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad073_0647", "family": "flanged", "tier": 1, "seed": 2468008051, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "02dad933f1a58c72", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 649000.0, "surface_area": 87100.0, "principal_moments": [1350000000.0, 1350000000.0, 1420000000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"outer_d": {"type": "float", "default": 79.48, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 99.5, "min": 29.8, "max": 248.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 28.6, "min": 2.0, "max": 55.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 176.8, "min": 103.3, "max": 238.4, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 11.4, "min": 3.4, "max": 39.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 53.0, "min": 35.4, "max": 79.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008051 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 79.48, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 99.5, \"min\": 29.8, \"max\": 248.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 28.6, \"min\": 2.0, \"max\": 55.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 176.8, \"min\": 103.3, \"max\": 238.4, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 11.4, \"min\": 3.4, \"max\": 39.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 53.0, \"min\": 35.4, \"max\": 79.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad074_0648", "family": "gear", "tier": 0, "seed": 2468008052, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ffaababca4019257", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6200.0, "surface_area": 3320.0, "principal_moments": [498000.0, 498000.0, 952000.0], "n_faces": 212, "n_edges": 630, "n_vertices": 420}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 35, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.5, "min": 2.6, "max": 16.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008052 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 35, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.5, \"min\": 2.6, \"max\": 16.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad075_0649", "family": "compound", "tier": 2, "seed": 2468008053, "symmetry": "none", "op_count": 3, "ir_hash": "15e449129db5434e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 81600.0, "surface_area": 29500.0, "principal_moments": [74900000.0, 110000000.0, 111000000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_w": {"type": "float", "default": 93.59, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 92.0, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 6.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 22.8, "min": 9.1, "max": 46.0, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 95.1, "min": 28.5, "max": 285.3, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 10.1, "min": 2.0, "max": 16.4, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008053 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 93.59, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 92.0, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 22.8, \"min\": 9.1, \"max\": 46.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 95.1, \"min\": 28.5, \"max\": 285.3, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 10.1, \"min\": 2.0, \"max\": 16.4, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad076_0650", "family": "threaded", "tier": 1, "seed": 2468008054, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "0e497627843b366d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2590.0, "surface_area": 1950.0, "principal_moments": [27300.0, 356000.0, 356000.0], "n_faces": 274, "n_edges": 704, "n_vertices": 432}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 40.0, "min": 16.0, "max": 80.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008054 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 40.0, \"min\": 16.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad077_0651", "family": "plate", "tier": 2, "seed": 2468008055, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "5c034685c923957a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6980.0, "surface_area": 3180.0, "principal_moments": [328000.0, 721000.0, 932000.0], "n_faces": 26, "n_edges": 72, "n_vertices": 48}, "params": {"plate_w": {"type": "float", "default": 35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 22.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.0, "step": 0.5, "group": "Holes", "label": "Slot width (mm)"}, "hole_slot_len": {"type": "float", "default": 6.7, "min": 4.8, "max": 6.7, "step": 0.5, "group": "Holes", "label": "Slot length (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008055 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 22.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.0, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot width (mm)'},\n \"hole_slot_len\": {\"type\": 'float', \"default\": 6.7, \"min\": 4.8, \"max\": 6.7, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot length (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.11517158713857695)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad078_0652", "family": "plate", "tier": 0, "seed": 2468008056, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "0defa12f69f24738", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3340.0, "surface_area": 2200.0, "principal_moments": [82100.0, 700000.0, 773000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 16.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008056 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 16.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad079_0653", "family": "bracket", "tier": 2, "seed": 2468008057, "symmetry": "none", "op_count": 1, "ir_hash": "f2ce28ebd859af1c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31600.0, "surface_area": 15000.0, "principal_moments": [21000000.0, 24699999.999999996, 41100000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 64.33, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 75.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.4, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008057 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 64.33, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 75.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.4, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad07a_0654", "family": "threaded", "tier": 0, "seed": 2468008058, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "5158c323b90f1d1e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1120.0, "surface_area": 1060.0, "principal_moments": [7470.0, 71900.0, 71900.0], "n_faces": 225, "n_edges": 577, "n_vertices": 354}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 27.2, "min": 10.9, "max": 54.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008058 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 27.2, \"min\": 10.9, \"max\": 54.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad07b_0655", "family": "gear", "tier": 0, "seed": 2468008059, "symmetry": "none", "op_count": 1, "ir_hash": "3ee58183a5ca5851", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 77400.0, "surface_area": 17800.0, "principal_moments": [33499999.999999996, 33499999.999999996, 63899999.99999999], "n_faces": 164, "n_edges": 486, "n_vertices": 324}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 27, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 15.2, "min": 6.1, "max": 38.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008059 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 27, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 15.2, \"min\": 6.1, \"max\": 38.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad07c_0656", "family": "plate", "tier": 1, "seed": 2468008060, "symmetry": "none", "op_count": 2, "ir_hash": "a56ba0fc4feb96b9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31600.0, "surface_area": 11000.0, "principal_moments": [4430000.0, 19200000.0, 23099999.999999996], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"plate_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 39.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008060 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 39.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(22.7, 10.6, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad07d_0657", "family": "plate", "tier": 0, "seed": 2468008061, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d3e717686bef0ce5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4300.0, "surface_area": 2150.0, "principal_moments": [113000.0, 674000.0, 762000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 42.95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 16.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008061 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 42.95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 16.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad07f_0659", "family": "revolved", "tier": 2, "seed": 2468008063, "symmetry": "none", "op_count": 2, "ir_hash": "f71bc828110054a9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4290.0, "surface_area": 2310.0, "principal_moments": [212000.0, 283000.0, 283000.0], "n_faces": 12, "n_edges": 20, "n_vertices": 12}, "params": {"outer_d": {"type": "float", "default": 18.07, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 22.2, "min": 6.7, "max": 66.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 8.6, "min": 2.0, "max": 12.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 1.05, "min": 0.42, "max": 3.15, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 1.68, "min": 0.67, "max": 5.04, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 7.0, "min": 3.3, "max": 18.9, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.5, "min": 0.1, "max": 1.5, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008063 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 18.07, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 22.2, \"min\": 6.7, \"max\": 66.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 8.6, \"min\": 2.0, \"max\": 12.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 1.05, \"min\": 0.42, \"max\": 3.15, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 1.68, \"min\": 0.67, \"max\": 5.04, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 7.0, \"min\": 3.3, \"max\": 18.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.5, \"min\": 0.1, \"max\": 1.5, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad082_0662", "family": "compound", "tier": 1, "seed": 2468008066, "symmetry": "none", "op_count": 2, "ir_hash": "7335f4e11e733243", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5450.0, "surface_area": 2590.0, "principal_moments": [231000.0, 427000.0, 427000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 18.28, "min": 9.1, "max": 32.9, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 20.6, "min": 8.2, "max": 41.2, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 9.0, "min": 4.5, "max": 16.5, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 12.7, "min": 3.8, "max": 31.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 5.4, "min": 2.0, "max": 6.5, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008066 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 18.28, \"min\": 9.1, \"max\": 32.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 20.6, \"min\": 8.2, \"max\": 41.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 9.0, \"min\": 4.5, \"max\": 16.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 12.7, \"min\": 3.8, \"max\": 31.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 5.4, \"min\": 2.0, \"max\": 6.5, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad083_0663", "family": "revolved", "tier": 1, "seed": 2468008067, "symmetry": "radial", "op_count": 2, "ir_hash": "78205ff2c99a4b5d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1080.0, "surface_area": 814.0, "principal_moments": [20500.0, 26300.0, 26300.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 11.31, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 13.6, "min": 4.1, "max": 40.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 4.9, "min": 2.0, "max": 7.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.1, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008067 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 11.31, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 13.6, \"min\": 4.1, \"max\": 40.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.0, \"max\": 7.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.1, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad08b_0671", "family": "block", "tier": 2, "seed": 2468008075, "symmetry": "none", "op_count": 3, "ir_hash": "a5b024d9b58e915f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20100.0, "surface_area": 5980.0, "principal_moments": [2340000.0, 2470000.0, 3660000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 19.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 29.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 15.9, "min": 8.0, "max": 31.8, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 6.6, "min": 2.6, "max": 16.5, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008075 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 19.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 29.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 15.9, \"min\": 8.0, \"max\": 31.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 6.6, \"min\": 2.6, \"max\": 16.5, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad08c_0672", "family": "compound", "tier": 1, "seed": 2468008076, "symmetry": "none", "op_count": 2, "ir_hash": "e5431fd8a24c82f7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 285000.0, "surface_area": 29000.0, "principal_moments": [191000000.0, 202000000.0, 249000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 55.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 74.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 7.2, "min": 3.6, "max": 19.3, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 19.5, "min": 3.7, "max": 49.9, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 7.1, "min": 2.0, "max": 9.0, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008076 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 55.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 74.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 7.2, \"min\": 3.6, \"max\": 19.3, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 19.5, \"min\": 3.7, \"max\": 49.9, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 7.1, \"min\": 2.0, \"max\": 9.0, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .rect(p[\"tab_a\"], p[\"tab_b\"]).extrude(p[\"tab_t\"])\n )\n result = (\n result.faces('>Y').workplane()\n .rect(p[\"tab_a\"] * 0.6, p[\"tab_b\"] * 0.6, forConstruction=True)\n .vertices().hole(p[\"tab_hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad08e_0674", "family": "ribbed", "tier": 1, "seed": 2468008078, "symmetry": "none", "op_count": 2, "ir_hash": "94920b2c7ec52563", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37100.0, "surface_area": 16800.0, "principal_moments": [11899999.999999998, 17100000.0, 27999999.999999996], "n_faces": 36, "n_edges": 84, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 74.71, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 61.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 8.1, "min": 3.2, "max": 16.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.9, "min": 1.0, "max": 12.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008078 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 74.71, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 61.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 8.1, \"min\": 3.2, \"max\": 16.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.9, \"min\": 1.0, \"max\": 12.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad08f_0675", "family": "profiled", "tier": 0, "seed": 2468008079, "symmetry": "none", "op_count": 1, "ir_hash": "59b8bb52fef622a6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10400.0, "surface_area": 5760.0, "principal_moments": [316000.0, 6370000.0, 6370000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 14.13, "min": 7.1, "max": 28.3, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 84.7, "min": 25.4, "max": 254.1, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 6.6, "min": 2.0, "max": 11.3, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008079 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 14.13, \"min\": 7.1, \"max\": 28.3, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 84.7, \"min\": 25.4, \"max\": 254.1, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 6.6, \"min\": 2.0, \"max\": 11.3, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad092_0678", "family": "revolved", "tier": 2, "seed": 2468008082, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "5979399b20a2b6d5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12500.0, "surface_area": 5380.0, "principal_moments": [970000.0, 2650000.0, 2650000.0], "n_faces": 12, "n_edges": 20, "n_vertices": 12}, "params": {"outer_d": {"type": "float", "default": 22.17, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 45.5, "min": 13.7, "max": 136.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 11.6, "min": 2.0, "max": 15.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 0.84, "min": 0.34, "max": 2.52, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 3.44, "min": 1.38, "max": 10.32, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 24.5, "min": 6.8, "max": 38.7, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008082 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 22.17, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 45.5, \"min\": 13.7, \"max\": 136.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 11.6, \"min\": 2.0, \"max\": 15.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 0.84, \"min\": 0.34, \"max\": 2.52, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 3.44, \"min\": 1.38, \"max\": 10.32, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 24.5, \"min\": 6.8, \"max\": 38.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.06215596393764586)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad096_0682", "family": "bracket", "tier": 2, "seed": 2468008086, "symmetry": "none", "op_count": 1, "ir_hash": "51d335a20396c088", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25600.0, "surface_area": 11300.0, "principal_moments": [14399999.999999998, 17400000.0, 29899999.999999996], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 62.52, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 72.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 21.5, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 8.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 8.4, "min": 3.0, "max": 10.8, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008086 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 62.52, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 72.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 21.5, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 8.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 10.8, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad097_0683", "family": "revolved", "tier": 0, "seed": 2468008087, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "c738d57e2a5a493e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 299000.0, "surface_area": 41900.0, "principal_moments": [235000000.0, 326000000.0, 326000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 72.49, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 108.5, "min": 32.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008087 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 72.49, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 108.5, \"min\": 32.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad098_0684", "family": "revolved", "tier": 2, "seed": 2468008088, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "f529089b7522ea8f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 90900.0, "surface_area": 14800.0, "principal_moments": [22799999.999999996, 47999999.99999999, 47999999.99999999], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 42.83, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 69.5, "min": 20.8, "max": 208.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 13.0, "min": 2.0, "max": 30.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008088 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 42.83, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 69.5, \"min\": 20.8, \"max\": 208.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 13.0, \"min\": 2.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad099_0685", "family": "bracket", "tier": 1, "seed": 2468008089, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "52182e9721e85fc0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28800.0, "surface_area": 16100.0, "principal_moments": [12199999.999999998, 31999999.999999996, 32599999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 70.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 49.17, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008089 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 70.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 49.17, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad09b_0687", "family": "gear", "tier": 0, "seed": 2468008091, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8395888008bbe19d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 417000.0, "surface_area": 50100.0, "principal_moments": [430000000.0, 430000000.0, 763000000.0], "n_faces": 122, "n_edges": 360, "n_vertices": 240}, "params": {"module": {"type": "float", "default": 6.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 20, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 37.5, "min": 15.0, "max": 93.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008091 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 6.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 20, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 37.5, \"min\": 15.0, \"max\": 93.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad09c_0688", "family": "compound", "tier": 1, "seed": 2468008092, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "d566f1e48526267c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39300.0, "surface_area": 8360.0, "principal_moments": [6920000.0, 8530000.0, 8850000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 29.71, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 39.9, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 33.2, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 9.8, "min": 3.9, "max": 23.2, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 17.4, "min": 2.9, "max": 39.2, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 6.0, "min": 2.0, "max": 7.1, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008092 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 29.71, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 39.9, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 33.2, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 9.8, \"min\": 3.9, \"max\": 23.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 17.4, \"min\": 2.9, \"max\": 39.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 7.1, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad09f_0691", "family": "ribbed", "tier": 1, "seed": 2468008095, "symmetry": "none", "op_count": 2, "ir_hash": "9b6d7a15c1e82d38", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17300.0, "surface_area": 12000.0, "principal_moments": [3780000.0, 7620000.0, 10800000.0], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 70, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 41.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 10.8, "min": 4.3, "max": 21.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.6, "min": 1.0, "max": 9.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008095 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 41.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 10.8, \"min\": 4.3, \"max\": 21.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.6, \"min\": 1.0, \"max\": 9.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad0a0_0692", "family": "plate", "tier": 1, "seed": 2468008096, "symmetry": "none", "op_count": 2, "ir_hash": "1d73778797567451", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1890.0, "surface_area": 1240.0, "principal_moments": [25400.0, 106000.0, 111000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 25, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 10.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.1, "min": 2.0, "max": 2.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008096 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.1, \"min\": 2.0, \"max\": 2.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad0a1_0693", "family": "revolved", "tier": 0, "seed": 2468008097, "symmetry": "none", "op_count": 1, "ir_hash": "68f9384953a29bc7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 207000.0, "surface_area": 41700.0, "principal_moments": [67900000.0, 435000000.0, 435000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 46.77, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 180.7, "min": 54.2, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008097 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 46.77, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 180.7, \"min\": 54.2, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad0a2_0694", "family": "threaded", "tier": 2, "seed": 2468008098, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "1b26f1617586fe0c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5570.0, "surface_area": 4000.0, "principal_moments": [181000.0, 1070000.0, 1070000.0], "n_faces": 299, "n_edges": 817, "n_vertices": 520}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 45.9, "min": 18.4, "max": 91.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008098 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 45.9, \"min\": 18.4, \"max\": 91.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0a3_0695", "family": "bracket", "tier": 1, "seed": 2468008099, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d5861a0b4cabbcd8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9480.0, "surface_area": 5790.0, "principal_moments": [882000.0, 4080000.0, 4180000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 33.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 24.89, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 35.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008099 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 33.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 24.89, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 35.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad0a4_0696", "family": "compound", "tier": 1, "seed": 2468008100, "symmetry": "none", "op_count": 3, "ir_hash": "b19beae266808d48", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 101000.0, "surface_area": 23500.0, "principal_moments": [66899999.99999999, 106000000.0, 109000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"base_w": {"type": "float", "default": 105, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 68.6, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 12.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 18.0, "min": 7.2, "max": 34.3, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 71.8, "min": 21.5, "max": 215.4, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008100 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 105, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 68.6, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 12.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 18.0, \"min\": 7.2, \"max\": 34.3, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 71.8, \"min\": 21.5, \"max\": 215.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0a5_0697", "family": "bracket", "tier": 1, "seed": 2468008101, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "3f5c4ce10304158e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30500.0, "surface_area": 14200.0, "principal_moments": [11100000.0, 28899999.999999996, 29699999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 72.65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 68.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008101 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 72.65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 68.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad0a7_0699", "family": "plate", "tier": 2, "seed": 2468008103, "symmetry": "none", "op_count": 3, "ir_hash": "68222b3e285e519d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1450.0, "surface_area": 1830.0, "principal_moments": [56000.0, 155000.0, 210000.0], "n_faces": 26, "n_edges": 72, "n_vertices": 48}, "params": {"plate_w": {"type": "float", "default": 37.23, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 22.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.0, "step": 0.5, "group": "Holes", "label": "Slot width (mm)"}, "hole_slot_len": {"type": "float", "default": 6.7, "min": 6.4, "max": 6.7, "step": 0.5, "group": "Holes", "label": "Slot length (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008103 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 37.23, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 22.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.0, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot width (mm)'},\n \"hole_slot_len\": {\"type\": 'float', \"default\": 6.7, \"min\": 6.4, \"max\": 6.7, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot length (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09870002701513561)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad0a8_0700", "family": "compound", "tier": 1, "seed": 2468008104, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "8ace701a16e89c83", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25700.0, "surface_area": 7960.0, "principal_moments": [2790000.0, 7190000.0, 7190000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 28.79, "min": 14.4, "max": 51.8, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 39.7, "min": 15.9, "max": 79.4, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 17.0, "min": 8.5, "max": 25.9, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 22.5, "min": 6.8, "max": 56.2, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 10.4, "min": 2.0, "max": 12.2, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008104 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 28.79, \"min\": 14.4, \"max\": 51.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 39.7, \"min\": 15.9, \"max\": 79.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 17.0, \"min\": 8.5, \"max\": 25.9, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 22.5, \"min\": 6.8, \"max\": 56.2, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 10.4, \"min\": 2.0, \"max\": 12.2, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0a9_0701", "family": "bracket", "tier": 1, "seed": 2468008105, "symmetry": "none", "op_count": 1, "ir_hash": "b5fb614289bc1069", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19100.0, "surface_area": 14000.0, "principal_moments": [6710000.0, 20800000.0, 21000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 84.98, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 60.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008105 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 84.98, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 60.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad0ab_0703", "family": "revolved", "tier": 0, "seed": 2468008107, "symmetry": "none", "op_count": 1, "ir_hash": "6c5b570c5e12ed9f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 76600.0, "surface_area": 15300.0, "principal_moments": [30099999.999999996, 30099999.999999996, 49699999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 65.79, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 33.8, "min": 10.1, "max": 101.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008107 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65.79, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 33.8, \"min\": 10.1, \"max\": 101.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad0ac_0704", "family": "plate", "tier": 1, "seed": 2468008108, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "bf79448b56ba94a8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2090.0, "surface_area": 1590.0, "principal_moments": [60600.0, 155000.0, 210000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 30, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 18.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008108 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 18.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad0ad_0705", "family": "enclosure", "tier": 1, "seed": 2468008109, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "d4f16c174ec8a13e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6870.0, "surface_area": 3370.0, "principal_moments": [387000.0, 773000.0, 803000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 30.0, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 17.2, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 17.2, "min": 6.9, "max": 34.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.7, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008109 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 30.0, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 17.2, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 17.2, \"min\": 6.9, \"max\": 34.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.7, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad0ae_0706", "family": "flanged", "tier": 2, "seed": 2468008110, "symmetry": "radial", "op_count": 3, "ir_hash": "7e578a9ef769e2ae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 56900.0, "surface_area": 17800.0, "principal_moments": [24199999.999999996, 24199999.999999996, 27999999.999999996], "n_faces": 22, "n_edges": 47, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 37.33, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 42.7, "min": 12.8, "max": 106.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.3, "min": 2.0, "max": 26.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 80.9, "min": 48.5, "max": 112.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.1, "min": 1.5, "max": 17.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.3, "min": 16.2, "max": 36.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008110 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 37.33, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 42.7, \"min\": 12.8, \"max\": 106.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.3, \"min\": 2.0, \"max\": 26.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 80.9, \"min\": 48.5, \"max\": 112.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.1, \"min\": 1.5, \"max\": 17.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.3, \"min\": 16.2, \"max\": 36.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad0b1_0709", "family": "threaded", "tier": 0, "seed": 2468008113, "symmetry": "none", "op_count": 1, "ir_hash": "b267e24c3f87c457", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1130.0, "surface_area": 1080.0, "principal_moments": [7550.0, 74200.0, 74200.0], "n_faces": 225, "n_edges": 577, "n_vertices": 354}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 27.5, "min": 11.0, "max": 55.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008113 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 27.5, \"min\": 11.0, \"max\": 55.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad0b2_0710", "family": "compound", "tier": 1, "seed": 2468008114, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "819956eaf7850d40", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45500.0, "surface_area": 11000.0, "principal_moments": [9240000.0, 15599999.999999998, 21200000.0], "n_faces": 16, "n_edges": 39, "n_vertices": 26}, "params": {"base_w": {"type": "float", "default": 62.3, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 45.7, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 16.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 5.8, "min": 2.9, "max": 11.4, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 25.0, "min": 7.5, "max": 75.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 10.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008114 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 62.3, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 45.7, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 16.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.9, \"max\": 11.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 25.0, \"min\": 7.5, \"max\": 75.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 10.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad0b3_0711", "family": "plate", "tier": 2, "seed": 2468008115, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "c5542e1fffb6e55c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7440.0, "surface_area": 3380.0, "principal_moments": [274000.0, 1530000.0, 1730000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 19.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008115 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 19.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08601919596797508)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0b4_0712", "family": "bracket", "tier": 1, "seed": 2468008116, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8721346d44b4aa2e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26600.0, "surface_area": 11100.0, "principal_moments": [7600000.0, 24899999.999999996, 28099999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 67.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 31.54, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008116 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 67.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 31.54, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad0b6_0714", "family": "plate", "tier": 1, "seed": 2468008118, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "fae9f5f69f8cee6d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5190.0, "surface_area": 2950.0, "principal_moments": [297000.0, 739000.0, 1010000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 41.33, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 25.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008118 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 41.33, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 25.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad0b7_0715", "family": "revolved", "tier": 1, "seed": 2468008119, "symmetry": "none", "op_count": 1, "ir_hash": "dc95004dcdba17b3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2890.0, "surface_area": 1970.0, "principal_moments": [59900.0, 300000.0, 300000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 11.74, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 33.5, "min": 10.0, "max": 100.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 8.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008119 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 11.74, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 33.5, \"min\": 10.0, \"max\": 100.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 8.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad0b8_0716", "family": "ribbed", "tier": 2, "seed": 2468008120, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "c444c51f905dae81", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6010.0, "surface_area": 4380.0, "principal_moments": [307000.0, 544000.0, 700000.0], "n_faces": 62, "n_edges": 168, "n_vertices": 104}, "params": {"base_w": {"type": "float", "default": 31.82, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 16.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 6.3, "min": 2.5, "max": 12.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.3, "min": 1.0, "max": 8.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008120 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 31.82, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 16.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 6.3, \"min\": 2.5, \"max\": 12.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.3, \"min\": 1.0, \"max\": 8.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0b9_0717", "family": "bracket", "tier": 1, "seed": 2468008121, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "eee73d7f272d9dad", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7520.0, "surface_area": 4860.0, "principal_moments": [1030000.0, 3210000.0, 3710000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 50.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20.16, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 8.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008121 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 50.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20.16, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 8.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0bc_0720", "family": "bracket", "tier": 1, "seed": 2468008124, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ba243c44c80fdfbf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10000.0, "surface_area": 5250.0, "principal_moments": [865000.0, 3150000.0, 3350000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 31.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 30.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 30.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008124 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 31.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 30.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 30.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad0bd_0721", "family": "block", "tier": 1, "seed": 2468008125, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "2dbc7a68c57b56c9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 66900.0, "surface_area": 14300.0, "principal_moments": [14899999.999999998, 24899999.999999996, 33399999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 46.42, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 24.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 62.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008125 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 46.42, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 24.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 62.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad0be_0722", "family": "compound", "tier": 2, "seed": 2468008126, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "519a038beb9cf3d4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 141000.0, "surface_area": 16700.0, "principal_moments": [34900000.0, 116000000.0, 116000000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 46.29, "min": 23.1, "max": 83.3, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 75.1, "min": 30.0, "max": 150.2, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 24.2, "min": 12.1, "max": 41.7, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 32.0, "min": 9.6, "max": 80.0, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008126 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 46.29, \"min\": 23.1, \"max\": 83.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 75.1, \"min\": 30.0, \"max\": 150.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 24.2, \"min\": 12.1, \"max\": 41.7, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 32.0, \"min\": 9.6, \"max\": 80.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad0bf_0723", "family": "ribbed", "tier": 1, "seed": 2468008127, "symmetry": "none", "op_count": 2, "ir_hash": "4a8298a81be3be6f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11700.0, "surface_area": 5790.0, "principal_moments": [992000.0, 1470000.0, 2010000.0], "n_faces": 46, "n_edges": 112, "n_vertices": 68}, "params": {"base_w": {"type": "float", "default": 35.84, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 27.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 9.1, "min": 3.6, "max": 18.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.5, "min": 1.0, "max": 11.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008127 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 35.84, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 27.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 9.1, \"min\": 3.6, \"max\": 18.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.0, \"max\": 11.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0c0_0724", "family": "bracket", "tier": 1, "seed": 2468008128, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "eb04b6192f1ee3d4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14400.0, "surface_area": 8360.0, "principal_moments": [3180000.0, 6250000.0, 6940000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 44.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008128 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 44.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad0c4_0728", "family": "gear", "tier": 0, "seed": 2468008132, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8e67de92904a2c89", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 125000.0, "surface_area": 22100.0, "principal_moments": [51499999.99999999, 51499999.99999999, 72900000.0], "n_faces": 68, "n_edges": 198, "n_vertices": 132}, "params": {"module": {"type": "float", "default": 6.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 11, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 38.0, "min": 15.2, "max": 95.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008132 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 6.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 11, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 38.0, \"min\": 15.2, \"max\": 95.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad0c5_0729", "family": "enclosure", "tier": 1, "seed": 2468008133, "symmetry": "none", "op_count": 2, "ir_hash": "450bfc8a7aa7f82b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7400.0, "surface_area": 4720.0, "principal_moments": [626000.0, 1140000.0, 1260000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 33.45, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 20.5, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 19.2, "min": 7.7, "max": 38.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.4, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008133 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 33.45, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 20.5, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 19.2, \"min\": 7.7, \"max\": 38.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.4, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad0c6_0730", "family": "block", "tier": 2, "seed": 2468008134, "symmetry": "none", "op_count": 3, "ir_hash": "2d05b2d89ca64ff4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29500.0, "surface_area": 7250.0, "principal_moments": [4480000.0, 5700000.0, 8700000.0], "n_faces": 22, "n_edges": 56, "n_vertices": 36}, "params": {"block_w": {"type": "float", "default": 40, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 17.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 40.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.8, "min": 2.0, "max": 1.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "boss_d": {"type": "float", "default": 19.3, "min": 9.7, "max": 38.6, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 8.7, "min": 3.5, "max": 21.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.5, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008134 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 17.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 40.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.8, \"min\": 2.0, \"max\": 1.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"boss_d\": {\"type\": 'float', \"default\": 19.3, \"min\": 9.7, \"max\": 38.6, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 8.7, \"min\": 3.5, \"max\": 21.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.5, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 15.0\n _ssy = 18.0\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad0c7_0731", "family": "revolved", "tier": 2, "seed": 2468008135, "symmetry": "none", "op_count": 1, "ir_hash": "8c3e09d8ad8ee394", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 826000.0, "surface_area": 88400.0, "principal_moments": [676000000.0, 5220000000.0, 5220000000.0], "n_faces": 10, "n_edges": 15, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 62.75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 250.2, "min": 75.1, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 25.4, "min": 2.0, "max": 43.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 96.8, "min": 75.3, "max": 188.2, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 44.5, "min": 13.3, "max": 125.1, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "groove_depth": {"type": "float", "default": 2.59, "min": 1.04, "max": 7.77, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 22.58, "min": 9.03, "max": 67.74, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 183.9, "min": 37.5, "max": 212.7, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008135 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 62.75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 250.2, \"min\": 75.1, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 25.4, \"min\": 2.0, \"max\": 43.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 96.8, \"min\": 75.3, \"max\": 188.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 44.5, \"min\": 13.3, \"max\": 125.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 2.59, \"min\": 1.04, \"max\": 7.77, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 22.58, \"min\": 9.03, \"max\": 67.74, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 183.9, \"min\": 37.5, \"max\": 212.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad0c8_0732", "family": "plate", "tier": 0, "seed": 2468008136, "symmetry": "none", "op_count": 1, "ir_hash": "e4c264d0080c0dc4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26100.0, "surface_area": 8370.0, "principal_moments": [5400000.0, 9690000.0, 14799999.999999998], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 66.29, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 49.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008136 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 66.29, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 49.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad0ca_0734", "family": "plate", "tier": 1, "seed": 2468008138, "symmetry": "radial", "op_count": 2, "ir_hash": "f7fc43ae3657cd82", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4590.0, "surface_area": 2520.0, "principal_moments": [141000.0, 422000.0, 453000.0], "n_faces": 20, "n_edges": 54, "n_vertices": 36}, "params": {"plate_w": {"type": "float", "default": 30, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 15.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 9.0, "min": 6.0, "max": 13.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008138 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 15.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 9.0, \"min\": 6.0, \"max\": 13.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad0cb_0735", "family": "threaded", "tier": 0, "seed": 2468008139, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "28c2e55812825a59", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 405.0, "surface_area": 521.0, "principal_moments": [1500.0, 11300.0, 11300.0], "n_faces": 185, "n_edges": 473, "n_vertices": 290}, "params": {"major_d": {"type": "float", "default": 6.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.0, "min": 0.5, "max": 2.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 17.8, "min": 7.1, "max": 35.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008139 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.5, \"max\": 2.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 17.8, \"min\": 7.1, \"max\": 35.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad0cc_0736", "family": "gear", "tier": 0, "seed": 2468008140, "symmetry": "none", "op_count": 1, "ir_hash": "28c338617bbd9ea1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23100.0, "surface_area": 7240.0, "principal_moments": [3400000.0, 3400000.0, 5970000.0], "n_faces": 110, "n_edges": 324, "n_vertices": 216}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 18, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 14.8, "min": 5.9, "max": 37.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008140 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 18, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 14.8, \"min\": 5.9, \"max\": 37.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad0cd_0737", "family": "revolved", "tier": 0, "seed": 2468008141, "symmetry": "radial", "op_count": 1, "ir_hash": "3bd7f7519714d27e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 370000.0, "surface_area": 49500.0, "principal_moments": [312000000.0, 504000000.0, 504000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 125.7, "min": 37.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008141 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 125.7, \"min\": 37.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad0ce_0738", "family": "enclosure", "tier": 1, "seed": 2468008142, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "78e89489c84cef5b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30300.0, "surface_area": 20900.0, "principal_moments": [9270000.0, 26499999.999999996, 27999999.999999996], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 81.91, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 34.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 35.8, "min": 14.3, "max": 71.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008142 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 81.91, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 34.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 35.8, \"min\": 14.3, \"max\": 71.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad0cf_0739", "family": "block", "tier": 2, "seed": 2468008143, "symmetry": "radial", "op_count": 3, "ir_hash": "ae5ff33a53a18e16", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 289000.0, "surface_area": 40100.0, "principal_moments": [219000000.0, 278000000.0, 402000000.0], "n_faces": 21, "n_edges": 54, "n_vertices": 36}, "params": {"block_w": {"type": "float", "default": 80, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 42.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.0, "min": 16.0, "max": 36.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "pocket_w": {"type": "float", "default": 44.1, "min": 22.1, "max": 64.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 23.0, "min": 11.5, "max": 33.8, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 44.6, "min": 17.8, "max": 85.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008143 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 42.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.0, \"min\": 16.0, \"max\": 36.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"pocket_w\": {\"type\": 'float', \"default\": 44.1, \"min\": 22.1, \"max\": 64.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 23.0, \"min\": 11.5, \"max\": 33.8, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 44.6, \"min\": 17.8, \"max\": 85.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0d0_0740", "family": "bracket", "tier": 2, "seed": 2468008144, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "f3d173d282afee7d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9600.0, "surface_area": 4500.0, "principal_moments": [883000.0, 2820000.0, 3200000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 48.59, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 39.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 18.15, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 7.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 8.2, "min": 3.0, "max": 9.1, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008144 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 48.59, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 39.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 18.15, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 7.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 8.2, \"min\": 3.0, \"max\": 9.1, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad0d1_0741", "family": "flanged", "tier": 2, "seed": 2468008145, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "4c94c91799e796c1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 735000.0, "surface_area": 88000.0, "principal_moments": [1500000000.0, 1500000000.0, 1680000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 91.03, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 95.9, "min": 28.8, "max": 239.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 38.2, "min": 2.0, "max": 63.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 172.5, "min": 118.3, "max": 273.1, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 13.2, "min": 4.0, "max": 38.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 51.8, "min": 34.5, "max": 77.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008145 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 91.03, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 95.9, \"min\": 28.8, \"max\": 239.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 38.2, \"min\": 2.0, \"max\": 63.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 172.5, \"min\": 118.3, \"max\": 273.1, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 13.2, \"min\": 4.0, \"max\": 38.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 51.8, \"min\": 34.5, \"max\": 77.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad0d2_0742", "family": "revolved", "tier": 0, "seed": 2468008146, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "c03e571925284998", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 284000.0, "surface_area": 44400.0, "principal_moments": [165000000.0, 411000000.0, 411000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 62.31, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 139.6, "min": 41.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008146 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 62.31, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 139.6, \"min\": 41.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad0d3_0743", "family": "compound", "tier": 2, "seed": 2468008147, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "fd470e6c0b437ffd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 73500.0, "surface_area": 19300.0, "principal_moments": [31899999.999999996, 68900000.0, 87100000.0], "n_faces": 31, "n_edges": 84, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 104.37, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 66.3, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 10.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 5.5, "min": 2.8, "max": 16.6, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 57.2, "min": 17.2, "max": 171.6, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008147 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 104.37, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 66.3, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 10.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.8, \"max\": 16.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 57.2, \"min\": 17.2, \"max\": 171.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_w\"], p[\"base_d\"]) * 0.062260809399727106)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad0d4_0744", "family": "block", "tier": 2, "seed": 2468008148, "symmetry": "radial", "op_count": 3, "ir_hash": "973d280855df34eb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 610000.0, "surface_area": 72100.0, "principal_moments": [819000000.0, 920000000.0, 1080000000.0], "n_faces": 23, "n_edges": 78, "n_vertices": 52}, "params": {"block_w": {"type": "float", "default": 100.0, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 75.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 30.0, "min": 20.0, "max": 45.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "pocket_w": {"type": "float", "default": 51.7, "min": 25.9, "max": 80.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 46.8, "min": 23.4, "max": 60.7, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 48.6, "min": 19.4, "max": 85.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008148 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 100.0, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 75.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 30.0, \"min\": 20.0, \"max\": 45.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"pocket_w\": {\"type\": 'float', \"default\": 51.7, \"min\": 25.9, \"max\": 80.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 46.8, \"min\": 23.4, \"max\": 60.7, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 48.6, \"min\": 19.4, \"max\": 85.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad0d5_0745", "family": "enclosure", "tier": 1, "seed": 2468008149, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "48de846e03d355b7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 118000.0, "surface_area": 66700.0, "principal_moments": [181000000.0, 220000000.0, 220000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 90.84, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 72.9, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 87.1, "min": 34.8, "max": 174.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008149 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 90.84, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 72.9, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 87.1, \"min\": 34.8, \"max\": 174.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad0d6_0746", "family": "block", "tier": 2, "seed": 2468008150, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "51e9d60425d135be", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 448000.0, "surface_area": 43500.0, "principal_moments": [399000000.0, 441000000.0, 609000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 87.88, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 56.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 93.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 12.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008150 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 87.88, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 56.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 93.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 12.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.051589138626789835)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad0d8_0748", "family": "revolved", "tier": 0, "seed": 2468008152, "symmetry": "radial", "op_count": 1, "ir_hash": "60ff02f749537f6f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12800.0, "surface_area": 6130.0, "principal_moments": [763000.0, 3290000.0, 3290000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 19.91, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 61.8, "min": 18.5, "max": 185.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008152 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 19.91, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 61.8, \"min\": 18.5, \"max\": 185.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad0d9_0749", "family": "block", "tier": 1, "seed": 2468008153, "symmetry": "none", "op_count": 2, "ir_hash": "93db95a4bd71d1bc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11900.0, "surface_area": 4860.0, "principal_moments": [936000.0, 1090000.0, 1420000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 29.1, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 18.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 25.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 5.3, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008153 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 29.1, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 18.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 25.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 5.3, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad0da_0750", "family": "block", "tier": 2, "seed": 2468008154, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "52bb127249209b53", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 128000.0, "surface_area": 24500.0, "principal_moments": [44700000.0, 78500000.0, 93099999.99999999], "n_faces": 27, "n_edges": 72, "n_vertices": 48}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 36.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 55.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.2, "min": 2.0, "max": 10.6, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "pocket_w": {"type": "float", "default": 46.5, "min": 23.2, "max": 60.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 20.4, "min": 10.2, "max": 29.1, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 17.8, "min": 7.1, "max": 46.9, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008154 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 36.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 55.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 10.6, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 46.5, \"min\": 23.2, \"max\": 60.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 20.4, \"min\": 10.2, \"max\": 29.1, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 17.8, \"min\": 7.1, \"max\": 46.9, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad0db_0751", "family": "revolved", "tier": 1, "seed": 2468008155, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "08c4b987f4305a55", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 563000.0, "surface_area": 72500.0, "principal_moments": [475000000.0, 1460000000.0, 1460000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 191.3, "min": 57.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008155 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 191.3, \"min\": 57.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad0dc_0752", "family": "profiled", "tier": 1, "seed": 2468008156, "symmetry": "none", "op_count": 1, "ir_hash": "823f402759b42a9a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9390.0, "surface_area": 4670.0, "principal_moments": [365000.0, 2920000.0, 2920000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 16.02, "min": 8.0, "max": 32.0, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 59.2, "min": 17.8, "max": 177.6, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 7.4, "min": 2.0, "max": 12.8, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008156 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 16.02, \"min\": 8.0, \"max\": 32.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 59.2, \"min\": 17.8, \"max\": 177.6, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 7.4, \"min\": 2.0, \"max\": 12.8, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad0de_0754", "family": "revolved", "tier": 0, "seed": 2468008158, "symmetry": "none", "op_count": 1, "ir_hash": "84b746488f26d765", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 141000.0, "surface_area": 27500.0, "principal_moments": [52799999.99999999, 123000000.0, 123000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 50, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 107.5, "min": 32.2, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008158 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 107.5, \"min\": 32.2, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0df_0755", "family": "bracket", "tier": 1, "seed": 2468008159, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "7a81a44260fe2b19", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23000.0, "surface_area": 10700.0, "principal_moments": [7460000.0, 8670000.0, 12899999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 49.08, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 39.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008159 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 49.08, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 39.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_w\"], p[\"base_d\"]) * 0.04882813793515797)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad0e4_0760", "family": "compound", "tier": 1, "seed": 2468008164, "symmetry": "none", "op_count": 3, "ir_hash": "b3b4ff4cacaad742", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 63100.0, "surface_area": 11500.0, "principal_moments": [16199999.999999998, 16699999.999999998, 17600000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 38.33, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 37.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 41.2, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 37.2, "min": 14.9, "max": 59.5, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 22.8, "min": 9.1, "max": 36.5, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.0, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008164 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 38.33, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 37.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 41.2, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 37.2, \"min\": 14.9, \"max\": 59.5, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 22.8, \"min\": 9.1, \"max\": 36.5, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.0, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .rect(p[\"tab_a\"], p[\"tab_b\"]).extrude(p[\"tab_t\"])\n )\n result = (\n result.faces('>Y').workplane()\n .rect(p[\"tab_a\"] * 0.6, p[\"tab_b\"] * 0.6, forConstruction=True)\n .vertices().hole(p[\"tab_hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0e5_0761", "family": "bracket", "tier": 1, "seed": 2468008165, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "13d04810f51bd282", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22000.0, "surface_area": 12600.0, "principal_moments": [8260000.0, 10800000.0, 12199999.999999998], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 46.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 43.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008165 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 46.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 43.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad0e6_0762", "family": "plate", "tier": 0, "seed": 2468008166, "symmetry": "none", "op_count": 1, "ir_hash": "027a523bd64272c4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11600.0, "surface_area": 5650.0, "principal_moments": [1070000.0, 4740000.0, 5760000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 70, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 33.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008166 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 33.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0e7_0763", "family": "bracket", "tier": 2, "seed": 2468008167, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "65b72b328a7d8912", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7630.0, "surface_area": 4660.0, "principal_moments": [906000.0, 1220000.0, 1740000.0], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 26.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40.08, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.1, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008167 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 26.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40.08, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.1, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad0e8_0764", "family": "revolved", "tier": 0, "seed": 2468008168, "symmetry": "none", "op_count": 1, "ir_hash": "6415c969cfffbb70", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 371000.0, "surface_area": 59700.0, "principal_moments": [191000000.0, 1030000000.0, 1030000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 58.67, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 205.6, "min": 61.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008168 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 58.67, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 205.6, \"min\": 61.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0e9_0765", "family": "bracket", "tier": 2, "seed": 2468008169, "symmetry": "none", "op_count": 1, "ir_hash": "cb756fcad384d686", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35300.0, "surface_area": 16300.0, "principal_moments": [12599999.999999998, 34900000.0, 35800000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 73.38, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 45.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.5, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008169 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 73.38, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 45.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad0ea_0766", "family": "revolved", "tier": 1, "seed": 2468008170, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "d1ef47cc8403f7cb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 220000.0, "surface_area": 38600.0, "principal_moments": [133000000.0, 264000000.0, 264000000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 48.36, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 122.4, "min": 36.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 82.8, "min": 58.0, "max": 145.1, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 19.8, "min": 5.9, "max": 61.2, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.2, "min": 0.1, "max": 3.6, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008170 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 48.36, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 122.4, \"min\": 36.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 82.8, \"min\": 58.0, \"max\": 145.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 19.8, \"min\": 5.9, \"max\": 61.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.2, \"min\": 0.1, \"max\": 3.6, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0ed_0769", "family": "bracket", "tier": 1, "seed": 2468008173, "symmetry": "none", "op_count": 1, "ir_hash": "491bf44e228f98e3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 58400.0, "surface_area": 18800.0, "principal_moments": [18700000.0, 113000000.0, 120000000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 72.45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 82.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 71.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008173 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 72.45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 82.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 71.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad0ee_0770", "family": "gear", "tier": 2, "seed": 2468008174, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "e47189b21b27e231", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 43300.0, "surface_area": 17000.0, "principal_moments": [24199999.999999996, 24199999.999999996, 47999999.99999999], "n_faces": 243, "n_edges": 723, "n_vertices": 482}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 40, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.7, "min": 2.7, "max": 16.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 29.6, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.12, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.47, "min": 0.0, "max": 1.0, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 17.2, "min": 2.0, "max": 45.0, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008174 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 40, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.7, \"min\": 2.7, \"max\": 16.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 29.6, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.12, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.47, \"min\": 0.0, \"max\": 1.0, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 17.2, \"min\": 2.0, \"max\": 45.0, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad0ef_0771", "family": "block", "tier": 1, "seed": 2468008175, "symmetry": "radial", "op_count": 2, "ir_hash": "f17f6db5734f60be", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 401000.0, "surface_area": 38800.0, "principal_moments": [284000000.0, 437000000.0, 465000000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 95.87, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 62.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 68.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 28.8, "min": 19.2, "max": 43.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008175 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 95.87, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 62.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 68.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 28.8, \"min\": 19.2, \"max\": 43.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad0f0_0772", "family": "profiled", "tier": 2, "seed": 2468008176, "symmetry": "none", "op_count": 1, "ir_hash": "095427bd2d8ca589", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8220.0, "surface_area": 2620.0, "principal_moments": [265000.0, 1300000.0, 1300000.0], "n_faces": 7, "n_edges": 15, "n_vertices": 10}, "params": {"circ_r": {"type": "float", "default": 9.15, "min": 4.6, "max": 18.3, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 41.3, "min": 12.4, "max": 123.9, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008176 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 9.15, \"min\": 4.6, \"max\": 18.3, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 41.3, \"min\": 12.4, \"max\": 123.9, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad0f2_0774", "family": "compound", "tier": 1, "seed": 2468008178, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "e1f46677080ed04e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 402000.0, "surface_area": 42100.0, "principal_moments": [357000000.0, 387000000.0, 589000000.0], "n_faces": 14, "n_edges": 34, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 90.0, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 94.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 47.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 16.2, "min": 6.5, "max": 21.5, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 19.0, "min": 4.0, "max": 48.6, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 8.6, "min": 2.0, "max": 11.7, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008178 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 90.0, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 94.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 47.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 16.2, \"min\": 6.5, \"max\": 21.5, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 19.0, \"min\": 4.0, \"max\": 48.6, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 8.6, \"min\": 2.0, \"max\": 11.7, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0f4_0776", "family": "bracket", "tier": 1, "seed": 2468008180, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "f046ac072ae3f7cb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19800.0, "surface_area": 6580.0, "principal_moments": [2010000.0, 6270000.0, 7280000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"base_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 59.07, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008180 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 59.07, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad0f8_0780", "family": "plate", "tier": 0, "seed": 2468008184, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "c5d1e14867dbaff1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5660.0, "surface_area": 2090.0, "principal_moments": [158000.0, 617000.0, 639000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 34.15, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 13.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008184 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 34.15, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 13.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad0f9_0781", "family": "block", "tier": 2, "seed": 2468008185, "symmetry": "radial", "op_count": 3, "ir_hash": "f7370c0bfbefbfc5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 241000.0, "surface_area": 34800.0, "principal_moments": [138000000.0, 202000000.0, 219000000.0], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"block_w": {"type": "float", "default": 80, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 53.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 64.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.0, "min": 16.0, "max": 36.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "pocket_w": {"type": "float", "default": 35.1, "min": 17.6, "max": 64.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 32.7, "min": 16.4, "max": 42.7, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 22.0, "min": 8.8, "max": 54.6, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008185 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 53.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 64.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.0, \"min\": 16.0, \"max\": 36.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"pocket_w\": {\"type\": 'float', \"default\": 35.1, \"min\": 17.6, \"max\": 64.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 32.7, \"min\": 16.4, \"max\": 42.7, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 22.0, \"min\": 8.8, \"max\": 54.6, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad0fa_0782", "family": "bracket", "tier": 2, "seed": 2468008186, "symmetry": "none", "op_count": 1, "ir_hash": "b776df12f277b44a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 73200.0, "surface_area": 22100.0, "principal_moments": [22700000.0, 116000000.0, 123000000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 49.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 76.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 9.9, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008186 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 49.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 76.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 9.9, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad0fb_0783", "family": "flanged", "tier": 1, "seed": 2468008187, "symmetry": "none", "op_count": 2, "ir_hash": "4055638c0a5757bc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 98900.0, "surface_area": 25100.0, "principal_moments": [55999999.99999999, 62399999.99999999, 62399999.99999999], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 47.27, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 59.1, "min": 17.7, "max": 147.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 24.9, "min": 2.0, "max": 33.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 84.2, "min": 61.5, "max": 141.8, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.9, "min": 2.1, "max": 23.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 25.3, "min": 16.8, "max": 37.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008187 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 47.27, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 59.1, \"min\": 17.7, \"max\": 147.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 24.9, \"min\": 2.0, \"max\": 33.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 84.2, \"min\": 61.5, \"max\": 141.8, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.9, \"min\": 2.1, \"max\": 23.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 25.3, \"min\": 16.8, \"max\": 37.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad0fc_0784", "family": "gear", "tier": 2, "seed": 2468008188, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8239e549aa8ac793", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7030.0, "surface_area": 3740.0, "principal_moments": [644000.0, 644000.0, 1240000.0], "n_faces": 195, "n_edges": 579, "n_vertices": 386}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 32, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.7, "min": 2.7, "max": 16.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 30.0, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.05, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.21, "min": 0.0, "max": 0.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 17.7, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008188 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 32, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.7, \"min\": 2.7, \"max\": 16.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 30.0, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.05, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.21, \"min\": 0.0, \"max\": 0.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 17.7, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad0ff_0787", "family": "revolved", "tier": 0, "seed": 2468008191, "symmetry": "none", "op_count": 1, "ir_hash": "8bdecacb5b409bae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11700.0, "surface_area": 4980.0, "principal_moments": [974000.0, 1620000.0, 1620000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 23.54, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 40.4, "min": 12.1, "max": 121.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008191 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 23.54, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 40.4, \"min\": 12.1, \"max\": 121.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad102_0790", "family": "block", "tier": 2, "seed": 2468008194, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "a4c30f0aceba5739", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 672000.0, "surface_area": 56300.0, "principal_moments": [762000000.0, 928000000.0, 954000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 82.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008194 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 82.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.07928949941787815)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad103_0791", "family": "enclosure", "tier": 2, "seed": 2468008195, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "5fd560dfc881a26e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22000.0, "surface_area": 9750.0, "principal_moments": [3260000.0, 5410000.0, 6430000.0], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 45, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 21.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 32.9, "min": 13.2, "max": 65.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008195 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 45, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 21.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 32.9, \"min\": 13.2, \"max\": 65.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.09931906471356851)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad104_0792", "family": "bracket", "tier": 2, "seed": 2468008196, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "077738c0aaf54421", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12300.0, "surface_area": 7400.0, "principal_moments": [1450000.0, 10200000.0, 10900000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 54.38, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 47.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 48.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 4.6, "min": 2.0, "max": 10.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008196 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 54.38, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 47.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 48.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.6, \"min\": 2.0, \"max\": 10.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad105_0793", "family": "revolved", "tier": 2, "seed": 2468008197, "symmetry": "none", "op_count": 1, "ir_hash": "ba0a10d1576c81e4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 81800.0, "surface_area": 22400.0, "principal_moments": [21100000.0, 72500000.0, 72500000.0], "n_faces": 9, "n_edges": 13, "n_vertices": 9}, "params": {"outer_d": {"type": "float", "default": 33.0, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 109.3, "min": 32.8, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 56.9, "min": 39.6, "max": 99.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 12.3, "min": 3.7, "max": 54.6, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "groove_depth": {"type": "float", "default": 1.54, "min": 0.62, "max": 4.62, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 8.65, "min": 3.46, "max": 25.95, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 64.8, "min": 16.4, "max": 92.9, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008197 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 33.0, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 109.3, \"min\": 32.8, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 56.9, \"min\": 39.6, \"max\": 99.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 12.3, \"min\": 3.7, \"max\": 54.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 1.54, \"min\": 0.62, \"max\": 4.62, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 8.65, \"min\": 3.46, \"max\": 25.95, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 64.8, \"min\": 16.4, \"max\": 92.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad109_0797", "family": "compound", "tier": 1, "seed": 2468008201, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "9b862c5f6fbed81b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 158000.0, "surface_area": 26700.0, "principal_moments": [46599999.99999999, 187000000.0, 187000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 48.51, "min": 24.3, "max": 87.3, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 82.1, "min": 32.8, "max": 164.2, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 26.4, "min": 13.2, "max": 43.7, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 53.9, "min": 16.2, "max": 134.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 14.8, "min": 2.0, "max": 19.0, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008201 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 48.51, \"min\": 24.3, \"max\": 87.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 82.1, \"min\": 32.8, \"max\": 164.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 26.4, \"min\": 13.2, \"max\": 43.7, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 53.9, \"min\": 16.2, \"max\": 134.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 14.8, \"min\": 2.0, \"max\": 19.0, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad10b_0799", "family": "revolved", "tier": 1, "seed": 2468008203, "symmetry": "radial", "op_count": 2, "ir_hash": "241108421a5e1d36", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 491000.0, "surface_area": 67900.0, "principal_moments": [287000000.0, 2140000000.0, 2140000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 61.24, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 221.2, "min": 66.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 30.4, "min": 2.0, "max": 42.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.6, "min": 0.1, "max": 1.8, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008203 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 61.24, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 221.2, \"min\": 66.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 30.4, \"min\": 2.0, \"max\": 42.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.6, \"min\": 0.1, \"max\": 1.8, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad10e_0802", "family": "bracket", "tier": 2, "seed": 2468008206, "symmetry": "none", "op_count": 1, "ir_hash": "f9ab67202d34f882", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31600.0, "surface_area": 17600.0, "principal_moments": [10700000.0, 36500000.0, 38800000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 60, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 64.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 40.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 3.4, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008206 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 60, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 64.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 40.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.4, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad110_0804", "family": "revolved", "tier": 2, "seed": 2468008208, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "88fb3d3a037751f4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6110.0, "surface_area": 3160.0, "principal_moments": [199000.0, 1010000.0, 1010000.0], "n_faces": 8, "n_edges": 12, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 15, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 42.2, "min": 12.7, "max": 126.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 6.1, "min": 2.0, "max": 10.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 0.93, "min": 0.37, "max": 2.79, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 2.68, "min": 1.07, "max": 8.04, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 31.1, "min": 6.3, "max": 35.9, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008208 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 15, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 42.2, \"min\": 12.7, \"max\": 126.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 6.1, \"min\": 2.0, \"max\": 10.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 0.93, \"min\": 0.37, \"max\": 2.79, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 2.68, \"min\": 1.07, \"max\": 8.04, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 31.1, \"min\": 6.3, \"max\": 35.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad111_0805", "family": "enclosure", "tier": 2, "seed": 2468008209, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "22f91d8c16dad0e0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 48100.0, "surface_area": 21800.0, "principal_moments": [18400000.0, 22100000.0, 33199999.999999996], "n_faces": 19, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 61.86, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 24.9, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 57.8, "min": 23.1, "max": 115.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 5.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008209 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 61.86, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 24.9, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 57.8, \"min\": 23.1, \"max\": 115.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 5.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad112_0806", "family": "compound", "tier": 2, "seed": 2468008210, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "56e9709ddf056de5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 156000.0, "surface_area": 21200.0, "principal_moments": [72500000.0, 73900000.0, 88600000.0], "n_faces": 20, "n_edges": 54, "n_vertices": 36}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 57.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 48.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 52.1, "min": 20.8, "max": 83.4, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 39.4, "min": 15.8, "max": 63.0, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 8.7, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 33.3, "min": 16.6, "max": 44.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 25.4, "min": 12.7, "max": 45.8, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 17.9, "min": 7.2, "max": 41.1, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008210 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 57.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 48.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 52.1, \"min\": 20.8, \"max\": 83.4, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 39.4, \"min\": 15.8, \"max\": 63.0, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 8.7, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 33.3, \"min\": 16.6, \"max\": 44.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 25.4, \"min\": 12.7, \"max\": 45.8, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 17.9, \"min\": 7.2, \"max\": 41.1, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad114_0808", "family": "plate", "tier": 1, "seed": 2468008212, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3699383cddbd359d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2640.0, "surface_area": 1780.0, "principal_moments": [51500.0, 315000.0, 356000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 38.08, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 14.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008212 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 38.08, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 14.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad116_0810", "family": "bracket", "tier": 1, "seed": 2468008214, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "4ff4040ea1f28fe3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24900.0, "surface_area": 10100.0, "principal_moments": [7360000.0, 8200000.0, 12499999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 41.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 39.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 56.33, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008214 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 41.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 39.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 56.33, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad11c_0816", "family": "compound", "tier": 1, "seed": 2468008220, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "a90206f18bdb305d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 124000.0, "surface_area": 17100.0, "principal_moments": [44400000.0, 54599999.99999999, 69200000.0], "n_faces": 28, "n_edges": 76, "n_vertices": 50}, "params": {"block_w": {"type": "float", "default": 61.85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 37.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 53.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 4.3, "min": 2.1, "max": 8.5, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 6.7, "min": 2.0, "max": 23.8, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 4.4, "min": 2.0, "max": 5.7, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008220 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 61.85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 37.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 53.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.1, \"max\": 8.5, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 6.7, \"min\": 2.0, \"max\": 23.8, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 4.4, \"min\": 2.0, \"max\": 5.7, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad11e_0818", "family": "gear", "tier": 1, "seed": 2468008222, "symmetry": "none", "op_count": 1, "ir_hash": "4c86310109607f98", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39300.0, "surface_area": 12400.0, "principal_moments": [12799999.999999998, 12799999.999999998, 24799999.999999996], "n_faces": 213, "n_edges": 633, "n_vertices": 422}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 35, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 10.6, "min": 4.2, "max": 26.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 11.8, "min": 2.0, "max": 39.0, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008222 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 35, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 10.6, \"min\": 4.2, \"max\": 26.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 11.8, \"min\": 2.0, \"max\": 39.0, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad120_0820", "family": "compound", "tier": 1, "seed": 2468008224, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "22bc8b79b34cc5bc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 55500.0, "surface_area": 20900.0, "principal_moments": [43100000.0, 56899999.99999999, 58999999.99999999], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"base_w": {"type": "float", "default": 82.41, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 86.7, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 5.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 9.6, "min": 4.8, "max": 20.6, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 83.2, "min": 25.0, "max": 249.6, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008224 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 82.41, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 86.7, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 9.6, \"min\": 4.8, \"max\": 20.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 83.2, \"min\": 25.0, \"max\": 249.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad121_0821", "family": "threaded", "tier": 0, "seed": 2468008225, "symmetry": "none", "op_count": 1, "ir_hash": "2302f2705beb497d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6010.0, "surface_area": 2910.0, "principal_moments": [166000.0, 693000.0, 693000.0], "n_faces": 308, "n_edges": 842, "n_vertices": 536}, "params": {"major_d": {"type": "float", "default": 16.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.0, "min": 1.0, "max": 4.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 35.1, "min": 14.0, "max": 70.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008225 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 4.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 35.1, \"min\": 14.0, \"max\": 70.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad122_0822", "family": "revolved", "tier": 0, "seed": 2468008226, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "366453e138017bd5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 391000.0, "surface_area": 54600.0, "principal_moments": [287000000.0, 683000000.0, 683000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 70, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 152.4, "min": 45.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008226 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 70, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 152.4, \"min\": 45.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad123_0823", "family": "bracket", "tier": 1, "seed": 2468008227, "symmetry": "none", "op_count": 1, "ir_hash": "164fd70d6084e52a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17200.0, "surface_area": 8380.0, "principal_moments": [3590000.0, 8950000.0, 8990000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 54.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008227 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 54.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cboreHole(p[\"hole_d\"], p[\"cb_d\"], p[\"cb_depth\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.046104478015714746)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad127_0827", "family": "block", "tier": 1, "seed": 2468008231, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "73fbc7caa195836a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 240000.0, "surface_area": 33500.0, "principal_moments": [105000000.0, 234000000.0, 270000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 60, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 41.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.2, "min": 2.0, "max": 12.2, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008231 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 60, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 41.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 12.2, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad128_0828", "family": "flanged", "tier": 2, "seed": 2468008232, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "2c4a7a74b4d5a5bd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 342000.0, "surface_area": 55600.0, "principal_moments": [433000000.0, 433000000.0, 735000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 74.79, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 48.2, "min": 14.5, "max": 120.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 27.5, "min": 2.0, "max": 52.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 154.2, "min": 97.2, "max": 224.4, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 11.4, "min": 3.4, "max": 19.3, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 46.3, "min": 30.8, "max": 69.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008232 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 74.79, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 48.2, \"min\": 14.5, \"max\": 120.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 27.5, \"min\": 2.0, \"max\": 52.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 154.2, \"min\": 97.2, \"max\": 224.4, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 11.4, \"min\": 3.4, \"max\": 19.3, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 46.3, \"min\": 30.8, \"max\": 69.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad129_0829", "family": "flanged", "tier": 1, "seed": 2468008233, "symmetry": "radial", "op_count": 2, "ir_hash": "467c3c8cd7da2f83", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22300.0, "surface_area": 9210.0, "principal_moments": [4670000.0, 4950000.0, 4950000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 26.29, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 33.9, "min": 10.2, "max": 84.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 9.0, "min": 2.0, "max": 18.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 57.5, "min": 34.2, "max": 78.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.1, "min": 0.9, "max": 13.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 17.2, "min": 11.5, "max": 25.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008233 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 26.29, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 33.9, \"min\": 10.2, \"max\": 84.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 9.0, \"min\": 2.0, \"max\": 18.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 57.5, \"min\": 34.2, \"max\": 78.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.1, \"min\": 0.9, \"max\": 13.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 17.2, \"min\": 11.5, \"max\": 25.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad12a_0830", "family": "bracket", "tier": 1, "seed": 2468008234, "symmetry": "none", "op_count": 1, "ir_hash": "2ac1e7e6ff7c6eed", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 70200.0, "surface_area": 31200.0, "principal_moments": [65599999.99999999, 116000000.0, 139000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 89.02, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 77.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 60.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008234 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 89.02, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 77.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 60.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad12b_0831", "family": "block", "tier": 2, "seed": 2468008235, "symmetry": "radial", "op_count": 3, "ir_hash": "96c8f1fef5e7184a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 115000.0, "surface_area": 20400.0, "principal_moments": [44500000.0, 56299999.99999999, 83100000.0], "n_faces": 28, "n_edges": 78, "n_vertices": 52}, "params": {"block_w": {"type": "float", "default": 59.96, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 31.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 70.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 18.0, "min": 12.0, "max": 27.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008235 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 59.96, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 31.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 70.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 18.0, \"min\": 12.0, \"max\": 27.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.10213499602850429)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad12d_0833", "family": "bracket", "tier": 1, "seed": 2468008237, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "86b15b36979889ed", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13000.0, "surface_area": 5110.0, "principal_moments": [1330000.0, 4410000.0, 4830000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 51.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 38.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20.26, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 8.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008237 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 51.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 38.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20.26, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 8.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad12f_0835", "family": "compound", "tier": 1, "seed": 2468008239, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "74ec63c1971949c3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 48100.0, "surface_area": 9350.0, "principal_moments": [8900000.0, 11799999.999999998, 13599999.999999998], "n_faces": 14, "n_edges": 33, "n_vertices": 21}, "params": {"block_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 29.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 36.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 6.5, "min": 2.6, "max": 13.3, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 8.9, "min": 1.6, "max": 19.5, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 3.4, "min": 2.0, "max": 4.7, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008239 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 29.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 36.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 6.5, \"min\": 2.6, \"max\": 13.3, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 8.9, \"min\": 1.6, \"max\": 19.5, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 3.4, \"min\": 2.0, \"max\": 4.7, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad130_0836", "family": "block", "tier": 1, "seed": 2468008240, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "8b9561432d7832cb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 297000.0, "surface_area": 34500.0, "principal_moments": [180000000.0, 256000000.0, 274000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 63.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 57.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 7.7, "min": 2.0, "max": 16.9, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008240 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 63.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 57.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 7.7, \"min\": 2.0, \"max\": 16.9, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad132_0838", "family": "revolved", "tier": 1, "seed": 2468008242, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "0f43d05b36a842b4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1020.0, "surface_area": 877.0, "principal_moments": [8430.0, 55100.0, 55100.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 7.72, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 24.5, "min": 7.3, "max": 73.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 2.6, "min": 2.0, "max": 5.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008242 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 7.72, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 24.5, \"min\": 7.3, \"max\": 73.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 2.6, \"min\": 2.0, \"max\": 5.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad133_0839", "family": "enclosure", "tier": 2, "seed": 2468008243, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "5a77f15eb9f2f9f2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 57100.0, "surface_area": 41900.0, "principal_moments": [62699999.99999999, 65899999.99999999, 98099999.99999999], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 82.39, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 79.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 50.5, "min": 20.2, "max": 101.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.7, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008243 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 82.39, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 79.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 50.5, \"min\": 20.2, \"max\": 101.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.7, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.11548575247404241)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad134_0840", "family": "profiled", "tier": 0, "seed": 2468008244, "symmetry": "none", "op_count": 1, "ir_hash": "cdb19d0b06d6c055", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 77500.0, "surface_area": 13100.0, "principal_moments": [7270000.0, 117000000.0, 117000000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"circ_r": {"type": "float", "default": 15, "min": 7.5, "max": 30.0, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 132.6, "min": 39.8, "max": 397.8, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008244 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 15, \"min\": 7.5, \"max\": 30.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 132.6, \"min\": 39.8, \"max\": 397.8, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad135_0841", "family": "block", "tier": 2, "seed": 2468008245, "symmetry": "none", "op_count": 3, "ir_hash": "eccaa69ee5e9120e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 102000.0, "surface_area": 20100.0, "principal_moments": [26899999.999999996, 65699999.99999999, 81700000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 25.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 84.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.2, "min": 2.0, "max": 2.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008245 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 25.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 84.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 2.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 9.4\n _ssy = 10.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.050682931710571505)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad136_0842", "family": "bracket", "tier": 2, "seed": 2468008246, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "8bb57bedaba76838", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 66200.0, "surface_area": 19300.0, "principal_moments": [27199999.999999996, 70400000.0, 72400000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 75, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 83.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 11.5, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008246 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 83.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 11.5, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad138_0844", "family": "gear", "tier": 1, "seed": 2468008248, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "0bbb30342e54b409", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 90800.0, "surface_area": 20700.0, "principal_moments": [46399999.99999999, 46399999.99999999, 88900000.0], "n_faces": 177, "n_edges": 525, "n_vertices": 350}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 29, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 15.9, "min": 6.4, "max": 39.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 14.8, "min": 2.0, "max": 47.7, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008248 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 29, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 15.9, \"min\": 6.4, \"max\": 39.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 14.8, \"min\": 2.0, \"max\": 47.7, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad13a_0846", "family": "compound", "tier": 1, "seed": 2468008250, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "21a0e270bd03a3f8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 36600.0, "surface_area": 8360.0, "principal_moments": [5930000.0, 8520000.0, 8520000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 36.36, "min": 18.2, "max": 65.4, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 33.7, "min": 13.5, "max": 67.4, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 17.5, "min": 8.8, "max": 32.7, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 19.8, "min": 5.9, "max": 49.5, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 8.7, "min": 2.0, "max": 12.6, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008250 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 36.36, \"min\": 18.2, \"max\": 65.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 33.7, \"min\": 13.5, \"max\": 67.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 17.5, \"min\": 8.8, \"max\": 32.7, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 19.8, \"min\": 5.9, \"max\": 49.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 8.7, \"min\": 2.0, \"max\": 12.6, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad13c_0848", "family": "bracket", "tier": 2, "seed": 2468008252, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "f0f26420851e8927", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13100.0, "surface_area": 10100.0, "principal_moments": [4970000.0, 15999999.999999998, 20100000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 84.23, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 59.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20.15, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 8.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.0, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008252 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 84.23, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 59.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20.15, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 8.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad13d_0849", "family": "flanged", "tier": 2, "seed": 2468008253, "symmetry": "none", "op_count": 2, "ir_hash": "76813947a38f30f7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41800.0, "surface_area": 14600.0, "principal_moments": [14599999.999999998, 14599999.999999998, 18800000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 31.71, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 36.8, "min": 11.0, "max": 92.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 14.1, "min": 2.0, "max": 22.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 74.3, "min": 41.2, "max": 95.1, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.4, "min": 1.6, "max": 14.7, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 22.3, "min": 14.9, "max": 33.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008253 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 31.71, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 36.8, \"min\": 11.0, \"max\": 92.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 14.1, \"min\": 2.0, \"max\": 22.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 74.3, \"min\": 41.2, \"max\": 95.1, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.4, \"min\": 1.6, \"max\": 14.7, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 22.3, \"min\": 14.9, \"max\": 33.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad13e_0850", "family": "flanged", "tier": 1, "seed": 2468008254, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3e5b40d1892daeb9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 56200.0, "surface_area": 17600.0, "principal_moments": [20900000.0, 20900000.0, 26899999.999999996], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 40, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 36.4, "min": 10.9, "max": 91.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 14.6, "min": 2.0, "max": 28.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 83.9, "min": 52.0, "max": 120.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.9, "min": 1.2, "max": 14.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 25.2, "min": 16.8, "max": 37.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008254 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 36.4, \"min\": 10.9, \"max\": 91.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 14.6, \"min\": 2.0, \"max\": 28.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 83.9, \"min\": 52.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.9, \"min\": 1.2, \"max\": 14.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 25.2, \"min\": 16.8, \"max\": 37.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad13f_0851", "family": "revolved", "tier": 0, "seed": 2468008255, "symmetry": "none", "op_count": 1, "ir_hash": "6908aa6fd58f7f07", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 40500.0, "surface_area": 9970.0, "principal_moments": [10400000.0, 10400000.0, 17200000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 53.21, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 27.3, "min": 8.2, "max": 81.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008255 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 53.21, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 27.3, \"min\": 8.2, \"max\": 81.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad140_0852", "family": "revolved", "tier": 1, "seed": 2468008256, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "e523b15e9353c0e6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 530000.0, "surface_area": 77000.0, "principal_moments": [336000000.0, 1980000000.0, 1980000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 65, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 239.8, "min": 71.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008256 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 239.8, \"min\": 71.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad141_0853", "family": "revolved", "tier": 2, "seed": 2468008257, "symmetry": "none", "op_count": 1, "ir_hash": "ae7cb1a6f1117692", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 910.0, "surface_area": 809.0, "principal_moments": [19900.0, 19900.0, 25200.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 13.04, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 9.8, "min": 2.9, "max": 29.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 7.2, "min": 2.0, "max": 9.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008257 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 13.04, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 9.8, \"min\": 2.9, \"max\": 29.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 7.2, \"min\": 2.0, \"max\": 9.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad142_0854", "family": "plate", "tier": 2, "seed": 2468008258, "symmetry": "radial", "op_count": 3, "ir_hash": "94fcbc3c1b0592b8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7100.0, "surface_area": 5940.0, "principal_moments": [1140000.0, 2240000.0, 3370000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 43.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 18.0, "min": 12.0, "max": 27.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008258 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 43.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 18.0, \"min\": 12.0, \"max\": 27.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.04587485619244726)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad143_0855", "family": "flanged", "tier": 2, "seed": 2468008259, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "787e108deddc66f9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 186000.0, "surface_area": 37800.0, "principal_moments": [161000000.0, 161000000.0, 239000000.0], "n_faces": 26, "n_edges": 57, "n_vertices": 34}, "params": {"outer_d": {"type": "float", "default": 60, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 50.3, "min": 15.1, "max": 125.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 29.3, "min": 2.0, "max": 42.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 119.6, "min": 78.0, "max": 180.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.8, "min": 2.9, "max": 20.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 35.9, "min": 23.9, "max": 53.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008259 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 50.3, \"min\": 15.1, \"max\": 125.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 29.3, \"min\": 2.0, \"max\": 42.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 119.6, \"min\": 78.0, \"max\": 180.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.8, \"min\": 2.9, \"max\": 20.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 35.9, \"min\": 23.9, \"max\": 53.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"head_sides\"], p[\"head_r\"] * 2).extrude(p[\"head_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad146_0858", "family": "compound", "tier": 1, "seed": 2468008262, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "29abc9e98d1fdd61", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 53900.0, "surface_area": 8850.0, "principal_moments": [6400000.0, 26599999.999999996, 26599999.999999996], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 32.39, "min": 16.2, "max": 58.3, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 53.5, "min": 21.4, "max": 107.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 22.4, "min": 11.2, "max": 29.2, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 25.0, "min": 7.5, "max": 62.5, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008262 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 32.39, \"min\": 16.2, \"max\": 58.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 53.5, \"min\": 21.4, \"max\": 107.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 22.4, \"min\": 11.2, \"max\": 29.2, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 7.5, \"max\": 62.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad147_0859", "family": "block", "tier": 2, "seed": 2468008263, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "fc8ed87ce904c36c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 622000.0, "surface_area": 52700.0, "principal_moments": [675000000.0, 775000000.0, 937000000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"block_w": {"type": "float", "default": 90, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 70.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008263 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 90, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 70.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 16.9\n _ssy = 13.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.07234914631088285)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad149_0861", "family": "threaded", "tier": 2, "seed": 2468008265, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "28c7285794ac5df6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16300.0, "surface_area": 7920.0, "principal_moments": [1200000.0, 5470000.0, 5470000.0], "n_faces": 411, "n_edges": 1157, "n_vertices": 748}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 60.0, "min": 24.0, "max": 120.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008265 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 60.0, \"min\": 24.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad14b_0863", "family": "compound", "tier": 2, "seed": 2468008267, "symmetry": "mirror_xy", "op_count": 5, "ir_hash": "3e712932a6348cfb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 498000.0, "surface_area": 49900.0, "principal_moments": [470000000.0, 539000000.0, 683000000.0], "n_faces": 36, "n_edges": 94, "n_vertices": 61}, "params": {"block_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 92.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 63.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 10.7, "min": 5.3, "max": 14.2, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 20.9, "min": 4.6, "max": 55.6, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 7.8, "min": 2.0, "max": 13.3, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008267 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 92.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 63.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 10.7, \"min\": 5.3, \"max\": 14.2, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 20.9, \"min\": 4.6, \"max\": 55.6, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 7.8, \"min\": 2.0, \"max\": 13.3, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad14c_0864", "family": "threaded", "tier": 1, "seed": 2468008268, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "62b8aaa8129be7ad", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 64600.0, "surface_area": 16900.0, "principal_moments": [19000000.0, 28799999.999999996, 28799999.999999996], "n_faces": 316, "n_edges": 902, "n_vertices": 588}, "params": {"major_d": {"type": "float", "default": 24.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 3.0, "min": 1.5, "max": 6.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 60.0, "min": 24.0, "max": 120.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008268 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 24.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.5, \"max\": 6.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 60.0, \"min\": 24.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad14d_0865", "family": "bracket", "tier": 2, "seed": 2468008269, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "84bdb14a1c041a1f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41300.0, "surface_area": 13100.0, "principal_moments": [9990000.0, 40600000.0, 42600000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 56.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35.15, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 9.1, "min": 4.0, "max": 17.6, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008269 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 56.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35.15, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 9.1, \"min\": 4.0, \"max\": 17.6, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad14e_0866", "family": "bracket", "tier": 2, "seed": 2468008270, "symmetry": "none", "op_count": 1, "ir_hash": "edda3905ee36dc27", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20200.0, "surface_area": 14600.0, "principal_moments": [7140000.0, 16199999.999999998, 17000000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 60, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 69.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.0, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008270 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 60, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 69.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad151_0869", "family": "revolved", "tier": 0, "seed": 2468008273, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "8ec693b6077860ca", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38300.0, "surface_area": 12300.0, "principal_moments": [5170000.0, 17600000.0, 17600000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 30, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 81.2, "min": 24.4, "max": 243.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008273 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 81.2, \"min\": 24.4, \"max\": 243.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad152_0870", "family": "plate", "tier": 1, "seed": 2468008274, "symmetry": "none", "op_count": 2, "ir_hash": "21db892f84a9763a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4660.0, "surface_area": 2410.0, "principal_moments": [112000.0, 651000.0, 714000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"plate_w": {"type": "float", "default": 40, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 15.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 1.6, "min": 2.0, "max": 1.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008274 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 15.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.6, \"min\": 2.0, \"max\": 1.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 7.5\n _ssy = 8.0\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad153_0871", "family": "revolved", "tier": 2, "seed": 2468008275, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "db3a7d36da5a5386", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 97800.0, "surface_area": 20600.0, "principal_moments": [16299999.999999998, 143000000.0, 143000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 33.91, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 128.7, "min": 38.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 13.5, "min": 2.0, "max": 23.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 1.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008275 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 33.91, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 128.7, \"min\": 38.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 13.5, \"min\": 2.0, \"max\": 23.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 1.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad157_0875", "family": "gear", "tier": 2, "seed": 2468008279, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "b4d1212533be1df9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 940.0, "surface_area": 1050.0, "principal_moments": [26200.0, 26200.0, 50900.0], "n_faces": 171, "n_edges": 507, "n_vertices": 338}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 21, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 3.0, "min": 1.2, "max": 7.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": -0.28, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.12, "min": 0.0, "max": 0.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 3.1, "min": 2.0, "max": 11.1, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008279 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 21, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.2, \"max\": 7.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.28, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.12, \"min\": 0.0, \"max\": 0.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 3.1, \"min\": 2.0, \"max\": 11.1, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad158_0876", "family": "gear", "tier": 1, "seed": 2468008280, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "6dbf5b879fee316f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7350.0, "surface_area": 3900.0, "principal_moments": [709000.0, 709000.0, 1360000.0], "n_faces": 231, "n_edges": 687, "n_vertices": 458}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 38, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.7, "min": 2.7, "max": 16.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 6.0, "min": 2.0, "max": 21.3, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008280 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 38, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.7, \"min\": 2.7, \"max\": 16.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 21.3, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad159_0877", "family": "bracket", "tier": 1, "seed": 2468008281, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "5059517a04e31b82", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20700.0, "surface_area": 6860.0, "principal_moments": [3290000.0, 3930000.0, 4890000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008281 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad15a_0878", "family": "revolved", "tier": 1, "seed": 2468008282, "symmetry": "none", "op_count": 2, "ir_hash": "c2fec8eb2743f674", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1630000.0, "surface_area": 116000.0, "principal_moments": [3030000000.0, 8930000000.0, 8930000000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 73.73, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 235.5, "min": 70.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 24.0, "min": 2.0, "max": 51.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 143.0, "min": 88.5, "max": 221.2, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 61.8, "min": 18.5, "max": 117.8, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.3, "min": 0.1, "max": 3.9, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008282 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 73.73, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 235.5, \"min\": 70.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 24.0, \"min\": 2.0, \"max\": 51.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 143.0, \"min\": 88.5, \"max\": 221.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 61.8, \"min\": 18.5, \"max\": 117.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.3, \"min\": 0.1, \"max\": 3.9, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad15c_0880", "family": "revolved", "tier": 0, "seed": 2468008284, "symmetry": "none", "op_count": 1, "ir_hash": "146a6c4a924402c9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 142000.0, "surface_area": 23000.0, "principal_moments": [79700000.0, 79700000.0, 120000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 48.3, "min": 14.5, "max": 144.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008284 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 48.3, \"min\": 14.5, \"max\": 144.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad15d_0881", "family": "bracket", "tier": 1, "seed": 2468008285, "symmetry": "none", "op_count": 1, "ir_hash": "b421fb4546183ed8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14300.0, "surface_area": 10600.0, "principal_moments": [3350000.0, 7310000.0, 9080000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 41.67, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 38.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 46.09, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 30.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008285 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 41.67, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 38.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 46.09, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 30.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad160_0884", "family": "flanged", "tier": 2, "seed": 2468008288, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "4848bbc3f897abf2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 114000.0, "surface_area": 27300.0, "principal_moments": [70400000.0, 76000000.0, 76000000.0], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 50.81, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 59.8, "min": 17.9, "max": 149.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 25.9, "min": 2.0, "max": 35.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 90.0, "min": 66.1, "max": 152.4, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.1, "min": 1.8, "max": 23.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 27.0, "min": 18.0, "max": 40.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008288 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50.81, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 59.8, \"min\": 17.9, \"max\": 149.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 25.9, \"min\": 2.0, \"max\": 35.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 90.0, \"min\": 66.1, \"max\": 152.4, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.1, \"min\": 1.8, \"max\": 23.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 27.0, \"min\": 18.0, \"max\": 40.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad161_0885", "family": "revolved", "tier": 1, "seed": 2468008289, "symmetry": "none", "op_count": 2, "ir_hash": "f869617742c979a1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 71000.0, "surface_area": 14400.0, "principal_moments": [11899999.999999998, 50899999.99999999, 50899999.99999999], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 34.52, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 87.2, "min": 26.2, "max": 261.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 12.4, "min": 2.0, "max": 24.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.1, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008289 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 34.52, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 87.2, \"min\": 26.2, \"max\": 261.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 12.4, \"min\": 2.0, \"max\": 24.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.1, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad163_0887", "family": "revolved", "tier": 1, "seed": 2468008291, "symmetry": "radial", "op_count": 1, "ir_hash": "20840b29ac403dfa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 356000.0, "surface_area": 51400.0, "principal_moments": [335000000.0, 610000000.0, 610000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 122.2, "min": 36.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 43.8, "min": 2.0, "max": 52.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008291 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 122.2, \"min\": 36.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 43.8, \"min\": 2.0, \"max\": 52.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad165_0889", "family": "revolved", "tier": 0, "seed": 2468008293, "symmetry": "none", "op_count": 1, "ir_hash": "c3fa4b4a1765875c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16800.0, "surface_area": 5900.0, "principal_moments": [2270000.0, 2410000.0, 2410000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 30, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 35.7, "min": 10.7, "max": 107.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008293 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 35.7, \"min\": 10.7, \"max\": 107.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad166_0890", "family": "revolved", "tier": 1, "seed": 2468008294, "symmetry": "radial", "op_count": 1, "ir_hash": "1aa1c02a4d3bc14e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 615000.0, "surface_area": 83000.0, "principal_moments": [505000000.0, 2200000000.0, 2200000000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 65.65, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 224.6, "min": 67.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 94.2, "min": 78.8, "max": 197.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 30.1, "min": 9.0, "max": 112.3, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008294 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65.65, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 224.6, \"min\": 67.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 94.2, \"min\": 78.8, \"max\": 197.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 30.1, \"min\": 9.0, \"max\": 112.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad167_0891", "family": "bracket", "tier": 1, "seed": 2468008295, "symmetry": "none", "op_count": 1, "ir_hash": "44889404551367b8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23800.0, "surface_area": 9780.0, "principal_moments": [6520000.0, 7250000.0, 7530000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 36.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 41.28, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008295 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 36.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 41.28, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad168_0892", "family": "compound", "tier": 1, "seed": 2468008296, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "88e2b472dce14082", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4480.0, "surface_area": 2280.0, "principal_moments": [134000.0, 424000.0, 424000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 16.01, "min": 8.0, "max": 28.8, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 18.4, "min": 7.4, "max": 36.8, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 10.2, "min": 5.1, "max": 14.4, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 15.9, "min": 4.8, "max": 39.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 4.4, "min": 2.0, "max": 7.3, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008296 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 16.01, \"min\": 8.0, \"max\": 28.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 18.4, \"min\": 7.4, \"max\": 36.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 10.2, \"min\": 5.1, \"max\": 14.4, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 15.9, \"min\": 4.8, \"max\": 39.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 4.4, \"min\": 2.0, \"max\": 7.3, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad169_0893", "family": "bracket", "tier": 2, "seed": 2468008297, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "9ddfc96bf039af80", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12100.0, "surface_area": 8960.0, "principal_moments": [3110000.0, 4170000.0, 6040000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 32.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.0, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008297 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 32.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad16a_0894", "family": "block", "tier": 1, "seed": 2468008298, "symmetry": "none", "op_count": 2, "ir_hash": "e00c31cd2bf5ba7a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 199000.0, "surface_area": 25400.0, "principal_moments": [94199999.99999999, 126000000.0, 155000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 44.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 61.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008298 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 44.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 61.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 18.8\n _ssy = 21.5\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad16c_0896", "family": "compound", "tier": 1, "seed": 2468008300, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "c2f319d92e5d66a0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 59400.0, "surface_area": 20500.0, "principal_moments": [42500000.0, 74600000.0, 83300000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"base_w": {"type": "float", "default": 90, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 72.9, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 6.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 16.4, "min": 6.6, "max": 36.5, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 101.2, "min": 30.4, "max": 303.6, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008300 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 90, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 72.9, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 16.4, \"min\": 6.6, \"max\": 36.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 101.2, \"min\": 30.4, \"max\": 303.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad16d_0897", "family": "compound", "tier": 1, "seed": 2468008301, "symmetry": "none", "op_count": 3, "ir_hash": "1229da8fe7290281", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 103000.0, "surface_area": 14800.0, "principal_moments": [35800000.0, 36000000.0, 51799999.99999999], "n_faces": 28, "n_edges": 76, "n_vertices": 50}, "params": {"block_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 34.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 54.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 3.5, "min": 1.8, "max": 7.7, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 9.0, "min": 1.6, "max": 19.4, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 2.8, "min": 2.0, "max": 4.7, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008301 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 34.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 54.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 3.5, \"min\": 1.8, \"max\": 7.7, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 9.0, \"min\": 1.6, \"max\": 19.4, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 2.8, \"min\": 2.0, \"max\": 4.7, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad16f_0899", "family": "compound", "tier": 1, "seed": 2468008303, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "62d1d6b6487da1d2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20600.0, "surface_area": 5140.0, "principal_moments": [2200000.0, 2930000.0, 3060000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 33.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 24.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 7.3, "min": 2.9, "max": 17.2, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 10.6, "min": 2.2, "max": 29.2, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 3.4, "min": 2.0, "max": 5.3, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008303 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 33.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 24.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 7.3, \"min\": 2.9, \"max\": 17.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 10.6, \"min\": 2.2, \"max\": 29.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 3.4, \"min\": 2.0, \"max\": 5.3, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad174_0904", "family": "flanged", "tier": 2, "seed": 2468008308, "symmetry": "none", "op_count": 2, "ir_hash": "21dfccd5b7cfd09e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 733000.0, "surface_area": 95900.0, "principal_moments": [1550000000.0, 1760000000.0, 1760000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 91.03, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 115.5, "min": 34.6, "max": 288.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 46.1, "min": 2.0, "max": 63.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 171.3, "min": 118.3, "max": 273.1, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 10.6, "min": 3.2, "max": 46.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 51.4, "min": 34.3, "max": 77.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008308 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 91.03, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 115.5, \"min\": 34.6, \"max\": 288.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 46.1, \"min\": 2.0, \"max\": 63.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 171.3, \"min\": 118.3, \"max\": 273.1, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 10.6, \"min\": 3.2, \"max\": 46.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 51.4, \"min\": 34.3, \"max\": 77.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad175_0905", "family": "block", "tier": 1, "seed": 2468008309, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "661eb934abcd6379", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20400.0, "surface_area": 8420.0, "principal_moments": [2000000.0, 3380000.0, 4110000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 30, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 20.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 40.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008309 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 20.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 40.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad176_0906", "family": "compound", "tier": 1, "seed": 2468008310, "symmetry": "none", "op_count": 3, "ir_hash": "ccade8246d3b2a91", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 66900.0, "surface_area": 13800.0, "principal_moments": [17500000.0, 34000000.0, 37200000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"base_w": {"type": "float", "default": 72.16, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 44.7, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 20.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 10.6, "min": 4.2, "max": 22.4, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 46.6, "min": 14.0, "max": 139.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 10.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008310 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 72.16, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 44.7, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 20.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 10.6, \"min\": 4.2, \"max\": 22.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 46.6, \"min\": 14.0, \"max\": 139.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 10.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad177_0907", "family": "block", "tier": 1, "seed": 2468008311, "symmetry": "radial", "op_count": 2, "ir_hash": "bdbfa5296e184aa6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 375000.0, "surface_area": 51200.0, "principal_moments": [343000000.0, 370000000.0, 597000000.0], "n_faces": 20, "n_edges": 54, "n_vertices": 36}, "params": {"block_w": {"type": "float", "default": 95, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 43.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 28.5, "min": 19.0, "max": 42.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008311 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 95, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 43.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 28.5, \"min\": 19.0, \"max\": 42.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad178_0908", "family": "block", "tier": 1, "seed": 2468008312, "symmetry": "radial", "op_count": 2, "ir_hash": "754b03740b700796", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8240.0, "surface_area": 6630.0, "principal_moments": [717000.0, 977000.0, 1190000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"block_w": {"type": "float", "default": 28.49, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 19.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 26.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 8.5, "min": 5.7, "max": 12.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008312 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 28.49, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 19.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 26.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 8.5, \"min\": 5.7, \"max\": 12.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad179_0909", "family": "block", "tier": 2, "seed": 2468008313, "symmetry": "none", "op_count": 3, "ir_hash": "179123352e929283", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 202000.0, "surface_area": 30900.0, "principal_moments": [95599999.99999999, 184000000.0, 250000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 30.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 9.6, "min": 4.8, "max": 19.2, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 5.9, "min": 2.4, "max": 14.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008313 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 30.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 9.6, \"min\": 4.8, \"max\": 19.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 5.9, \"min\": 2.4, \"max\": 14.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad17a_0910", "family": "gear", "tier": 1, "seed": 2468008314, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "794c348c673680e2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25900.0, "surface_area": 8610.0, "principal_moments": [4960000.0, 4960000.0, 9200000.0], "n_faces": 159, "n_edges": 471, "n_vertices": 314}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 26, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 12.9, "min": 5.2, "max": 32.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 10.8, "min": 2.0, "max": 28.2, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008314 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 26, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 12.9, \"min\": 5.2, \"max\": 32.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 10.8, \"min\": 2.0, \"max\": 28.2, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad17c_0912", "family": "flanged", "tier": 1, "seed": 2468008316, "symmetry": "none", "op_count": 2, "ir_hash": "4ca60ed6c828095b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13800.0, "surface_area": 6320.0, "principal_moments": [2110000.0, 2190000.0, 2190000.0], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 21.87, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 28.9, "min": 8.7, "max": 72.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 6.8, "min": 2.0, "max": 15.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 46.3, "min": 28.4, "max": 65.6, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.9, "min": 1.2, "max": 11.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 13.9, "min": 9.3, "max": 20.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008316 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 21.87, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 28.9, \"min\": 8.7, \"max\": 72.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 6.8, \"min\": 2.0, \"max\": 15.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 46.3, \"min\": 28.4, \"max\": 65.6, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.9, \"min\": 1.2, \"max\": 11.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 13.9, \"min\": 9.3, \"max\": 20.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad17d_0913", "family": "ribbed", "tier": 2, "seed": 2468008317, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "8f13cb4be4992c84", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33900.0, "surface_area": 21100.0, "principal_moments": [12099999.999999998, 21500000.0, 31399999.999999996], "n_faces": 54, "n_edges": 148, "n_vertices": 92}, "params": {"base_w": {"type": "float", "default": 86.43, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 47.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 15.3, "min": 6.1, "max": 30.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.2, "min": 1.0, "max": 10.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 10.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008317 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 86.43, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 47.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 15.3, \"min\": 6.1, \"max\": 30.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.2, \"min\": 1.0, \"max\": 10.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 10.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad17e_0914", "family": "plate", "tier": 1, "seed": 2468008318, "symmetry": "none", "op_count": 2, "ir_hash": "0e4dc6a7e3591033", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22800.0, "surface_area": 11100.0, "principal_moments": [4370000.0, 18000000.0, 22300000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 98.24, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 47.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008318 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 98.24, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 47.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(78.6, 12.7, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad17f_0915", "family": "block", "tier": 1, "seed": 2468008319, "symmetry": "none", "op_count": 2, "ir_hash": "2359ee3106872693", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 520000.0, "surface_area": 51900.0, "principal_moments": [517000000.0, 574000000.0, 665000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 71.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 91.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008319 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 71.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 91.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad180_0916", "family": "threaded", "tier": 0, "seed": 2468008320, "symmetry": "none", "op_count": 1, "ir_hash": "46f4ac0c7e4786df", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 120.0, "surface_area": 232.0, "principal_moments": [196.0, 1520.0, 1520.0], "n_faces": 180, "n_edges": 458, "n_vertices": 280}, "params": {"major_d": {"type": "float", "default": 4.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.7, "min": 0.35, "max": 1.4, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 12.0, "min": 5.0, "max": 24.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008320 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.35, \"max\": 1.4, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 12.0, \"min\": 5.0, \"max\": 24.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad181_0917", "family": "enclosure", "tier": 1, "seed": 2468008321, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "43119b584d7082d3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 96200.0, "surface_area": 47100.0, "principal_moments": [74500000.0, 153000000.0, 164000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 105, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 47.3, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 66.5, "min": 26.6, "max": 133.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008321 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 105, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 47.3, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 66.5, \"min\": 26.6, \"max\": 133.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad182_0918", "family": "revolved", "tier": 2, "seed": 2468008322, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "c86b9c76abecdc49", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 227000.0, "surface_area": 38500.0, "principal_moments": [67600000.0, 614000000.0, 614000000.0], "n_faces": 8, "n_edges": 12, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 45.26, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 174.4, "min": 52.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 18.9, "min": 2.0, "max": 31.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 3.29, "min": 1.32, "max": 9.87, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 10.83, "min": 4.33, "max": 32.49, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 124.1, "min": 26.2, "max": 148.2, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008322 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45.26, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 174.4, \"min\": 52.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 18.9, \"min\": 2.0, \"max\": 31.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 3.29, \"min\": 1.32, \"max\": 9.87, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 10.83, \"min\": 4.33, \"max\": 32.49, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 124.1, \"min\": 26.2, \"max\": 148.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad183_0919", "family": "revolved", "tier": 1, "seed": 2468008323, "symmetry": "none", "op_count": 2, "ir_hash": "441a738c7df76415", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32500.0, "surface_area": 10400.0, "principal_moments": [3750000.0, 17100000.0, 17100000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 27.15, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 75.0, "min": 22.5, "max": 225.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 13.6, "min": 2.0, "max": 19.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 1.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008323 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 27.15, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 75.0, \"min\": 22.5, \"max\": 225.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 13.6, \"min\": 2.0, \"max\": 19.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 1.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rarray(60.0, 10.1, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad185_0921", "family": "flanged", "tier": 1, "seed": 2468008325, "symmetry": "radial", "op_count": 2, "ir_hash": "7c0e2c1f967601a1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 62500.0, "surface_area": 19200.0, "principal_moments": [27399999.999999996, 27399999.999999996, 38900000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 36.98, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 37.1, "min": 11.1, "max": 92.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 12.8, "min": 2.0, "max": 25.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 88.5, "min": 48.1, "max": 110.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.7, "min": 1.7, "max": 14.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 26.6, "min": 17.7, "max": 39.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008325 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 36.98, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 37.1, \"min\": 11.1, \"max\": 92.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 12.8, \"min\": 2.0, \"max\": 25.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 88.5, \"min\": 48.1, \"max\": 110.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.7, \"min\": 1.7, \"max\": 14.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 26.6, \"min\": 17.7, \"max\": 39.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad187_0923", "family": "bracket", "tier": 2, "seed": 2468008327, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "4bc9d36a1086cb1e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18800.0, "surface_area": 8910.0, "principal_moments": [4260000.0, 6500000.0, 8070000.0], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 42.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 43.88, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.9, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008327 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 42.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 43.88, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.9, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad188_0924", "family": "revolved", "tier": 1, "seed": 2468008328, "symmetry": "none", "op_count": 2, "ir_hash": "df914557e31a6574", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32300.0, "surface_area": 9980.0, "principal_moments": [4660000.0, 10200000.0, 10200000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 31.03, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 64.2, "min": 19.3, "max": 192.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.1, "min": 0.1, "max": 3.3, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008328 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 31.03, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 64.2, \"min\": 19.3, \"max\": 192.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.1, \"min\": 0.1, \"max\": 3.3, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad18b_0927", "family": "plate", "tier": 2, "seed": 2468008331, "symmetry": "radial", "op_count": 3, "ir_hash": "952dfc1d76d0f8eb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 40300.0, "surface_area": 11300.0, "principal_moments": [9750000.0, 22200000.0, 31299999.999999996], "n_faces": 20, "n_edges": 54, "n_vertices": 36}, "params": {"plate_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 53.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.0, "min": 16.0, "max": 36.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008331 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 53.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.0, \"min\": 16.0, \"max\": 36.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09483475032074185)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad18c_0928", "family": "bracket", "tier": 2, "seed": 2468008332, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "21e40ae2556bb3d6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10000.0, "surface_area": 4140.0, "principal_moments": [825000.0, 2450000.0, 2860000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 40, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 43.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 15.9, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 6.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 7.1, "min": 4.0, "max": 8.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008332 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 40, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 43.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 15.9, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 6.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 7.1, \"min\": 4.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad18d_0929", "family": "block", "tier": 1, "seed": 2468008333, "symmetry": "none", "op_count": 2, "ir_hash": "f82e685a0ca3429b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38500.0, "surface_area": 10700.0, "principal_moments": [4810000.0, 14799999.999999998, 17600000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 17.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 65.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008333 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 17.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 65.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad18f_0931", "family": "revolved", "tier": 1, "seed": 2468008335, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "7e9fd48aa8c71396", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6610.0, "surface_area": 2870.0, "principal_moments": [504000.0, 504000.0, 655000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 25.13, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 17.9, "min": 5.4, "max": 53.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 12.7, "min": 2.0, "max": 17.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008335 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25.13, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 17.9, \"min\": 5.4, \"max\": 53.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 12.7, \"min\": 2.0, \"max\": 17.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad190_0932", "family": "revolved", "tier": 1, "seed": 2468008336, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "33b5d185fb43e2a5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 189000.0, "surface_area": 35900.0, "principal_moments": [70800000.0, 268000000.0, 268000000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 50, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 144.2, "min": 43.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.5, "min": 0.1, "max": 1.5, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008336 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 144.2, \"min\": 43.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.5, \"min\": 0.1, \"max\": 1.5, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad193_0935", "family": "enclosure", "tier": 2, "seed": 2468008339, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "5ecf4c29fc736722", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10600.0, "surface_area": 8370.0, "principal_moments": [1860000.0, 2620000.0, 3280000.0], "n_faces": 19, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 40, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 30.4, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 24.0, "min": 9.6, "max": 48.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008339 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 40, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 30.4, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 24.0, \"min\": 9.6, \"max\": 48.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad194_0936", "family": "bracket", "tier": 2, "seed": 2468008340, "symmetry": "none", "op_count": 1, "ir_hash": "53a4eaa1ed73049e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37400.0, "surface_area": 16700.0, "principal_moments": [14099999.999999998, 43400000.0, 49499999.99999999], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 83.98, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 38.39, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 6.0, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008340 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 83.98, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 38.39, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad196_0938", "family": "revolved", "tier": 1, "seed": 2468008342, "symmetry": "radial", "op_count": 1, "ir_hash": "0e7d6214e87d7fd8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4680.0, "surface_area": 2720.0, "principal_moments": [209000.0, 356000.0, 356000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 11.96, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 33.4, "min": 10.0, "max": 100.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 20.7, "min": 14.4, "max": 35.9, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.7, "min": 2.9, "max": 16.7, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008342 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 11.96, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 33.4, \"min\": 10.0, \"max\": 100.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 20.7, \"min\": 14.4, \"max\": 35.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.7, \"min\": 2.9, \"max\": 16.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad197_0939", "family": "compound", "tier": 2, "seed": 2468008343, "symmetry": "none", "op_count": 4, "ir_hash": "87570871f88217fb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 52000.0, "surface_area": 11600.0, "principal_moments": [11699999.999999998, 13299999.999999998, 20100000.0], "n_faces": 22, "n_edges": 66, "n_vertices": 44}, "params": {"block_w": {"type": "float", "default": 45, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 23.5, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 50.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 21.8, "min": 8.7, "max": 34.9, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 36.2, "min": 14.5, "max": 57.9, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.8, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 29.7, "min": 14.8, "max": 36.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 10.9, "min": 5.5, "max": 18.8, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 17.0, "min": 6.8, "max": 42.5, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008343 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 23.5, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 50.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 21.8, \"min\": 8.7, \"max\": 34.9, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 36.2, \"min\": 14.5, \"max\": 57.9, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.8, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 29.7, \"min\": 14.8, \"max\": 36.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 10.9, \"min\": 5.5, \"max\": 18.8, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 17.0, \"min\": 6.8, \"max\": 42.5, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .rect(p[\"tab_a\"], p[\"tab_b\"]).extrude(p[\"tab_t\"])\n )\n result = (\n result.faces('>X').workplane()\n .rect(p[\"tab_a\"] * 0.6, p[\"tab_b\"] * 0.6, forConstruction=True)\n .vertices().hole(p[\"tab_hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad198_0940", "family": "flanged", "tier": 2, "seed": 2468008344, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "ed022f447a02eb05", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 101000.0, "surface_area": 25600.0, "principal_moments": [59699999.99999999, 59699999.99999999, 61499999.99999999], "n_faces": 18, "n_edges": 37, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 45.25, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 53.0, "min": 15.9, "max": 132.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.5, "min": 2.0, "max": 31.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 98.0, "min": 58.8, "max": 135.8, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.7, "min": 1.4, "max": 21.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 29.4, "min": 19.6, "max": 44.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008344 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45.25, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 53.0, \"min\": 15.9, \"max\": 132.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.5, \"min\": 2.0, \"max\": 31.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 98.0, \"min\": 58.8, \"max\": 135.8, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.7, \"min\": 1.4, \"max\": 21.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 29.4, \"min\": 19.6, \"max\": 44.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad19a_0942", "family": "compound", "tier": 1, "seed": 2468008346, "symmetry": "none", "op_count": 3, "ir_hash": "c99caed2442d5511", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 210000.0, "surface_area": 27000.0, "principal_moments": [121000000.0, 125000000.0, 144000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 64.63, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 61.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 53.7, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 38.1, "min": 15.2, "max": 61.0, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 37.1, "min": 14.8, "max": 59.4, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 8.2, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008346 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 64.63, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 61.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 53.7, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 38.1, \"min\": 15.2, \"max\": 61.0, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 37.1, \"min\": 14.8, \"max\": 59.4, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 8.2, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rarray(12.9, 23.5, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad19e_0946", "family": "threaded", "tier": 1, "seed": 2468008350, "symmetry": "none", "op_count": 1, "ir_hash": "e4426d5e4406af2f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 844.0, "surface_area": 999.0, "principal_moments": [10700.0, 27500.0, 27500.0], "n_faces": 183, "n_edges": 497, "n_vertices": 316}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 17.8, "min": 7.1, "max": 35.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008350 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 17.8, \"min\": 7.1, \"max\": 35.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad19f_0947", "family": "revolved", "tier": 0, "seed": 2468008351, "symmetry": "none", "op_count": 1, "ir_hash": "830ce2a8d054b4c6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 302000.0, "surface_area": 51400.0, "principal_moments": [141000000.0, 691000000.0, 691000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 55.7, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 186.0, "min": 55.8, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008351 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55.7, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 186.0, \"min\": 55.8, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad1a0_0948", "family": "plate", "tier": 1, "seed": 2468008352, "symmetry": "none", "op_count": 2, "ir_hash": "a9f9980838b098a6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4710.0, "surface_area": 2440.0, "principal_moments": [126000.0, 430000.0, 478000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"plate_w": {"type": "float", "default": 32.87, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 15.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 1.9, "min": 2.0, "max": 1.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}, "hole_slot_len": {"type": "float", "default": 5.5, "min": 2.8, "max": 8.7, "step": 0.5, "group": "Holes", "label": "Slot length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008352 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 32.87, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 15.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.9, \"min\": 2.0, \"max\": 1.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n \"hole_slot_len\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.8, \"max\": 8.7, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot length (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(26.3, 12.4, p[\"hole_nx\"], p[\"hole_ny\"])\n .slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad1a1_0949", "family": "compound", "tier": 2, "seed": 2468008353, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "be3b03f9b223742b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 70100.0, "surface_area": 27300.0, "principal_moments": [49099999.99999999, 71200000.0, 91399999.99999999], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_w": {"type": "float", "default": 110, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 85.6, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 6.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 22.4, "min": 9.0, "max": 42.8, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 54.3, "min": 16.3, "max": 162.9, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 12.4, "min": 2.0, "max": 16.1, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008353 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 110, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 85.6, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 22.4, \"min\": 9.0, \"max\": 42.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 54.3, \"min\": 16.3, \"max\": 162.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 12.4, \"min\": 2.0, \"max\": 16.1, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad1a2_0950", "family": "block", "tier": 1, "seed": 2468008354, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "7ca837c15b4b822f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 52300.0, "surface_area": 12400.0, "principal_moments": [8850000.0, 20500000.0, 25699999.999999996], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 40, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 20.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 65.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008354 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 20.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 65.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 10.0\n _ssy = 11.9\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad1a3_0951", "family": "compound", "tier": 1, "seed": 2468008355, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "8ef0196370cf5a4f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 406000.0, "surface_area": 36800.0, "principal_moments": [324000000.0, 404000000.0, 419000000.0], "n_faces": 23, "n_edges": 56, "n_vertices": 37}, "params": {"block_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 70.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 67.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 7.2, "min": 3.6, "max": 15.2, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 14.6, "min": 3.1, "max": 37.4, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 7.1, "min": 2.0, "max": 9.0, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008355 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 70.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 67.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 7.2, \"min\": 3.6, \"max\": 15.2, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 14.6, \"min\": 3.1, \"max\": 37.4, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 7.1, \"min\": 2.0, \"max\": 9.0, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad1a4_0952", "family": "flanged", "tier": 1, "seed": 2468008356, "symmetry": "radial", "op_count": 2, "ir_hash": "17821b59bc275a5f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37600.0, "surface_area": 13600.0, "principal_moments": [12199999.999999998, 12199999.999999998, 21700000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 35, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 21.2, "min": 6.4, "max": 53.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 12.1, "min": 2.0, "max": 24.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 78.7, "min": 45.5, "max": 105.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.3, "min": 1.6, "max": 8.5, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 23.6, "min": 15.7, "max": 35.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008356 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 21.2, \"min\": 6.4, \"max\": 53.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 12.1, \"min\": 2.0, \"max\": 24.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 78.7, \"min\": 45.5, \"max\": 105.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.3, \"min\": 1.6, \"max\": 8.5, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 23.6, \"min\": 15.7, \"max\": 35.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad1a6_0954", "family": "bracket", "tier": 1, "seed": 2468008358, "symmetry": "none", "op_count": 1, "ir_hash": "4d399454b16003fa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20400.0, "surface_area": 8340.0, "principal_moments": [5100000.0, 5430000.0, 8270000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 36.88, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 39.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 48.26, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008358 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 36.88, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 39.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 48.26, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad1a8_0956", "family": "block", "tier": 2, "seed": 2468008360, "symmetry": "none", "op_count": 3, "ir_hash": "6acdc04736ebeefd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3120.0, "surface_area": 2610.0, "principal_moments": [115000.0, 189000.0, 270000.0], "n_faces": 15, "n_edges": 48, "n_vertices": 32}, "params": {"block_w": {"type": "float", "default": 18.73, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 7.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 27.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.8, "min": 2.0, "max": 1.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 12.7, "min": 6.3, "max": 15.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 5.4, "min": 2.7, "max": 6.2, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 9.6, "min": 3.8, "max": 23.5, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008360 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 18.73, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 7.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 27.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.8, \"min\": 2.0, \"max\": 1.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 12.7, \"min\": 6.3, \"max\": 15.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 5.4, \"min\": 2.7, \"max\": 6.2, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 9.6, \"min\": 3.8, \"max\": 23.5, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad1a9_0957", "family": "block", "tier": 1, "seed": 2468008361, "symmetry": "radial", "op_count": 2, "ir_hash": "fcf1d39bd2aaaebc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26300.0, "surface_area": 8210.0, "principal_moments": [3330000.0, 4730000.0, 6150000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 32.34, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 21.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 41.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 9.7, "min": 6.5, "max": 14.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008361 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 32.34, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 21.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 41.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 9.7, \"min\": 6.5, \"max\": 14.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad1aa_0958", "family": "plate", "tier": 1, "seed": 2468008362, "symmetry": "none", "op_count": 2, "ir_hash": "af1f332834c34cc8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11500.0, "surface_area": 7120.0, "principal_moments": [1390000.0, 5920000.0, 7280000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 38.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 8.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008362 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 38.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 8.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad1ab_0959", "family": "gear", "tier": 2, "seed": 2468008363, "symmetry": "none", "op_count": 1, "ir_hash": "ebee36f68700743d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 97600.0, "surface_area": 21500.0, "principal_moments": [49499999.99999999, 49499999.99999999, 93699999.99999999], "n_faces": 307, "n_edges": 839, "n_vertices": 496}, "params": {"module": {"type": "float", "default": 4.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 19, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 18.0, "min": 7.2, "max": 45.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 30.0, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": -0.3, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.44, "min": 0.0, "max": 2.0, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 16.5, "min": 2.0, "max": 39.6, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008363 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 19, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 18.0, \"min\": 7.2, \"max\": 45.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 30.0, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.3, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.44, \"min\": 0.0, \"max\": 2.0, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 16.5, \"min\": 2.0, \"max\": 39.6, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=True, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad1ac_0960", "family": "revolved", "tier": 1, "seed": 2468008364, "symmetry": "none", "op_count": 1, "ir_hash": "3266fe8d853b084b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 631000.0, "surface_area": 76500.0, "principal_moments": [606000000.0, 1630000000.0, 1630000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 80.0, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 188.3, "min": 56.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008364 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 80.0, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 188.3, \"min\": 56.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad1ae_0962", "family": "enclosure", "tier": 1, "seed": 2468008366, "symmetry": "none", "op_count": 2, "ir_hash": "1e987672914180ec", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10300.0, "surface_area": 6820.0, "principal_moments": [1180000.0, 2460000.0, 2670000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 42.04, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 23.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 22.2, "min": 8.9, "max": 44.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008366 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 42.04, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 23.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 22.2, \"min\": 8.9, \"max\": 44.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad1af_0963", "family": "block", "tier": 1, "seed": 2468008367, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "913ea29b4bdfe5c6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 676000.0, "surface_area": 60400.0, "principal_moments": [781000000.0, 939000000.0, 968000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 85.9, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 82.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008367 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85.9, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 82.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad1b2_0966", "family": "bracket", "tier": 1, "seed": 2468008370, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "5a43533cb90b2d9b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42500.0, "surface_area": 13400.0, "principal_moments": [14299999.999999998, 25799999.999999996, 29299999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 57.52, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 57.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008370 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 57.52, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 57.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"head_sides\"], p[\"head_r\"] * 2).extrude(p[\"head_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad1b8_0972", "family": "revolved", "tier": 2, "seed": 2468008376, "symmetry": "radial", "op_count": 1, "ir_hash": "986483c7ad108dd3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13600.0, "surface_area": 4330.0, "principal_moments": [945000.0, 2170000.0, 2170000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 22.4, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 38.7, "min": 11.6, "max": 116.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 7.4, "min": 2.0, "max": 15.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008376 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 22.4, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 38.7, \"min\": 11.6, \"max\": 116.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 7.4, \"min\": 2.0, \"max\": 15.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad1b9_0973", "family": "enclosure", "tier": 1, "seed": 2468008377, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "48ec585cc3cc7b27", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33100.0, "surface_area": 14600.0, "principal_moments": [10800000.0, 12899999.999999998, 13499999.999999998], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 45, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 35.3, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 42.4, "min": 17.0, "max": 84.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008377 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 45, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 35.3, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 42.4, \"min\": 17.0, \"max\": 84.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad1ba_0974", "family": "gear", "tier": 2, "seed": 2468008378, "symmetry": "none", "op_count": 1, "ir_hash": "d210397d57ee9bc4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3250.0, "surface_area": 2090.0, "principal_moments": [157000.0, 157000.0, 292000.0], "n_faces": 231, "n_edges": 573, "n_vertices": 344}, "params": {"module": {"type": "float", "default": 1.25, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 19, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.3, "min": 2.5, "max": 15.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 20.2, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.37, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.28, "min": 0.0, "max": 0.62, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 4.6, "min": 2.0, "max": 12.4, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008378 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.25, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 19, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.3, \"min\": 2.5, \"max\": 15.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 20.2, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.37, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.28, \"min\": 0.0, \"max\": 0.62, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 4.6, \"min\": 2.0, \"max\": 12.4, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=True, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad1bb_0975", "family": "threaded", "tier": 0, "seed": 2468008379, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "65b7de09abf756cb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 151.0, "surface_area": 289.0, "principal_moments": [248.0, 2960.0, 2960.0], "n_faces": 220, "n_edges": 564, "n_vertices": 346}, "params": {"major_d": {"type": "float", "default": 4.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.7, "min": 0.35, "max": 1.4, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 15.1, "min": 6.0, "max": 30.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008379 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.35, \"max\": 1.4, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 15.1, \"min\": 6.0, \"max\": 30.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad1bc_0976", "family": "bracket", "tier": 1, "seed": 2468008380, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "44dbd81154a67fe0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41400.0, "surface_area": 16500.0, "principal_moments": [17400000.0, 49199999.99999999, 52499999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 75, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 85.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008380 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 85.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad1be_0978", "family": "gear", "tier": 1, "seed": 2468008382, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ea3b74ae22cb44d0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15100.0, "surface_area": 5840.0, "principal_moments": [1620000.0, 1620000.0, 2510000.0], "n_faces": 87, "n_edges": 255, "n_vertices": 170}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 14, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 16.9, "min": 6.8, "max": 42.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 7.4, "min": 2.0, "max": 17.2, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008382 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 14, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 16.9, \"min\": 6.8, \"max\": 42.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 7.4, \"min\": 2.0, \"max\": 17.2, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad1bf_0979", "family": "ribbed", "tier": 2, "seed": 2468008383, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "eefd0368e5450ab9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28700.0, "surface_area": 13300.0, "principal_moments": [6350000.0, 20200000.0, 26099999.999999996], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 90, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 47.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 6.1, "min": 2.4, "max": 12.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.3, "min": 1.0, "max": 5.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008383 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 47.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 6.1, \"min\": 2.4, \"max\": 12.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.3, \"min\": 1.0, \"max\": 5.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad1c0_0980", "family": "flanged", "tier": 1, "seed": 2468008384, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "d25d8a7170ad29d5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8880.0, "surface_area": 5220.0, "principal_moments": [1010000.0, 1010000.0, 1460000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 21.84, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 18.0, "min": 5.4, "max": 45.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 7.4, "min": 2.0, "max": 15.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 47.6, "min": 28.4, "max": 65.5, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 2.4, "min": 0.7, "max": 7.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 14.3, "min": 9.5, "max": 21.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008384 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 21.84, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 18.0, \"min\": 5.4, \"max\": 45.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 7.4, \"min\": 2.0, \"max\": 15.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 47.6, \"min\": 28.4, \"max\": 65.5, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 2.4, \"min\": 0.7, \"max\": 7.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 14.3, \"min\": 9.5, \"max\": 21.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad1c1_0981", "family": "gear", "tier": 2, "seed": 2468008385, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "bebe8ba9fe392514", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14800.0, "surface_area": 5880.0, "principal_moments": [1580000.0, 1580000.0, 2450000.0], "n_faces": 91, "n_edges": 267, "n_vertices": 178}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 11, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 17.0, "min": 6.8, "max": 42.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 23.5, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": -0.23, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.83, "min": 0.0, "max": 1.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 6.3, "min": 2.0, "max": 15.3, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008385 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 11, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 17.0, \"min\": 6.8, \"max\": 42.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 23.5, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.23, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.83, \"min\": 0.0, \"max\": 1.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 6.3, \"min\": 2.0, \"max\": 15.3, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad1c2_0982", "family": "ribbed", "tier": 1, "seed": 2468008386, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "3097f5928131f360", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19700.0, "surface_area": 9270.0, "principal_moments": [3450000.0, 8240000.0, 11000000.0], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 63.54, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 41.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 12.3, "min": 4.9, "max": 24.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.2, "min": 1.0, "max": 8.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008386 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 63.54, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 41.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 12.3, \"min\": 4.9, \"max\": 24.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.2, \"min\": 1.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad1c4_0984", "family": "bracket", "tier": 2, "seed": 2468008388, "symmetry": "none", "op_count": 1, "ir_hash": "c9fb7a9b7d0f5fae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37000.0, "surface_area": 12400.0, "principal_moments": [13399999.999999998, 22300000.0, 30199999.999999996], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 60, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 54.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30.02, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 10.5, "min": 4.0, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008388 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 60, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 54.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30.02, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 10.5, \"min\": 4.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad1c5_0985", "family": "gear", "tier": 0, "seed": 2468008389, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "8494ceef70e6b312", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13100.0, "surface_area": 5460.0, "principal_moments": [1740000.0, 1740000.0, 3320000.0], "n_faces": 182, "n_edges": 540, "n_vertices": 360}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 30, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 8.3, "min": 3.3, "max": 20.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008389 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 30, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 8.3, \"min\": 3.3, \"max\": 20.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad1c6_0986", "family": "compound", "tier": 1, "seed": 2468008390, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "b06cc1a87ca812c5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 303000.0, "surface_area": 33400.0, "principal_moments": [209000000.0, 230000000.0, 304000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 76.9, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 51.7, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 70.8, "min": 28.3, "max": 113.3, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 43.9, "min": 17.6, "max": 70.2, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 9.7, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008390 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 76.9, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 51.7, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 70.8, \"min\": 28.3, \"max\": 113.3, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 43.9, \"min\": 17.6, \"max\": 70.2, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 9.7, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.06788535155359815)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad1ca_0990", "family": "revolved", "tier": 1, "seed": 2468008394, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "cad25d7075e1d6be", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 48300.0, "surface_area": 13300.0, "principal_moments": [8870000.0, 20700000.0, 20700000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 35, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 75.4, "min": 22.6, "max": 226.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.7, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008394 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 75.4, \"min\": 22.6, \"max\": 226.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.7, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad1cf_0995", "family": "bracket", "tier": 1, "seed": 2468008399, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "15b125befce9af08", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11100.0, "surface_area": 6500.0, "principal_moments": [1910000.0, 2650000.0, 3920000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008399 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad1d1_0997", "family": "block", "tier": 2, "seed": 2468008401, "symmetry": "none", "op_count": 3, "ir_hash": "f93c4621ae3746a3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34200.0, "surface_area": 8870.0, "principal_moments": [5250000.0, 7020000.0, 9950000.0], "n_faces": 15, "n_edges": 35, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 47.29, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 20.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 35.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 22.1, "min": 11.1, "max": 44.2, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 5.5, "min": 2.2, "max": 13.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008401 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 47.29, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 20.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 35.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 22.1, \"min\": 11.1, \"max\": 44.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.2, \"max\": 13.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad1d2_0998", "family": "plate", "tier": 1, "seed": 2468008402, "symmetry": "radial", "op_count": 2, "ir_hash": "42a38ff5c9f53119", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27600.0, "surface_area": 9220.0, "principal_moments": [4570000.0, 15199999.999999998, 19500000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"plate_w": {"type": "float", "default": 80.91, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 43.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.3, "min": 16.2, "max": 36.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008402 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 80.91, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 43.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.3, \"min\": 16.2, \"max\": 36.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad1d3_0999", "family": "bracket", "tier": 1, "seed": 2468008403, "symmetry": "none", "op_count": 1, "ir_hash": "08305b3d63263cce", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9460.0, "surface_area": 7150.0, "principal_moments": [1160000.0, 4370000.0, 4860000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 40.36, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 28.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 32.3, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 35.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008403 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 40.36, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 28.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 32.3, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 35.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad1d4_1000", "family": "gear", "tier": 1, "seed": 2468008404, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "f21594180d41355c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 137000.0, "surface_area": 25600.0, "principal_moments": [75500000.0, 75500000.0, 138000000.0], "n_faces": 135, "n_edges": 399, "n_vertices": 266}, "params": {"module": {"type": "float", "default": 4.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 22, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 23.6, "min": 9.4, "max": 59.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 16.2, "min": 2.0, "max": 46.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008404 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 22, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 23.6, \"min\": 9.4, \"max\": 59.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 16.2, \"min\": 2.0, \"max\": 46.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad1d5_1001", "family": "block", "tier": 1, "seed": 2468008405, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "0f8f761268d23fd2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 129000.0, "surface_area": 19400.0, "principal_moments": [38200000.0, 77700000.0, 79200000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 43.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 41.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008405 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 43.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 41.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad1d7_1003", "family": "revolved", "tier": 1, "seed": 2468008407, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "27f3993b2c2a0a35", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 145000.0, "surface_area": 25000.0, "principal_moments": [47199999.99999999, 204000000.0, 204000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 35, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 115.5, "min": 34.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 12.1, "min": 2.0, "max": 24.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 62.6, "min": 42.0, "max": 105.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 22.4, "min": 6.7, "max": 57.8, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008407 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 115.5, \"min\": 34.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 12.1, \"min\": 2.0, \"max\": 24.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 62.6, \"min\": 42.0, \"max\": 105.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 22.4, \"min\": 6.7, \"max\": 57.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad1d8_1004", "family": "revolved", "tier": 2, "seed": 2468008408, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "9ca47e40da95ba12", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 333000.0, "surface_area": 51300.0, "principal_moments": [362000000.0, 602000000.0, 602000000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 50.64, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 122.9, "min": 36.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 28.9, "min": 2.0, "max": 35.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 106.9, "min": 60.8, "max": 151.9, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 23.9, "min": 7.2, "max": 61.5, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.1, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008408 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50.64, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 122.9, \"min\": 36.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 28.9, \"min\": 2.0, \"max\": 35.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 106.9, \"min\": 60.8, \"max\": 151.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 23.9, \"min\": 7.2, \"max\": 61.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.1, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad1da_1006", "family": "block", "tier": 1, "seed": 2468008410, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "e486fffb201e0156", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45000.0, "surface_area": 9930.0, "principal_moments": [8520000.0, 11000000.0, 15999999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 21.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 42.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008410 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 21.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 42.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad1db_1007", "family": "gear", "tier": 0, "seed": 2468008411, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "bf2bd5a9198e2ebb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9850.0, "surface_area": 4660.0, "principal_moments": [1160000.0, 1160000.0, 2230000.0], "n_faces": 206, "n_edges": 612, "n_vertices": 408}, "params": {"module": {"type": "float", "default": 1.25, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 34, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 7.0, "min": 2.8, "max": 17.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008411 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.25, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 34, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 7.0, \"min\": 2.8, \"max\": 17.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad1dc_1008", "family": "enclosure", "tier": 2, "seed": 2468008412, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "d4348ae2c04a30ca", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9010.0, "surface_area": 6070.0, "principal_moments": [1130000.0, 1410000.0, 1980000.0], "n_faces": 27, "n_edges": 84, "n_vertices": 56}, "params": {"enc_w": {"type": "float", "default": 34.9, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 29.7, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 18.4, "min": 7.4, "max": 36.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.1, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 6.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008412 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 34.9, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 29.7, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 18.4, \"min\": 7.4, \"max\": 36.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.1, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 6.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.11252569983640323)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad1dd_1009", "family": "plate", "tier": 2, "seed": 2468008413, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "50b1afd5230ce339", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1480.0, "surface_area": 1870.0, "principal_moments": [94700.0, 101000.0, 195000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 30, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 29.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 6.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008413 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 29.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 6.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.04420929153703064)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad1de_1010", "family": "bracket", "tier": 1, "seed": 2468008414, "symmetry": "none", "op_count": 1, "ir_hash": "34dd2780f7a3b4c7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22700.0, "surface_area": 7550.0, "principal_moments": [4090000.0, 5660000.0, 7940000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 30.68, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 34.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008414 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30.68, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 34.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.11605121494429838)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad1e0_1012", "family": "compound", "tier": 2, "seed": 2468008416, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "0cc48a5af86e1c1a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 94400.0, "surface_area": 16400.0, "principal_moments": [17300000.0, 78900000.0, 78900000.0], "n_faces": 13, "n_edges": 27, "n_vertices": 18}, "params": {"shaft_d": {"type": "float", "default": 40, "min": 20.0, "max": 72.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 65.8, "min": 26.3, "max": 131.6, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 20.5, "min": 10.2, "max": 36.0, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 39.8, "min": 11.9, "max": 99.5, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "head_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Head", "label": "Drive head sides"}, "head_r": {"type": "float", "default": 8.8, "min": 5.3, "max": 9.8, "step": 1.0, "group": "Head", "label": "Drive head circumradius (mm)"}, "head_len": {"type": "float", "default": 12.9, "min": 3.9, "max": 25.8, "step": 1.0, "group": "Head", "label": "Drive head length (mm)"}, "axial_bore": {"type": "float", "default": 6.6, "min": 2.0, "max": 11.0, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008416 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 72.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 65.8, \"min\": 26.3, \"max\": 131.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 20.5, \"min\": 10.2, \"max\": 36.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 39.8, \"min\": 11.9, \"max\": 99.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"head_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Head', \"label\": 'Drive head sides'},\n \"head_r\": {\"type\": 'float', \"default\": 8.8, \"min\": 5.3, \"max\": 9.8, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head circumradius (mm)'},\n \"head_len\": {\"type\": 'float', \"default\": 12.9, \"min\": 3.9, \"max\": 25.8, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 6.6, \"min\": 2.0, \"max\": 11.0, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"head_sides\"], p[\"head_r\"] * 2).extrude(p[\"head_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad1e1_1013", "family": "flanged", "tier": 1, "seed": 2468008417, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "96b415a38f0b23ea", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 537000.0, "surface_area": 76800.0, "principal_moments": [905000000.0, 905000000.0, 930000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 86.57, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 90.2, "min": 27.1, "max": 225.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 37.5, "min": 2.0, "max": 60.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 162.9, "min": 112.5, "max": 259.7, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.1, "min": 2.1, "max": 36.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 48.9, "min": 32.6, "max": 73.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008417 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 86.57, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 90.2, \"min\": 27.1, \"max\": 225.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 37.5, \"min\": 2.0, \"max\": 60.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 162.9, \"min\": 112.5, \"max\": 259.7, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.1, \"min\": 2.1, \"max\": 36.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 48.9, \"min\": 32.6, \"max\": 73.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad1e2_1014", "family": "gear", "tier": 1, "seed": 2468008418, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "d79738319ef549d2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4570.0, "surface_area": 2650.0, "principal_moments": [264000.0, 264000.0, 488000.0], "n_faces": 141, "n_edges": 417, "n_vertices": 278}, "params": {"module": {"type": "float", "default": 1.25, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 23, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 7.3, "min": 2.9, "max": 18.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 15.4, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008418 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.25, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 23, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 7.3, \"min\": 2.9, \"max\": 18.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 15.4, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad1e4_1016", "family": "gear", "tier": 1, "seed": 2468008420, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "7a4f0c91b6bfc8d2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 490000.0, "surface_area": 64800.0, "principal_moments": [801000000.0, 801000000.0, 1540000000.0], "n_faces": 189, "n_edges": 561, "n_vertices": 374}, "params": {"module": {"type": "float", "default": 5.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 31, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 27.4, "min": 11.0, "max": 68.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 32.2, "min": 2.0, "max": 85.5, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008420 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 5.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 31, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 27.4, \"min\": 11.0, \"max\": 68.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 32.2, \"min\": 2.0, \"max\": 85.5, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad1e5_1017", "family": "bracket", "tier": 1, "seed": 2468008421, "symmetry": "none", "op_count": 1, "ir_hash": "8427c55df487166f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13800.0, "surface_area": 10200.0, "principal_moments": [3800000.0, 4680000.0, 6240000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 28.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008421 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 28.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad1e6_1018", "family": "gear", "tier": 0, "seed": 2468008422, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "570dd84f7f420980", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2210.0, "surface_area": 1590.0, "principal_moments": [79300.0, 79300.0, 148000.0], "n_faces": 140, "n_edges": 414, "n_vertices": 276}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 23, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.4, "min": 2.2, "max": 13.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008422 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 23, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.4, \"min\": 2.2, \"max\": 13.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad1e8_1020", "family": "block", "tier": 2, "seed": 2468008424, "symmetry": "none", "op_count": 3, "ir_hash": "705a5b002fa5d93b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4070.0, "surface_area": 2890.0, "principal_moments": [185000.0, 250000.0, 369000.0], "n_faces": 21, "n_edges": 69, "n_vertices": 46}, "params": {"block_w": {"type": "float", "default": 20, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 9.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 25.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.5, "min": 2.0, "max": 1.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "pocket_w": {"type": "float", "default": 9.3, "min": 4.7, "max": 16.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 5.8, "min": 2.9, "max": 7.6, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 10.5, "min": 4.2, "max": 22.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008424 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 9.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 25.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.5, \"min\": 2.0, \"max\": 1.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"pocket_w\": {\"type\": 'float', \"default\": 9.3, \"min\": 4.7, \"max\": 16.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.9, \"max\": 7.6, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 10.5, \"min\": 4.2, \"max\": 22.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 5.0\n _ssy = 5.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad1e9_1021", "family": "flanged", "tier": 1, "seed": 2468008425, "symmetry": "none", "op_count": 2, "ir_hash": "bdde3266fc54e0ad", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 843000.0, "surface_area": 101000.0, "principal_moments": [1770000000.0, 2020000000.0, 2020000000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"outer_d": {"type": "float", "default": 99.54, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 116.7, "min": 35.0, "max": 291.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 47.3, "min": 2.0, "max": 69.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 173.5, "min": 129.4, "max": 298.6, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.9, "min": 2.7, "max": 46.7, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 52.0, "min": 34.7, "max": 78.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008425 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 99.54, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 116.7, \"min\": 35.0, \"max\": 291.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 47.3, \"min\": 2.0, \"max\": 69.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 173.5, \"min\": 129.4, \"max\": 298.6, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.9, \"min\": 2.7, \"max\": 46.7, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 52.0, \"min\": 34.7, \"max\": 78.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad1ea_1022", "family": "profiled", "tier": 1, "seed": 2468008426, "symmetry": "none", "op_count": 1, "ir_hash": "00ec8ed84150e954", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16500.0, "surface_area": 8270.0, "principal_moments": [853000.0, 8590000.0, 8590000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 18.57, "min": 9.3, "max": 37.1, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 91.3, "min": 27.4, "max": 273.9, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008426 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 18.57, \"min\": 9.3, \"max\": 37.1, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 91.3, \"min\": 27.4, \"max\": 273.9, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad1ec_1024", "family": "block", "tier": 1, "seed": 2468008428, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "c265730a567ed446", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 43000.0, "surface_area": 10200.0, "principal_moments": [7220000.0, 10900000.0, 14099999.999999998], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 49.52, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 23.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 38.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.2, "min": 2.0, "max": 2.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008428 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 49.52, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 23.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 38.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 2.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 9.3\n _ssy = 9.2\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad1ed_1025", "family": "compound", "tier": 2, "seed": 2468008429, "symmetry": "none", "op_count": 3, "ir_hash": "67854281ab4a98c1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 63400.0, "surface_area": 12200.0, "principal_moments": [16699999.999999998, 17100000.0, 26199999.999999996], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 48.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 26.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 11.1, "min": 4.4, "max": 18.6, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 13.3, "min": 3.3, "max": 44.4, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 6.2, "min": 2.0, "max": 8.0, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 10.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008429 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 48.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 26.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 11.1, \"min\": 4.4, \"max\": 18.6, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 13.3, \"min\": 3.3, \"max\": 44.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 6.2, \"min\": 2.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 10.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad1f0_1028", "family": "block", "tier": 1, "seed": 2468008432, "symmetry": "radial", "op_count": 2, "ir_hash": "ca3d1c56fb3ce469", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 57900.0, "surface_area": 16400.0, "principal_moments": [14799999.999999998, 18100000.0, 26799999.999999996], "n_faces": 20, "n_edges": 54, "n_vertices": 36}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 25.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 49.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 16.5, "min": 11.0, "max": 24.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008432 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 25.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 49.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 16.5, \"min\": 11.0, \"max\": 24.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad1f2_1030", "family": "enclosure", "tier": 2, "seed": 2468008434, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "e28ca57bb7f81a32", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 58400.0, "surface_area": 43000.0, "principal_moments": [44900000.0, 78100000.0, 90400000.0], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 95, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 42.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 70.0, "min": 28.0, "max": 140.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.7, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 9.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008434 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 95, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 42.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 70.0, \"min\": 28.0, \"max\": 140.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.7, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 9.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.11752374227827328)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad1f3_1031", "family": "block", "tier": 1, "seed": 2468008435, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "0a7c4beba7117494", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 261000.0, "surface_area": 35300.0, "principal_moments": [136000000.0, 249000000.0, 322000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 38.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.2, "min": 2.0, "max": 11.3, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008435 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 38.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 11.3, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad1f4_1032", "family": "bracket", "tier": 2, "seed": 2468008436, "symmetry": "none", "op_count": 1, "ir_hash": "e7666e269b7a0c52", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16000.0, "surface_area": 9250.0, "principal_moments": [3370000.0, 7840000.0, 8890000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 60, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 39.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 41.16, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.5, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008436 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 60, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 39.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 41.16, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad1f5_1033", "family": "compound", "tier": 1, "seed": 2468008437, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "1e26731b323dabc2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 105000.0, "surface_area": 20400.0, "principal_moments": [48099999.99999999, 57799999.99999999, 76800000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"base_w": {"type": "float", "default": 65, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 73.9, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 20.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 10.7, "min": 5.3, "max": 16.2, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 43.4, "min": 13.0, "max": 130.2, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 7.9, "min": 2.0, "max": 13.3, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008437 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 65, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 73.9, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 20.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 10.7, \"min\": 5.3, \"max\": 16.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 43.4, \"min\": 13.0, \"max\": 130.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 7.9, \"min\": 2.0, \"max\": 13.3, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad1f6_1034", "family": "revolved", "tier": 2, "seed": 2468008438, "symmetry": "radial", "op_count": 1, "ir_hash": "07a1ba3b34352161", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 65000.0, "surface_area": 13700.0, "principal_moments": [10400000.0, 43600000.0, 43600000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 33.68, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 84.2, "min": 25.3, "max": 252.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 12.3, "min": 2.0, "max": 23.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008438 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 33.68, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 84.2, \"min\": 25.3, \"max\": 252.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 12.3, \"min\": 2.0, \"max\": 23.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad1f7_1035", "family": "revolved", "tier": 1, "seed": 2468008439, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "9b9b3848cca312a4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9040.0, "surface_area": 4890.0, "principal_moments": [582000.0, 2120000.0, 2120000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 17.09, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 46.0, "min": 13.8, "max": 138.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 9.8, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 26.0, "min": 20.5, "max": 51.3, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.7, "min": 2.0, "max": 23.0, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008439 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 17.09, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 46.0, \"min\": 13.8, \"max\": 138.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 9.8, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 26.0, \"min\": 20.5, \"max\": 51.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.7, \"min\": 2.0, \"max\": 23.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad1f9_1037", "family": "revolved", "tier": 0, "seed": 2468008441, "symmetry": "none", "op_count": 1, "ir_hash": "47d72a27a8b0b9f3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 43000.0, "surface_area": 12100.0, "principal_moments": [7900000.0, 15399999.999999998, 15399999.999999998], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 35, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 67.0, "min": 20.1, "max": 201.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008441 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 67.0, \"min\": 20.1, \"max\": 201.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad1fe_1042", "family": "flanged", "tier": 1, "seed": 2468008446, "symmetry": "none", "op_count": 2, "ir_hash": "f10860b5821e557f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 127000.0, "surface_area": 29700.0, "principal_moments": [71900000.0, 92199999.99999999, 92199999.99999999], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 50, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 66.4, "min": 19.9, "max": 166.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 22.1, "min": 2.0, "max": 35.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 96.8, "min": 65.0, "max": 150.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.1, "min": 1.2, "max": 26.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 29.0, "min": 19.4, "max": 43.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008446 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 66.4, \"min\": 19.9, \"max\": 166.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 22.1, \"min\": 2.0, \"max\": 35.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 96.8, \"min\": 65.0, \"max\": 150.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.1, \"min\": 1.2, \"max\": 26.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 29.0, \"min\": 19.4, \"max\": 43.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad200_1044", "family": "plate", "tier": 0, "seed": 2468008448, "symmetry": "radial", "op_count": 1, "ir_hash": "fee8c97a726c3e49", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 70500.0, "surface_area": 15400.0, "principal_moments": [34900000.0, 35900000.0, 69100000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 77.24, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 76.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008448 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 77.24, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 76.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad201_1045", "family": "gear", "tier": 0, "seed": 2468008449, "symmetry": "none", "op_count": 1, "ir_hash": "02745b6b385c5ce6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4860.0, "surface_area": 2800.0, "principal_moments": [327000.0, 327000.0, 625000.0], "n_faces": 194, "n_edges": 576, "n_vertices": 384}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 32, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.1, "min": 2.4, "max": 15.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008449 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 32, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.1, \"min\": 2.4, \"max\": 15.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad202_1046", "family": "flanged", "tier": 2, "seed": 2468008450, "symmetry": "none", "op_count": 2, "ir_hash": "26b6f4564993d5fb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 57100.0, "surface_area": 20000.0, "principal_moments": [27399999.999999996, 27399999.999999996, 32599999.999999996], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"outer_d": {"type": "float", "default": 36.14, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 44.7, "min": 13.4, "max": 111.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 18.1, "min": 2.0, "max": 25.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 85.9, "min": 47.0, "max": 108.4, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.2, "min": 1.6, "max": 17.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 25.8, "min": 17.2, "max": 38.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008450 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 36.14, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 44.7, \"min\": 13.4, \"max\": 111.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 18.1, \"min\": 2.0, \"max\": 25.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 85.9, \"min\": 47.0, \"max\": 108.4, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.2, \"min\": 1.6, \"max\": 17.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 25.8, \"min\": 17.2, \"max\": 38.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad203_1047", "family": "revolved", "tier": 0, "seed": 2468008451, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d8fec418f83369ab", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14600.0, "surface_area": 5810.0, "principal_moments": [1370000.0, 2410000.0, 2410000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 25, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 44.6, "min": 13.4, "max": 133.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008451 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 44.6, \"min\": 13.4, \"max\": 133.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad206_1050", "family": "threaded", "tier": 0, "seed": 2468008454, "symmetry": "none", "op_count": 1, "ir_hash": "c594b68341d4de20", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2310.0, "surface_area": 1510.0, "principal_moments": [35000.0, 133000.0, 133000.0], "n_faces": 150, "n_edges": 380, "n_vertices": 232}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 24.7, "min": 9.9, "max": 49.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008454 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 24.7, \"min\": 9.9, \"max\": 49.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad207_1051", "family": "plate", "tier": 0, "seed": 2468008455, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "5684cfcf7f168f88", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7780.0, "surface_area": 4650.0, "principal_moments": [578000.0, 2810000.0, 3360000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 65.68, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 29.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008455 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 65.68, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 29.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad209_1053", "family": "block", "tier": 2, "seed": 2468008457, "symmetry": "none", "op_count": 3, "ir_hash": "3ef57aa9186698a4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 92900.0, "surface_area": 15400.0, "principal_moments": [27099999.999999996, 36100000.0, 37900000.0], "n_faces": 17, "n_edges": 45, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 40.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 43.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008457 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 40.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 43.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 13.8\n _ssy = 15.1\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.05487559972553084)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad20a_1054", "family": "bracket", "tier": 2, "seed": 2468008458, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "b7736ed5d92441fa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13700.0, "surface_area": 6410.0, "principal_moments": [2320000.0, 3850000.0, 4750000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 40, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 34.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 24.46, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 9.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 7.8, "min": 3.0, "max": 12.2, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008458 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 40, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 34.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 24.46, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 9.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 7.8, \"min\": 3.0, \"max\": 12.2, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad20b_1055", "family": "bracket", "tier": 2, "seed": 2468008459, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "7a847263067a835a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17400.0, "surface_area": 12800.0, "principal_moments": [5250000.0, 16699999.999999998, 18700000.0], "n_faces": 14, "n_edges": 45, "n_vertices": 28}, "params": {"base_len": {"type": "float", "default": 82.61, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 69.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 2.8, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008459 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 82.61, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 69.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.8, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad20c_1056", "family": "bracket", "tier": 1, "seed": 2468008460, "symmetry": "none", "op_count": 1, "ir_hash": "e1448a3d1e206b78", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23900.0, "surface_area": 11500.0, "principal_moments": [7320000.0, 21600000.0, 23999999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 73.66, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 69.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008460 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 73.66, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 69.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z or Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad210_1060", "family": "revolved", "tier": 1, "seed": 2468008464, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "61e472f11f806bab", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20700.0, "surface_area": 6450.0, "principal_moments": [2820000.0, 4030000.0, 4030000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 29.72, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 38.9, "min": 11.7, "max": 116.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 14.3, "min": 2.0, "max": 20.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008464 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 29.72, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 38.9, \"min\": 11.7, \"max\": 116.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 14.3, \"min\": 2.0, \"max\": 20.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad211_1061", "family": "gear", "tier": 1, "seed": 2468008465, "symmetry": "none", "op_count": 1, "ir_hash": "84da9e1188e75d0f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 86400.0, "surface_area": 21000.0, "principal_moments": [48299999.99999999, 48299999.99999999, 93899999.99999999], "n_faces": 141, "n_edges": 417, "n_vertices": 278}, "params": {"module": {"type": "float", "default": 4.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 23, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 13.4, "min": 5.4, "max": 33.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 11.7, "min": 2.0, "max": 49.2, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008465 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 23, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 13.4, \"min\": 5.4, \"max\": 33.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 11.7, \"min\": 2.0, \"max\": 49.2, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad212_1062", "family": "ribbed", "tier": 1, "seed": 2468008466, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "a403d64611ef45d2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 49100.0, "surface_area": 19700.0, "principal_moments": [14499999.999999998, 23299999.999999996, 34900000.0], "n_faces": 54, "n_edges": 132, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 75, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 52.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 12.4, "min": 5.0, "max": 24.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.7, "min": 1.0, "max": 14.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008466 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 75, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 52.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 12.4, \"min\": 5.0, \"max\": 24.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.7, \"min\": 1.0, \"max\": 14.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad213_1063", "family": "compound", "tier": 1, "seed": 2468008467, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "ea565acf2d991aa4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17200.0, "surface_area": 5980.0, "principal_moments": [2330000.0, 2890000.0, 2910000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"base_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 20.58, "min": 12.3, "max": 32.9, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 12.3, "min": 4.9, "max": 30.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 19.8, "min": 9.9, "max": 26.6, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 24.3, "min": 7.3, "max": 60.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 9.7, "min": 2.0, "max": 14.3, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008467 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 20.58, \"min\": 12.3, \"max\": 32.9, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 12.3, \"min\": 4.9, \"max\": 30.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 19.8, \"min\": 9.9, \"max\": 26.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 24.3, \"min\": 7.3, \"max\": 60.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 9.7, \"min\": 2.0, \"max\": 14.3, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad214_1064", "family": "bracket", "tier": 1, "seed": 2468008468, "symmetry": "none", "op_count": 1, "ir_hash": "69cd5231ac0de6da", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23600.0, "surface_area": 7650.0, "principal_moments": [4090000.0, 5440000.0, 8490000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 25.04, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008468 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 25.04, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad215_1065", "family": "compound", "tier": 2, "seed": 2468008469, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "4e452262e769416f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29300.0, "surface_area": 15500.0, "principal_moments": [16399999.999999998, 19600000.0, 25799999.999999996], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"base_w": {"type": "float", "default": 80, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 53.7, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 5.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 14.3, "min": 5.7, "max": 26.9, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 77.7, "min": 23.3, "max": 233.1, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 8.2, "min": 2.0, "max": 10.3, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 12.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008469 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 80, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 53.7, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 14.3, \"min\": 5.7, \"max\": 26.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 77.7, \"min\": 23.3, \"max\": 233.1, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 8.2, \"min\": 2.0, \"max\": 10.3, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 12.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_w\"], p[\"base_d\"]) * 0.10465355789549852)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad217_1067", "family": "block", "tier": 2, "seed": 2468008471, "symmetry": "none", "op_count": 3, "ir_hash": "d038cfbbf137e410", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2270.0, "surface_area": 1680.0, "principal_moments": [54000.0, 107000.0, 114000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 20, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 12.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 11.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.1, "min": 2.0, "max": 2.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 8.5, "min": 4.2, "max": 16.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 8.3, "min": 4.2, "max": 9.8, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 5.3, "min": 2.1, "max": 9.7, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008471 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 12.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 11.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.1, \"min\": 2.0, \"max\": 2.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 8.5, \"min\": 4.2, \"max\": 16.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 8.3, \"min\": 4.2, \"max\": 9.8, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.1, \"max\": 9.7, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad218_1068", "family": "plate", "tier": 2, "seed": 2468008472, "symmetry": "none", "op_count": 3, "ir_hash": "b7b8ea3da2f2fb22", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 36100.0, "surface_area": 14900.0, "principal_moments": [11399999.999999998, 29899999.999999996, 41100000.0], "n_faces": 26, "n_edges": 72, "n_vertices": 48}, "params": {"plate_w": {"type": "float", "default": 100, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 61.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008472 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 100, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 61.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(26.7, 16.5, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09023781572948517)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad219_1069", "family": "plate", "tier": 1, "seed": 2468008473, "symmetry": "none", "op_count": 2, "ir_hash": "ea865a9cdd9e4da7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 46400.0, "surface_area": 12100.0, "principal_moments": [9000000.0, 27599999.999999996, 35500000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"plate_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 47.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 5.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008473 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 47.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 5.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(68.0, 18.8, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad21a_1070", "family": "block", "tier": 2, "seed": 2468008474, "symmetry": "none", "op_count": 3, "ir_hash": "acc44f78bc54e5ef", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 84800.0, "surface_area": 14100.0, "principal_moments": [20900000.0, 35300000.0, 44700000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 28.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 46.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008474 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 28.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 46.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.05508063000784481)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad21e_1074", "family": "gear", "tier": 2, "seed": 2468008478, "symmetry": "none", "op_count": 1, "ir_hash": "b5df34774b3f3bd9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11000.0, "surface_area": 5090.0, "principal_moments": [1340000.0, 1340000.0, 2520000.0], "n_faces": 115, "n_edges": 339, "n_vertices": 226}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 14, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 9.3, "min": 3.7, "max": 23.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": -0.21, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.58, "min": 0.0, "max": 1.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 9.2, "min": 2.0, "max": 20.7, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008478 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 14, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 9.3, \"min\": 3.7, \"max\": 23.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.21, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.58, \"min\": 0.0, \"max\": 1.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 9.2, \"min\": 2.0, \"max\": 20.7, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad21f_1075", "family": "threaded", "tier": 1, "seed": 2468008479, "symmetry": "none", "op_count": 1, "ir_hash": "7358e7a6a988dd60", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3340.0, "surface_area": 2490.0, "principal_moments": [35200.0, 751000.0, 751000.0], "n_faces": 350, "n_edges": 900, "n_vertices": 552}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 51.5, "min": 20.6, "max": 103.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008479 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 51.5, \"min\": 20.6, \"max\": 103.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad220_1076", "family": "compound", "tier": 1, "seed": 2468008480, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "2ceff1957521a805", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12200.0, "surface_area": 4640.0, "principal_moments": [1030000.0, 1900000.0, 1900000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 15, "min": 9.0, "max": 24.0, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 18.0, "min": 7.2, "max": 45.0, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 11.6, "min": 5.8, "max": 20.8, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 28.4, "min": 8.5, "max": 71.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 6.0, "min": 2.0, "max": 8.4, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008480 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 15, \"min\": 9.0, \"max\": 24.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 18.0, \"min\": 7.2, \"max\": 45.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 11.6, \"min\": 5.8, \"max\": 20.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 28.4, \"min\": 8.5, \"max\": 71.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 8.4, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad221_1077", "family": "block", "tier": 1, "seed": 2468008481, "symmetry": "none", "op_count": 2, "ir_hash": "c18228b3dd8d9f8a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 267000.0, "surface_area": 44700.0, "principal_moments": [151000000.0, 257000000.0, 339000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 41.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 10.1, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008481 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 41.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.1, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad222_1078", "family": "gear", "tier": 0, "seed": 2468008482, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "37f625c1987f4d99", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24500.0, "surface_area": 8140.0, "principal_moments": [4720000.0, 4720000.0, 8970000.0], "n_faces": 164, "n_edges": 486, "n_vertices": 324}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 27, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 10.8, "min": 4.3, "max": 27.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008482 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 27, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 10.8, \"min\": 4.3, \"max\": 27.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad224_1080", "family": "threaded", "tier": 2, "seed": 2468008484, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "31dcb4ecba86e3a1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2680.0, "surface_area": 2040.0, "principal_moments": [87000.0, 152000.0, 152000.0], "n_faces": 147, "n_edges": 399, "n_vertices": 254}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 22.1, "min": 8.8, "max": 44.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008484 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 22.1, \"min\": 8.8, \"max\": 44.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad225_1081", "family": "block", "tier": 1, "seed": 2468008485, "symmetry": "none", "op_count": 2, "ir_hash": "994bb158996c0fe4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 330000.0, "surface_area": 35300.0, "principal_moments": [234000000.0, 318000000.0, 466000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 83.49, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 39.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 9.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008485 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 83.49, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 39.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 9.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad227_1083", "family": "compound", "tier": 1, "seed": 2468008487, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3811ad5ee1234263", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33500.0, "surface_area": 7320.0, "principal_moments": [6190000.0, 7300000.0, 7300000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 25.48, "min": 15.3, "max": 40.8, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 10.2, "min": 4.1, "max": 25.5, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 27.4, "min": 13.7, "max": 35.3, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 27.7, "min": 8.3, "max": 69.2, "step": 1.0, "group": "Column", "label": "Column height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008487 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 25.48, \"min\": 15.3, \"max\": 40.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 10.2, \"min\": 4.1, \"max\": 25.5, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 27.4, \"min\": 13.7, \"max\": 35.3, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 27.7, \"min\": 8.3, \"max\": 69.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad228_1084", "family": "profiled", "tier": 2, "seed": 2468008488, "symmetry": "none", "op_count": 1, "ir_hash": "8e774b0514618a2d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 342000.0, "surface_area": 67800.0, "principal_moments": [112000000.0, 1880000000.0, 1880000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 46.67, "min": 23.3, "max": 93.3, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 300.0, "min": 90.0, "max": 900.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008488 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 46.67, \"min\": 23.3, \"max\": 93.3, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 300.0, \"min\": 90.0, \"max\": 900.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad229_1085", "family": "block", "tier": 1, "seed": 2468008489, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "2963ce1cac78eb4a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 370000.0, "surface_area": 42100.0, "principal_moments": [306000000.0, 362000000.0, 561000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 91.25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 42.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008489 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 91.25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 42.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad22a_1086", "family": "bracket", "tier": 2, "seed": 2468008490, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "1591ebd4403e1f4b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16100.0, "surface_area": 11800.0, "principal_moments": [5430000.0, 6490000.0, 9200000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 45.26, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 29.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 2.6, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008490 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45.26, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 29.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.6, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad22b_1087", "family": "flanged", "tier": 1, "seed": 2468008491, "symmetry": "none", "op_count": 2, "ir_hash": "61bf01adb332a139", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 76100.0, "surface_area": 22900.0, "principal_moments": [41600000.0, 41600000.0, 61399999.99999999], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 40, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 40.6, "min": 12.2, "max": 101.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 20.2, "min": 2.0, "max": 28.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 96.0, "min": 52.0, "max": 120.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.5, "min": 1.9, "max": 16.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 28.8, "min": 19.2, "max": 43.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008491 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 40.6, \"min\": 12.2, \"max\": 101.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 20.2, \"min\": 2.0, \"max\": 28.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 96.0, \"min\": 52.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.5, \"min\": 1.9, \"max\": 16.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 28.8, \"min\": 19.2, \"max\": 43.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad22c_1088", "family": "bracket", "tier": 1, "seed": 2468008492, "symmetry": "none", "op_count": 1, "ir_hash": "71ada898165051b4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11800.0, "surface_area": 8830.0, "principal_moments": [2870000.0, 3990000.0, 4850000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 40, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 29.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 43.27, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008492 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 40, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 29.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 43.27, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad22d_1089", "family": "revolved", "tier": 1, "seed": 2468008493, "symmetry": "radial", "op_count": 1, "ir_hash": "4c75286447f5f146", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 162000.0, "surface_area": 28600.0, "principal_moments": [107000000.0, 107000000.0, 132000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 59.99, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 52.0, "min": 15.6, "max": 156.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 26.0, "min": 2.0, "max": 42.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 96.2, "min": 72.0, "max": 180.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.5, "min": 2.9, "max": 26.0, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008493 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 59.99, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 52.0, \"min\": 15.6, \"max\": 156.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 26.0, \"min\": 2.0, \"max\": 42.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 96.2, \"min\": 72.0, \"max\": 180.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.5, \"min\": 2.9, \"max\": 26.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad22e_1090", "family": "revolved", "tier": 0, "seed": 2468008494, "symmetry": "radial", "op_count": 1, "ir_hash": "115c79992d01b91c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1020000.0, "surface_area": 122000.0, "principal_moments": [951000000.0, 6440000000.0, 6440000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 78.81, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 313.8, "min": 94.1, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008494 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 78.81, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 313.8, \"min\": 94.1, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad22f_1091", "family": "gear", "tier": 1, "seed": 2468008495, "symmetry": "none", "op_count": 1, "ir_hash": "e4e3564add0c7df7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10000.0, "surface_area": 5430.0, "principal_moments": [1570000.0, 1570000.0, 3080000.0], "n_faces": 237, "n_edges": 705, "n_vertices": 470}, "params": {"module": {"type": "float", "default": 1.25, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 39, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.6, "min": 2.2, "max": 14.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 9.2, "min": 2.0, "max": 27.4, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008495 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.25, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 39, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.6, \"min\": 2.2, \"max\": 14.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 9.2, \"min\": 2.0, \"max\": 27.4, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad232_1094", "family": "revolved", "tier": 1, "seed": 2468008498, "symmetry": "radial", "op_count": 1, "ir_hash": "dd79c92bf4a1725f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 555000.0, "surface_area": 74800.0, "principal_moments": [469000000.0, 1600000000.0, 1600000000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 65, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 198.9, "min": 59.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 94.7, "min": 78.0, "max": 195.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 30.9, "min": 9.3, "max": 99.5, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008498 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 198.9, \"min\": 59.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 94.7, \"min\": 78.0, \"max\": 195.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 30.9, \"min\": 9.3, \"max\": 99.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad234_1096", "family": "compound", "tier": 1, "seed": 2468008500, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "1d48b0a700a9d4e0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23400.0, "surface_area": 5890.0, "principal_moments": [2500000.0, 3940000.0, 4480000.0], "n_faces": 16, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 27.94, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 37.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 22.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 4.8, "min": 2.4, "max": 7.8, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 10.4, "min": 2.7, "max": 35.5, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 4.0, "min": 2.0, "max": 6.4, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008500 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 27.94, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 37.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 22.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 4.8, \"min\": 2.4, \"max\": 7.8, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 10.4, \"min\": 2.7, \"max\": 35.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 6.4, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad237_1099", "family": "bracket", "tier": 1, "seed": 2468008503, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "4cb6b8576876c382", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 62100.0, "surface_area": 18900.0, "principal_moments": [28899999.999999996, 66299999.99999999, 68600000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 71.16, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 79.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 54.8, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008503 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 71.16, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 79.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 54.8, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad23a_1102", "family": "block", "tier": 1, "seed": 2468008506, "symmetry": "none", "op_count": 2, "ir_hash": "05f4deb6effe7da0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6940.0, "surface_area": 2920.0, "principal_moments": [357000.0, 481000.0, 635000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 25.92, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 13.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 21.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.3, "min": 2.0, "max": 3.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008506 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25.92, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 13.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 21.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.3, \"min\": 2.0, \"max\": 3.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad23b_1103", "family": "flanged", "tier": 2, "seed": 2468008507, "symmetry": "none", "op_count": 2, "ir_hash": "7bc2236b4cc70bf3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 141000.0, "surface_area": 31500.0, "principal_moments": [111000000.0, 111000000.0, 111000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 52.4, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 63.7, "min": 19.1, "max": 159.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 28.8, "min": 2.0, "max": 36.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 96.8, "min": 68.1, "max": 157.2, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.7, "min": 2.6, "max": 25.5, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 29.0, "min": 19.4, "max": 43.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008507 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 52.4, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 63.7, \"min\": 19.1, \"max\": 159.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 28.8, \"min\": 2.0, \"max\": 36.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 96.8, \"min\": 68.1, \"max\": 157.2, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.7, \"min\": 2.6, \"max\": 25.5, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 29.0, \"min\": 19.4, \"max\": 43.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad23c_1104", "family": "gear", "tier": 2, "seed": 2468008508, "symmetry": "none", "op_count": 1, "ir_hash": "8e587613e5fd765e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7150.0, "surface_area": 4110.0, "principal_moments": [796000.0, 796000.0, 1550000.0], "n_faces": 315, "n_edges": 1017, "n_vertices": 704}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 39, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.7, "min": 2.3, "max": 14.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 19.9, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": -0.29, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.29, "min": 0.0, "max": 0.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 8.0, "min": 2.0, "max": 21.9, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008508 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 39, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.3, \"max\": 14.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 19.9, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.29, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.29, \"min\": 0.0, \"max\": 0.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 21.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad23d_1105", "family": "enclosure", "tier": 2, "seed": 2468008509, "symmetry": "none", "op_count": 4, "ir_hash": "c16a27b0cb578cda", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42900.0, "surface_area": 25400.0, "principal_moments": [18000000.0, 41300000.0, 45100000.0], "n_faces": 35, "n_edges": 108, "n_vertices": 72}, "params": {"enc_w": {"type": "float", "default": 83.79, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 42.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 40.6, "min": 16.2, "max": 81.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 9.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008509 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 83.79, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 42.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 40.6, \"min\": 16.2, \"max\": 81.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 9.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.04962933404472552)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad23e_1106", "family": "compound", "tier": 1, "seed": 2468008510, "symmetry": "none", "op_count": 2, "ir_hash": "d33a69f8c066377f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5310.0, "surface_area": 2120.0, "principal_moments": [283000.0, 365000.0, 365000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 13.25, "min": 7.9, "max": 21.2, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 7.3, "min": 2.9, "max": 18.2, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 12.6, "min": 6.3, "max": 18.4, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 15.9, "min": 4.8, "max": 39.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008510 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 13.25, \"min\": 7.9, \"max\": 21.2, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 7.3, \"min\": 2.9, \"max\": 18.2, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 12.6, \"min\": 6.3, \"max\": 18.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 15.9, \"min\": 4.8, \"max\": 39.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad23f_1107", "family": "plate", "tier": 2, "seed": 2468008511, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "a1721876f5e0e5e8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3400.0, "surface_area": 2130.0, "principal_moments": [94500.0, 449000.0, 529000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 40, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 17.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008511 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 17.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.04411283379078197)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad241_1109", "family": "compound", "tier": 2, "seed": 2468008513, "symmetry": "none", "op_count": 2, "ir_hash": "6554d87013b9376a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42500.0, "surface_area": 9810.0, "principal_moments": [7290000.0, 12799999.999999998, 12799999.999999998], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 36.8, "min": 18.4, "max": 66.2, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 36.4, "min": 14.6, "max": 72.8, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 25.9, "min": 12.9, "max": 33.1, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 19.4, "min": 5.8, "max": 48.5, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 12.1, "min": 2.0, "max": 18.6, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008513 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 36.8, \"min\": 18.4, \"max\": 66.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 36.4, \"min\": 14.6, \"max\": 72.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 25.9, \"min\": 12.9, \"max\": 33.1, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 19.4, \"min\": 5.8, \"max\": 48.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 12.1, \"min\": 2.0, \"max\": 18.6, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad242_1110", "family": "block", "tier": 2, "seed": 2468008514, "symmetry": "none", "op_count": 3, "ir_hash": "000eb600e4f497b6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 181000.0, "surface_area": 32600.0, "principal_moments": [94499999.99999999, 161000000.0, 227000000.0], "n_faces": 25, "n_edges": 81, "n_vertices": 54}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 29.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.2, "min": 2.0, "max": 2.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "pocket_w": {"type": "float", "default": 31.3, "min": 15.7, "max": 56.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 14.7, "min": 7.3, "max": 23.3, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 43.6, "min": 17.4, "max": 85.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008514 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 29.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 2.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"pocket_w\": {\"type\": 'float', \"default\": 31.3, \"min\": 15.7, \"max\": 56.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 14.7, \"min\": 7.3, \"max\": 23.3, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 43.6, \"min\": 17.4, \"max\": 85.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 13.1\n _ssy = 13.5\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad244_1112", "family": "plate", "tier": 1, "seed": 2468008516, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "45523a35dc1645ac", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1570.0, "surface_area": 1450.0, "principal_moments": [53300.0, 95600.0, 147000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 27.3, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 20.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008516 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 27.3, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 20.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad245_1113", "family": "plate", "tier": 1, "seed": 2468008517, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3d6be0e9a553a870", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9720.0, "surface_area": 6110.0, "principal_moments": [1810000.0, 2350000.0, 4140000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 48.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 10.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008517 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 48.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 10.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad246_1114", "family": "plate", "tier": 2, "seed": 2468008518, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "fe194cdd82b01cee", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4060.0, "surface_area": 2090.0, "principal_moments": [91100.0, 367000.0, 370000.0], "n_faces": 30, "n_edges": 84, "n_vertices": 56}, "params": {"plate_w": {"type": "float", "default": 31.67, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 11.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.6, "min": 2.0, "max": 2.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "cb_d": {"type": "float", "default": 5.2, "min": 3.9, "max": 7.8, "step": 0.5, "group": "Holes", "label": "Counterbore diameter (mm)"}, "cb_depth": {"type": "float", "default": 2.1, "min": 1.1, "max": 4.2, "step": 0.5, "group": "Holes", "label": "Counterbore depth (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008518 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 31.67, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 11.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.6, \"min\": 2.0, \"max\": 2.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"cb_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 3.9, \"max\": 7.8, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Counterbore diameter (mm)'},\n \"cb_depth\": {\"type\": 'float', \"default\": 2.1, \"min\": 1.1, \"max\": 4.2, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Counterbore depth (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cboreHole(p[\"hole_d\"], p[\"cb_d\"], p[\"cb_depth\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08042359258048658)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad247_1115", "family": "gear", "tier": 1, "seed": 2468008519, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "d37d93484fe902cd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 124000.0, "surface_area": 24300.0, "principal_moments": [70500000.0, 70500000.0, 132000000.0], "n_faces": 93, "n_edges": 273, "n_vertices": 182}, "params": {"module": {"type": "float", "default": 6.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 15, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 20.4, "min": 8.2, "max": 51.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 13.0, "min": 2.0, "max": 45.0, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008519 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 6.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 15, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 20.4, \"min\": 8.2, \"max\": 51.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 13.0, \"min\": 2.0, \"max\": 45.0, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad248_1116", "family": "compound", "tier": 1, "seed": 2468008520, "symmetry": "none", "op_count": 2, "ir_hash": "3b165e5f18b61f0d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7920.0, "surface_area": 3370.0, "principal_moments": [262000.0, 1430000.0, 1430000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 16.39, "min": 8.2, "max": 29.5, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 35.1, "min": 14.0, "max": 70.2, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 9.9, "min": 5.0, "max": 14.8, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 15.9, "min": 4.8, "max": 39.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 4.2, "min": 2.0, "max": 7.1, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008520 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 16.39, \"min\": 8.2, \"max\": 29.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 35.1, \"min\": 14.0, \"max\": 70.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 9.9, \"min\": 5.0, \"max\": 14.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 15.9, \"min\": 4.8, \"max\": 39.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 4.2, \"min\": 2.0, \"max\": 7.1, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad249_1117", "family": "plate", "tier": 1, "seed": 2468008521, "symmetry": "none", "op_count": 2, "ir_hash": "a48b1887352b26eb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 113000.0, "surface_area": 24500.0, "principal_moments": [71400000.0, 114000000.0, 183000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 110, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 86.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008521 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 110, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 86.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad24a_1118", "family": "flanged", "tier": 1, "seed": 2468008522, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "bf211f9c7c5d9845", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30500.0, "surface_area": 14100.0, "principal_moments": [9270000.0, 10600000.0, 10600000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 30, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 43.4, "min": 13.0, "max": 108.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 15.6, "min": 2.0, "max": 21.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 70.7, "min": 39.0, "max": 90.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 2.6, "min": 0.8, "max": 17.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 21.2, "min": 14.1, "max": 31.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008522 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 43.4, \"min\": 13.0, \"max\": 108.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 15.6, \"min\": 2.0, \"max\": 21.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 70.7, \"min\": 39.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 2.6, \"min\": 0.8, \"max\": 17.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 21.2, \"min\": 14.1, \"max\": 31.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad24c_1120", "family": "threaded", "tier": 2, "seed": 2468008524, "symmetry": "none", "op_count": 1, "ir_hash": "3fb9a03841e8e258", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3110.0, "surface_area": 2650.0, "principal_moments": [29500.0, 788000.0, 788000.0], "n_faces": 265, "n_edges": 681, "n_vertices": 418}, "params": {"thread_size": {"type": "enum", "default": "3/8", "choices": ["1/4", "5/16", "3/8", "1/2", "5/8", "3/4", "7/8", "1", "1 1/4", "1 1/2"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 55.0, "min": 22.0, "max": 110.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008524 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '3/8', \"choices\": ['1/4', '5/16', '3/8', '1/2', '5/8', '3/4', '7/8', '1', '1 1/4', '1 1/2'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 55.0, \"min\": 22.0, \"max\": 110.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.AcmeThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad24e_1122", "family": "gear", "tier": 1, "seed": 2468008526, "symmetry": "none", "op_count": 1, "ir_hash": "3f451862f8feb009", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2760.0, "surface_area": 2390.0, "principal_moments": [199000.0, 199000.0, 393000.0], "n_faces": 201, "n_edges": 597, "n_vertices": 398}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 33, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 3.4, "min": 1.4, "max": 8.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 6.9, "min": 2.0, "max": 18.3, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008526 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 33, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 3.4, \"min\": 1.4, \"max\": 8.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 6.9, \"min\": 2.0, \"max\": 18.3, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad24f_1123", "family": "bracket", "tier": 1, "seed": 2468008527, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "a1bec89c91bec0be", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41600.0, "surface_area": 14700.0, "principal_moments": [12799999.999999998, 95799999.99999999, 105000000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 22.43, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 78.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 9.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008527 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 22.43, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 78.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 9.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad250_1124", "family": "plate", "tier": 1, "seed": 2468008528, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3c1f92183f00c29a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5030.0, "surface_area": 2370.0, "principal_moments": [141000.0, 468000.0, 488000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 31.63, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 14.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.9, "min": 2.0, "max": 3.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008528 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 31.63, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 14.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.9, \"min\": 2.0, \"max\": 3.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad251_1125", "family": "block", "tier": 2, "seed": 2468008529, "symmetry": "radial", "op_count": 3, "ir_hash": "16304c11a6de0db6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23500.0, "surface_area": 14400.0, "principal_moments": [4480000.0, 6960000.0, 9110000.0], "n_faces": 28, "n_edges": 72, "n_vertices": 44}, "params": {"block_w": {"type": "float", "default": 35.21, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 23.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 49.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 10.6, "min": 7.0, "max": 15.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "boss_d": {"type": "float", "default": 17.8, "min": 8.9, "max": 35.6, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 10.0, "min": 4.0, "max": 25.0, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 12.5, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008529 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35.21, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 23.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 49.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 10.6, \"min\": 7.0, \"max\": 15.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"boss_d\": {\"type\": 'float', \"default\": 17.8, \"min\": 8.9, \"max\": 35.6, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 25.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 12.5, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad252_1126", "family": "flanged", "tier": 1, "seed": 2468008530, "symmetry": "none", "op_count": 2, "ir_hash": "95f1b82f8cd32833", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 58800.0, "surface_area": 17500.0, "principal_moments": [21700000.0, 21700000.0, 35600000.0], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 50, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 26.5, "min": 7.9, "max": 66.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 20.2, "min": 2.0, "max": 35.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 85.8, "min": 65.0, "max": 150.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.4, "min": 1.3, "max": 10.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 25.7, "min": 17.2, "max": 38.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008530 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 26.5, \"min\": 7.9, \"max\": 66.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 20.2, \"min\": 2.0, \"max\": 35.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 85.8, \"min\": 65.0, \"max\": 150.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.4, \"min\": 1.3, \"max\": 10.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 25.7, \"min\": 17.2, \"max\": 38.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad254_1128", "family": "block", "tier": 1, "seed": 2468008532, "symmetry": "none", "op_count": 2, "ir_hash": "890d1228c2ec8578", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 599000.0, "surface_area": 48400.0, "principal_moments": [629000000.0, 724000000.0, 904000000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 90, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 67.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008532 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 90, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 67.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 33.8\n _ssy = 29.5\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad255_1129", "family": "plate", "tier": 1, "seed": 2468008533, "symmetry": "none", "op_count": 2, "ir_hash": "f3c74a50781d97c6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5000.0, "surface_area": 3700.0, "principal_moments": [255000.0, 1260000.0, 1500000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"plate_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 24.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.8, "min": 2.0, "max": 2.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008533 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 24.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.8, \"min\": 2.0, \"max\": 2.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(14.7, 6.5, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad256_1130", "family": "ribbed", "tier": 2, "seed": 2468008534, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "8e6c13337251fdd7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 56900.0, "surface_area": 19000.0, "principal_moments": [19000000.0, 26599999.999999996, 42800000.0], "n_faces": 39, "n_edges": 108, "n_vertices": 72}, "params": {"base_w": {"type": "float", "default": 75, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 63.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 9.3, "min": 3.7, "max": 18.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.1, "min": 1.0, "max": 12.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008534 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 75, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 63.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 9.3, \"min\": 3.7, \"max\": 18.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.1, \"min\": 1.0, \"max\": 12.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad257_1131", "family": "compound", "tier": 1, "seed": 2468008535, "symmetry": "none", "op_count": 2, "ir_hash": "03ef0bbe34722a20", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 321000.0, "surface_area": 36200.0, "principal_moments": [231000000.0, 296000000.0, 366000000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 47.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 89.9, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 31.9, "min": 12.8, "max": 52.5, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 30.1, "min": 9.6, "max": 127.6, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 19.0, "min": 2.0, "max": 23.0, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008535 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 47.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 89.9, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 31.9, \"min\": 12.8, \"max\": 52.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 30.1, \"min\": 9.6, \"max\": 127.6, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 19.0, \"min\": 2.0, \"max\": 23.0, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad258_1132", "family": "plate", "tier": 1, "seed": 2468008536, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "434c01383f858b65", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1890.0, "surface_area": 1300.0, "principal_moments": [24300.0, 146000.0, 159000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 30.19, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 11.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.3, "min": 2.0, "max": 2.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008536 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30.19, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 11.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.3, \"min\": 2.0, \"max\": 2.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad259_1133", "family": "profiled", "tier": 0, "seed": 2468008537, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "f391a5612c0929cc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8110.0, "surface_area": 3090.0, "principal_moments": [154000.0, 3290000.0, 3290000.0], "n_faces": 7, "n_edges": 15, "n_vertices": 10}, "params": {"circ_r": {"type": "float", "default": 7.03, "min": 3.5, "max": 14.1, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 69.0, "min": 20.7, "max": 207.0, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008537 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 7.03, \"min\": 3.5, \"max\": 14.1, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 69.0, \"min\": 20.7, \"max\": 207.0, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad25a_1134", "family": "block", "tier": 2, "seed": 2468008538, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "ac7c34b6e7f6bf3e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5920.0, "surface_area": 2940.0, "principal_moments": [231000.0, 485000.0, 581000.0], "n_faces": 42, "n_edges": 120, "n_vertices": 80}, "params": {"block_w": {"type": "float", "default": 30, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 12.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 18.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.5, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008538 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 12.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 18.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.5, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.09240736969255575)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad25b_1135", "family": "compound", "tier": 1, "seed": 2468008539, "symmetry": "none", "op_count": 3, "ir_hash": "83980e7bba380056", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 150000.0, "surface_area": 20200.0, "principal_moments": [66199999.99999999, 73000000.0, 82200000.0], "n_faces": 22, "n_edges": 58, "n_vertices": 38}, "params": {"block_w": {"type": "float", "default": 59.09, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 54.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 47.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 7.0, "min": 3.5, "max": 10.7, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 8.5, "min": 2.8, "max": 34.0, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 6.3, "min": 2.0, "max": 8.2, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008539 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 59.09, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 54.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 47.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 7.0, \"min\": 3.5, \"max\": 10.7, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 8.5, \"min\": 2.8, \"max\": 34.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 6.3, \"min\": 2.0, \"max\": 8.2, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad25c_1136", "family": "block", "tier": 2, "seed": 2468008540, "symmetry": "radial", "op_count": 3, "ir_hash": "6da69dbed1d4c90f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 93400.0, "surface_area": 22700.0, "principal_moments": [29999999.999999996, 44100000.0, 58599999.99999999], "n_faces": 40, "n_edges": 114, "n_vertices": 76}, "params": {"block_w": {"type": "float", "default": 67.02, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 32.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 53.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 20.1, "min": 13.4, "max": 30.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008540 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 67.02, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 32.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 53.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 20.1, \"min\": 13.4, \"max\": 30.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.09149154542718624)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad25e_1138", "family": "bracket", "tier": 1, "seed": 2468008542, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "9a7ac50164d79064", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30400.0, "surface_area": 13000.0, "principal_moments": [7660000.0, 53699999.99999999, 58199999.99999999], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 66.14, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 77.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 71.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008542 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 66.14, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 77.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 71.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad25f_1139", "family": "compound", "tier": 1, "seed": 2468008543, "symmetry": "none", "op_count": 3, "ir_hash": "b6c6e9ef5982d5d4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 36700.0, "surface_area": 11400.0, "principal_moments": [7890000.0, 17600000.0, 23199999.999999996], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"base_w": {"type": "float", "default": 74.77, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 47.9, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 10.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 4.2, "min": 2.1, "max": 11.9, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 36.5, "min": 10.9, "max": 109.5, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 3.5, "min": 2.0, "max": 5.2, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 10.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008543 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 74.77, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 47.9, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 10.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 4.2, \"min\": 2.1, \"max\": 11.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 36.5, \"min\": 10.9, \"max\": 109.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 3.5, \"min\": 2.0, \"max\": 5.2, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 10.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad260_1140", "family": "bracket", "tier": 1, "seed": 2468008544, "symmetry": "none", "op_count": 1, "ir_hash": "1fd8ca8e7a8a347a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29100.0, "surface_area": 11600.0, "principal_moments": [9060000.0, 14699999.999999998, 17900000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 48.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008544 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 48.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad263_1143", "family": "gear", "tier": 1, "seed": 2468008547, "symmetry": "none", "op_count": 1, "ir_hash": "95be51f45cb9a8d9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12500.0, "surface_area": 5400.0, "principal_moments": [1600000.0, 1600000.0, 3040000.0], "n_faces": 177, "n_edges": 525, "n_vertices": 350}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 29, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 8.7, "min": 3.5, "max": 21.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 6.9, "min": 2.0, "max": 23.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008547 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 29, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 8.7, \"min\": 3.5, \"max\": 21.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 6.9, \"min\": 2.0, \"max\": 23.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad264_1144", "family": "threaded", "tier": 1, "seed": 2468008548, "symmetry": "none", "op_count": 1, "ir_hash": "ac9db59b0181b8b8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6400.0, "surface_area": 3830.0, "principal_moments": [326000.0, 773000.0, 773000.0], "n_faces": 183, "n_edges": 665, "n_vertices": 484}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 33.9, "min": 13.6, "max": 67.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008548 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 33.9, \"min\": 13.6, \"max\": 67.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad266_1146", "family": "plate", "tier": 1, "seed": 2468008550, "symmetry": "radial", "op_count": 2, "ir_hash": "0298001ccc7e7790", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16200.0, "surface_area": 5190.0, "principal_moments": [1150000.0, 5000000.0, 5880000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 27.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 18.0, "min": 12.0, "max": 27.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008550 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 27.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 18.0, \"min\": 12.0, \"max\": 27.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad267_1147", "family": "gear", "tier": 1, "seed": 2468008551, "symmetry": "none", "op_count": 1, "ir_hash": "276882b62b600e64", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9320.0, "surface_area": 4240.0, "principal_moments": [850000.0, 850000.0, 1560000.0], "n_faces": 147, "n_edges": 435, "n_vertices": 290}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 24, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 9.5, "min": 3.8, "max": 23.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 5.5, "min": 2.0, "max": 19.3, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008551 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 24, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 9.5, \"min\": 3.8, \"max\": 23.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.0, \"max\": 19.3, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad269_1149", "family": "revolved", "tier": 1, "seed": 2468008553, "symmetry": "radial", "op_count": 1, "ir_hash": "cd543347d6f3a380", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61300.0, "surface_area": 14000.0, "principal_moments": [19300000.0, 21000000.0, 21000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 45.82, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 55.8, "min": 16.7, "max": 167.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008553 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45.82, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 55.8, \"min\": 16.7, \"max\": 167.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad26a_1150", "family": "revolved", "tier": 1, "seed": 2468008554, "symmetry": "none", "op_count": 2, "ir_hash": "1be0c7acd8c79560", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2030.0, "surface_area": 1550.0, "principal_moments": [29900.0, 188000.0, 188000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 9.98, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 33.3, "min": 10.0, "max": 99.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 7.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 1.4, "min": 0.1, "max": 4.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008554 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 9.98, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 33.3, \"min\": 10.0, \"max\": 99.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 7.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.4, \"min\": 0.1, \"max\": 4.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad26d_1153", "family": "revolved", "tier": 1, "seed": 2468008557, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "703ea0688bd65910", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1130000.0, "surface_area": 92300.0, "principal_moments": [948000000.0, 6810000000.0, 6810000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 78.29, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 259.5, "min": 77.8, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 24.3, "min": 2.0, "max": 54.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008557 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 78.29, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 259.5, \"min\": 77.8, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 24.3, \"min\": 2.0, \"max\": 54.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad271_1157", "family": "block", "tier": 2, "seed": 2468008561, "symmetry": "none", "op_count": 3, "ir_hash": "a6517c40df2d2356", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 304000.0, "surface_area": 32500.0, "principal_moments": [172000000.0, 285000000.0, 317000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 92.59, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 53.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 63.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 11.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 9.5, "min": 4.8, "max": 19.0, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 11.2, "min": 4.5, "max": 28.0, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008561 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 92.59, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 53.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 63.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 11.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 9.5, \"min\": 4.8, \"max\": 19.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 11.2, \"min\": 4.5, \"max\": 28.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad272_1158", "family": "revolved", "tier": 1, "seed": 2468008562, "symmetry": "radial", "op_count": 2, "ir_hash": "e82e0a88c1ac7e41", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 820.0, "surface_area": 679.0, "principal_moments": [15700.0, 15700.0, 26500.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 14.88, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 7.4, "min": 2.2, "max": 22.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008562 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 14.88, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 7.4, \"min\": 2.2, \"max\": 22.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 3.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad275_1161", "family": "bracket", "tier": 1, "seed": 2468008565, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "78ac89d3b30d29b7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19200.0, "surface_area": 14400.0, "principal_moments": [5370000.0, 36700000.0, 39000000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 70.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30.91, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 74.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008565 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 70.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30.91, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 74.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad276_1162", "family": "compound", "tier": 2, "seed": 2468008566, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "159a008c7e4f8d0b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21600.0, "surface_area": 5610.0, "principal_moments": [2700000.0, 2810000.0, 3980000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 30, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 34.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 20.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 4.3, "min": 2.1, "max": 7.3, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 16.7, "min": 2.2, "max": 29.8, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 3.4, "min": 2.0, "max": 5.4, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008566 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 34.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 20.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.1, \"max\": 7.3, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 16.7, \"min\": 2.2, \"max\": 29.8, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 3.4, \"min\": 2.0, \"max\": 5.4, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad277_1163", "family": "ribbed", "tier": 2, "seed": 2468008567, "symmetry": "none", "op_count": 2, "ir_hash": "aaf17db50b08a571", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 48200.0, "surface_area": 19300.0, "principal_moments": [11499999.999999998, 25399999.999999996, 33299999.999999996], "n_faces": 54, "n_edges": 132, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 77.97, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 40.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 12.2, "min": 4.9, "max": 24.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.7, "min": 1.0, "max": 9.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008567 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 77.97, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 40.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 12.2, \"min\": 4.9, \"max\": 24.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.7, \"min\": 1.0, \"max\": 9.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad278_1164", "family": "bracket", "tier": 1, "seed": 2468008568, "symmetry": "none", "op_count": 1, "ir_hash": "3d36b621a1f8db07", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10800.0, "surface_area": 5720.0, "principal_moments": [1380000.0, 6560000.0, 7210000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 44.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008568 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 44.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad27b_1167", "family": "enclosure", "tier": 1, "seed": 2468008571, "symmetry": "none", "op_count": 2, "ir_hash": "51b13b6caf15c34e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24400.0, "surface_area": 23800.0, "principal_moments": [8970000.0, 22400000.0, 22600000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 80, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 33.9, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 42.8, "min": 17.1, "max": 85.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.1, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008571 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 80, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 33.9, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 42.8, \"min\": 17.1, \"max\": 85.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.1, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad27c_1168", "family": "profiled", "tier": 1, "seed": 2468008572, "symmetry": "none", "op_count": 1, "ir_hash": "90872c283da65e15", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5930.0, "surface_area": 4490.0, "principal_moments": [246000.0, 1570000.0, 1570000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 15.35, "min": 7.7, "max": 30.7, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 54.1, "min": 16.2, "max": 162.3, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 9.8, "min": 2.0, "max": 12.3, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008572 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 15.35, \"min\": 7.7, \"max\": 30.7, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 54.1, \"min\": 16.2, \"max\": 162.3, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 9.8, \"min\": 2.0, \"max\": 12.3, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad27d_1169", "family": "revolved", "tier": 0, "seed": 2468008573, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "194403c1bcbb665b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 91300.0, "surface_area": 17500.0, "principal_moments": [43700000.0, 43700000.0, 77000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 31.0, "min": 9.3, "max": 93.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008573 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 31.0, \"min\": 9.3, \"max\": 93.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad27e_1170", "family": "gear", "tier": 1, "seed": 2468008574, "symmetry": "none", "op_count": 1, "ir_hash": "987257c948067012", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15000.0, "surface_area": 6630.0, "principal_moments": [2670000.0, 2670000.0, 5210000.0], "n_faces": 159, "n_edges": 471, "n_vertices": 314}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 26, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 7.3, "min": 2.9, "max": 18.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 7.6, "min": 2.0, "max": 28.2, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008574 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 26, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 7.3, \"min\": 2.9, \"max\": 18.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 7.6, \"min\": 2.0, \"max\": 28.2, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad27f_1171", "family": "bracket", "tier": 2, "seed": 2468008575, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "61f9d79d178af0cc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11300.0, "surface_area": 5630.0, "principal_moments": [1840000.0, 1880000.0, 2940000.0], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 30.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.4, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008575 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 30.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.4, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad281_1173", "family": "bracket", "tier": 1, "seed": 2468008577, "symmetry": "none", "op_count": 1, "ir_hash": "768c906228ed65c8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 44500.0, "surface_area": 15400.0, "principal_moments": [10200000.0, 103000000.0, 108000000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 86.03, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 64.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008577 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 86.03, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 64.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad282_1174", "family": "bracket", "tier": 1, "seed": 2468008578, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "dca3ebfae9cffa0d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22600.0, "surface_area": 9670.0, "principal_moments": [5590000.0, 20400000.0, 23099999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 81.39, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 62.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 27.41, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008578 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 81.39, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 62.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 27.41, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad285_1177", "family": "block", "tier": 2, "seed": 2468008581, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "7359e64d64c8cad6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 77500.0, "surface_area": 18400.0, "principal_moments": [22300000.0, 37200000.0, 50899999.99999999], "n_faces": 19, "n_edges": 57, "n_vertices": 38}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 24.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 75.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "pocket_w": {"type": "float", "default": 31.3, "min": 15.7, "max": 40.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 16.8, "min": 8.4, "max": 19.7, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 27.4, "min": 11.0, "max": 64.3, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008581 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 24.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 75.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"pocket_w\": {\"type\": 'float', \"default\": 31.3, \"min\": 15.7, \"max\": 40.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 16.8, \"min\": 8.4, \"max\": 19.7, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 27.4, \"min\": 11.0, \"max\": 64.3, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 18.8\n _ssy = 17.5\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad286_1178", "family": "threaded", "tier": 2, "seed": 2468008582, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "81c8a6ecfcf9ff77", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3230.0, "surface_area": 2060.0, "principal_moments": [49100.0, 342000.0, 342000.0], "n_faces": 204, "n_edges": 522, "n_vertices": 320}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 34.5, "min": 13.8, "max": 69.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008582 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 34.5, \"min\": 13.8, \"max\": 69.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad287_1179", "family": "ribbed", "tier": 1, "seed": 2468008583, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "81bfd3f688cecb04", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30500.0, "surface_area": 11000.0, "principal_moments": [6480000.0, 13099999.999999998, 19000000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 70, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 48.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 6.1, "min": 2.4, "max": 12.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.3, "min": 1.0, "max": 8.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008583 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 48.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 6.1, \"min\": 2.4, \"max\": 12.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.3, \"min\": 1.0, \"max\": 8.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad288_1180", "family": "compound", "tier": 2, "seed": 2468008584, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "592cbff437752990", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 40100.0, "surface_area": 7760.0, "principal_moments": [6900000.0, 10800000.0, 10800000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"base_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 24.23, "min": 14.5, "max": 38.8, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 18.6, "min": 7.4, "max": 46.5, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 24.4, "min": 12.2, "max": 31.4, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 30.3, "min": 9.1, "max": 75.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008584 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 24.23, \"min\": 14.5, \"max\": 38.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 18.6, \"min\": 7.4, \"max\": 46.5, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 24.4, \"min\": 12.2, \"max\": 31.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 30.3, \"min\": 9.1, \"max\": 75.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad289_1181", "family": "block", "tier": 2, "seed": 2468008585, "symmetry": "radial", "op_count": 3, "ir_hash": "4ee28250ef5c4708", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 320000.0, "surface_area": 39100.0, "principal_moments": [260000000.0, 312000000.0, 497000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 90, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 36.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 27.0, "min": 18.0, "max": 40.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "boss_d": {"type": "float", "default": 24.8, "min": 12.4, "max": 49.6, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 10.7, "min": 4.3, "max": 26.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 13.0, "min": 2.0, "max": 17.4, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008585 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 90, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 36.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 27.0, \"min\": 18.0, \"max\": 40.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"boss_d\": {\"type\": 'float', \"default\": 24.8, \"min\": 12.4, \"max\": 49.6, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 10.7, \"min\": 4.3, \"max\": 26.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 13.0, \"min\": 2.0, \"max\": 17.4, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad28b_1183", "family": "plate", "tier": 1, "seed": 2468008587, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "f953e175c324c6f1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1210.0, "surface_area": 933.0, "principal_moments": [13400.0, 49000.0, 55100.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 21.49, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 10.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008587 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 21.49, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad28c_1184", "family": "block", "tier": 1, "seed": 2468008588, "symmetry": "none", "op_count": 2, "ir_hash": "44f2d235c64b5973", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 226000.0, "surface_area": 28400.0, "principal_moments": [124000000.0, 145000000.0, 188000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 47.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 66.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 10.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008588 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 47.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 66.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 10.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad28d_1185", "family": "revolved", "tier": 1, "seed": 2468008589, "symmetry": "radial", "op_count": 2, "ir_hash": "6025798c3fc3585a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 102000.0, "surface_area": 23900.0, "principal_moments": [24399999.999999996, 101000000.0, 101000000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 40, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 121.4, "min": 36.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008589 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 121.4, \"min\": 36.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 3.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad28f_1187", "family": "block", "tier": 2, "seed": 2468008591, "symmetry": "radial", "op_count": 3, "ir_hash": "5b0c6d6326ff39f4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 231000.0, "surface_area": 29200.0, "principal_moments": [113000000.0, 180000000.0, 181000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 80.43, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 54.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 54.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.1, "min": 16.1, "max": 36.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008591 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80.43, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 54.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 54.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.1, \"min\": 16.1, \"max\": 36.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.10364752291741089)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad290_1188", "family": "revolved", "tier": 1, "seed": 2468008592, "symmetry": "none", "op_count": 2, "ir_hash": "7a94a25db83e8d5a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1170000.0, "surface_area": 118000.0, "principal_moments": [1490000000.0, 8490000000.0, 8490000000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 75.07, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 259.1, "min": 77.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 34.1, "min": 2.0, "max": 52.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 128.4, "min": 90.1, "max": 225.2, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 30.4, "min": 9.1, "max": 129.6, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 1.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008592 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75.07, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 259.1, \"min\": 77.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 34.1, \"min\": 2.0, \"max\": 52.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 128.4, \"min\": 90.1, \"max\": 225.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 30.4, \"min\": 9.1, \"max\": 129.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 1.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z or Z or Z or 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad295_1193", "family": "compound", "tier": 2, "seed": 2468008597, "symmetry": "none", "op_count": 3, "ir_hash": "b9f9c213f2e7636c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 66800.0, "surface_area": 20000.0, "principal_moments": [31499999.999999996, 59199999.99999999, 71900000.0], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"base_w": {"type": "float", "default": 103.33, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 68.7, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 8.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 9.3, "min": 4.7, "max": 17.2, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 47.9, "min": 14.4, "max": 143.7, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008597 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 103.33, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 68.7, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 9.3, \"min\": 4.7, \"max\": 17.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 47.9, \"min\": 14.4, \"max\": 143.7, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad296_1194", "family": "profiled", "tier": 1, "seed": 2468008598, "symmetry": "none", "op_count": 1, "ir_hash": "9f551ebca516b9b6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 56300.0, "surface_area": 9840.0, "principal_moments": [5280000.0, 46099999.99999999, 46099999.99999999], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"circ_r": {"type": "float", "default": 15, "min": 7.5, "max": 30.0, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 96.3, "min": 28.9, "max": 288.9, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008598 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 15, \"min\": 7.5, \"max\": 30.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 96.3, \"min\": 28.9, \"max\": 288.9, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad297_1195", "family": "revolved", "tier": 2, "seed": 2468008599, "symmetry": "none", "op_count": 2, "ir_hash": "d269e5fdec1f1b62", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45600.0, "surface_area": 9610.0, "principal_moments": [11999999.999999998, 11999999.999999998, 17300000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 50, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 30.0, "min": 9.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 23.4, "min": 2.0, "max": 35.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 1.4, "min": 0.1, "max": 4.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008599 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 30.0, \"min\": 9.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 23.4, \"min\": 2.0, \"max\": 35.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.4, \"min\": 0.1, \"max\": 4.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad299_1197", "family": "flanged", "tier": 1, "seed": 2468008601, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "2f0fefdd531bc17c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 75900.0, "surface_area": 20700.0, "principal_moments": [35500000.0, 37700000.0, 37700000.0], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 41.82, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 51.0, "min": 15.3, "max": 127.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.8, "min": 2.0, "max": 29.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 83.4, "min": 54.4, "max": 125.5, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.8, "min": 1.4, "max": 20.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 25.0, "min": 16.7, "max": 37.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008601 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 41.82, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 51.0, \"min\": 15.3, \"max\": 127.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.8, \"min\": 2.0, \"max\": 29.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 83.4, \"min\": 54.4, \"max\": 125.5, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.8, \"min\": 1.4, \"max\": 20.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 25.0, \"min\": 16.7, \"max\": 37.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad29a_1198", "family": "enclosure", "tier": 1, "seed": 2468008602, "symmetry": "none", "op_count": 2, "ir_hash": "3282c607cbf08a58", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 60900.0, "surface_area": 22600.0, "principal_moments": [24099999.999999996, 43200000.0, 46099999.99999999], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 70, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 36.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 48.2, "min": 19.3, "max": 96.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.7, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008602 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 70, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 36.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 48.2, \"min\": 19.3, \"max\": 96.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad29b_1199", "family": "block", "tier": 2, "seed": 2468008603, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "a598dc3f0a4e4367", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 352000.0, "surface_area": 60000.0, "principal_moments": [330000000.0, 368000000.0, 527000000.0], "n_faces": 27, "n_edges": 72, "n_vertices": 48}, "params": {"block_w": {"type": "float", "default": 88.35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 51.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 10.1, "min": 2.0, "max": 15.2, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "pocket_w": {"type": "float", "default": 50.7, "min": 25.4, "max": 70.7, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 27.1, "min": 13.6, "max": 41.5, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 48.1, "min": 19.2, "max": 85.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008603 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 88.35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 51.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.1, \"min\": 2.0, \"max\": 15.2, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 50.7, \"min\": 25.4, \"max\": 70.7, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 27.1, \"min\": 13.6, \"max\": 41.5, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 48.1, \"min\": 19.2, \"max\": 85.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad29c_1200", "family": "revolved", "tier": 1, "seed": 2468008604, "symmetry": "radial", "op_count": 1, "ir_hash": "f1944c0c4238f8fa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 311000.0, "surface_area": 37000.0, "principal_moments": [187000000.0, 416000000.0, 416000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 64.67, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 111.5, "min": 33.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 25.1, "min": 2.0, "max": 45.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008604 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 64.67, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 111.5, \"min\": 33.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 25.1, \"min\": 2.0, \"max\": 45.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad29d_1201", "family": "gear", "tier": 2, "seed": 2468008605, "symmetry": "none", "op_count": 1, "ir_hash": "bdaa80c8f67fead7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23400.0, "surface_area": 10200.0, "principal_moments": [7290000.0, 7290000.0, 14399999.999999998], "n_faces": 201, "n_edges": 597, "n_vertices": 398}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 33, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.3, "min": 2.5, "max": 15.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 15.0, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.3, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.5, "min": 0.0, "max": 1.0, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 8.8, "min": 2.0, "max": 36.6, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008605 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 33, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.3, \"min\": 2.5, \"max\": 15.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 15.0, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.3, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.5, \"min\": 0.0, \"max\": 1.0, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 8.8, \"min\": 2.0, \"max\": 36.6, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad2a0_1204", "family": "revolved", "tier": 0, "seed": 2468008608, "symmetry": "radial", "op_count": 1, "ir_hash": "1fcf21921dd27b66", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29000.0, "surface_area": 9460.0, "principal_moments": [3960000.0, 8370000.0, 8370000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 30.16, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 60.9, "min": 18.3, "max": 182.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008608 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30.16, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 60.9, \"min\": 18.3, \"max\": 182.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad2a1_1205", "family": "enclosure", "tier": 1, "seed": 2468008609, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f4f7bc964242ecea", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 96800.0, "surface_area": 38800.0, "principal_moments": [76300000.0, 118000000.0, 146000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 90.39, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 63.9, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 49.8, "min": 19.9, "max": 99.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008609 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 90.39, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 63.9, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 49.8, \"min\": 19.9, \"max\": 99.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2a2_1206", "family": "bracket", "tier": 2, "seed": 2468008610, "symmetry": "none", "op_count": 1, "ir_hash": "937a7baa02692c0e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19400.0, "surface_area": 8020.0, "principal_moments": [3980000.0, 4510000.0, 7630000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 27.33, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 7.6, "min": 3.0, "max": 18.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008610 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 27.33, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 7.6, \"min\": 3.0, \"max\": 18.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad2a3_1207", "family": "ribbed", "tier": 1, "seed": 2468008611, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "edfb76c36e0a2ea1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 43400.0, "surface_area": 19900.0, "principal_moments": [13899999.999999998, 26299999.999999996, 38700000.0], "n_faces": 54, "n_edges": 132, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 85.56, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 55.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 9.3, "min": 3.7, "max": 18.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.9, "min": 1.0, "max": 9.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008611 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 85.56, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 55.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 9.3, \"min\": 3.7, \"max\": 18.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.9, \"min\": 1.0, \"max\": 9.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad2a4_1208", "family": "compound", "tier": 2, "seed": 2468008612, "symmetry": "none", "op_count": 3, "ir_hash": "5f8c1e62c2ee9fca", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 138000.0, "surface_area": 18100.0, "principal_moments": [24699999.999999996, 196000000.0, 196000000.0], "n_faces": 12, "n_edges": 24, "n_vertices": 16}, "params": {"shaft_d": {"type": "float", "default": 40.28, "min": 20.1, "max": 72.5, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 88.5, "min": 35.4, "max": 177.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 24.6, "min": 12.3, "max": 36.3, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 46.2, "min": 13.9, "max": 115.5, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "head_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Head", "label": "Drive head sides"}, "head_r": {"type": "float", "default": 9.8, "min": 5.9, "max": 11.8, "step": 1.0, "group": "Head", "label": "Drive head circumradius (mm)"}, "head_len": {"type": "float", "default": 12.6, "min": 3.8, "max": 25.2, "step": 1.0, "group": "Head", "label": "Drive head length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008612 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 40.28, \"min\": 20.1, \"max\": 72.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 88.5, \"min\": 35.4, \"max\": 177.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 24.6, \"min\": 12.3, \"max\": 36.3, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 46.2, \"min\": 13.9, \"max\": 115.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"head_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Head', \"label\": 'Drive head sides'},\n \"head_r\": {\"type\": 'float', \"default\": 9.8, \"min\": 5.9, \"max\": 11.8, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head circumradius (mm)'},\n \"head_len\": {\"type\": 'float', \"default\": 12.6, \"min\": 3.8, \"max\": 25.2, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"head_sides\"], p[\"head_r\"] * 2).extrude(p[\"head_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad2a5_1209", "family": "block", "tier": 1, "seed": 2468008613, "symmetry": "none", "op_count": 2, "ir_hash": "a28d3b57a1d8b9da", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 119000.0, "surface_area": 21400.0, "principal_moments": [43500000.0, 55299999.99999999, 80500000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 60, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 31.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 68.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 7.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008613 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 60, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 31.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 68.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 7.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad2a6_1210", "family": "block", "tier": 2, "seed": 2468008614, "symmetry": "radial", "op_count": 3, "ir_hash": "71a639ee607ea3cf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 899000.0, "surface_area": 60000.0, "principal_moments": [1360000000.0, 1360000000.0, 1490000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 100.0, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 91.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 30.0, "min": 20.0, "max": 45.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008614 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 100.0, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 91.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 30.0, \"min\": 20.0, \"max\": 45.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.10764621444228775)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2a9_1213", "family": "bracket", "tier": 1, "seed": 2468008617, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "0b8c9b739e66ae65", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7940.0, "surface_area": 5130.0, "principal_moments": [1220000.0, 4660000.0, 5460000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 65.47, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 52.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 17.74, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 7.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008617 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 65.47, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 52.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 17.74, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 7.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad2ab_1215", "family": "block", "tier": 2, "seed": 2468008619, "symmetry": "none", "op_count": 3, "ir_hash": "cc8eb7975f96ab1d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 48800.0, "surface_area": 12300.0, "principal_moments": [8600000.0, 14399999.999999998, 18100000.0], "n_faces": 21, "n_edges": 47, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 39.52, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 24.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 49.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.4, "min": 2.0, "max": 2.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "boss_d": {"type": "float", "default": 20.7, "min": 10.3, "max": 41.4, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 10.0, "min": 4.0, "max": 25.0, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 14.5, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008619 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 39.52, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 24.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 49.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 2.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"boss_d\": {\"type\": 'float', \"default\": 20.7, \"min\": 10.3, \"max\": 41.4, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 25.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 14.5, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 9.9\n _ssy = 10.0\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad2ac_1216", "family": "gear", "tier": 2, "seed": 2468008620, "symmetry": "none", "op_count": 1, "ir_hash": "6aaf2e513cfc5ba6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2970.0, "surface_area": 1870.0, "principal_moments": [109000.0, 109000.0, 184000.0], "n_faces": 115, "n_edges": 339, "n_vertices": 226}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 14, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 8.4, "min": 3.4, "max": 21.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": 0.23, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.38, "min": 0.0, "max": 0.75, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 3.0, "min": 2.0, "max": 10.3, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008620 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 14, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.4, \"max\": 21.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.23, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.38, \"min\": 0.0, \"max\": 0.75, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 10.3, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2ad_1217", "family": "bracket", "tier": 1, "seed": 2468008621, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "7d9b2af0552c7811", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29900.0, "surface_area": 16600.0, "principal_moments": [13399999.999999998, 29099999.999999996, 30799999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 70.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008621 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 70.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2af_1219", "family": "bracket", "tier": 2, "seed": 2468008623, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "af4e30a5b1cc858e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17600.0, "surface_area": 13500.0, "principal_moments": [6220000.0, 20800000.0, 24799999.999999996], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 87.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 29.24, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 2.4, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008623 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 87.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 29.24, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.4, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad2b0_1220", "family": "gear", "tier": 1, "seed": 2468008624, "symmetry": "none", "op_count": 1, "ir_hash": "8210b36c43b1c491", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19400.0, "surface_area": 8010.0, "principal_moments": [4320000.0, 4320000.0, 8440000.0], "n_faces": 141, "n_edges": 417, "n_vertices": 278}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 23, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 7.9, "min": 3.2, "max": 19.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 11.5, "min": 2.0, "max": 30.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008624 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 23, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 7.9, \"min\": 3.2, \"max\": 19.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 11.5, \"min\": 2.0, \"max\": 30.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad2b1_1221", "family": "profiled", "tier": 1, "seed": 2468008625, "symmetry": "none", "op_count": 1, "ir_hash": "7b8899324adc3b05", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 197000.0, "surface_area": 30700.0, "principal_moments": [27399999.999999996, 1370000000.0, 1390000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 40.01, "min": 20.0, "max": 80.0, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 19.04, "min": 9.5, "max": 38.1, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 288.1, "min": 86.4, "max": 864.3, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008625 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 40.01, \"min\": 20.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 19.04, \"min\": 9.5, \"max\": 38.1, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 288.1, \"min\": 86.4, \"max\": 864.3, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad2b2_1222", "family": "ribbed", "tier": 1, "seed": 2468008626, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "a398b3394379785e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23800.0, "surface_area": 10900.0, "principal_moments": [4450000.0, 7250000.0, 9980000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 42.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.8, "min": 6.7, "max": 33.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.4, "min": 1.0, "max": 6.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008626 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 42.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.8, \"min\": 6.7, \"max\": 33.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.4, \"min\": 1.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad2b3_1223", "family": "gear", "tier": 2, "seed": 2468008627, "symmetry": "none", "op_count": 1, "ir_hash": "d53a2dc72981af3f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2080.0, "surface_area": 1590.0, "principal_moments": [75500.0, 75500.0, 141000.0], "n_faces": 179, "n_edges": 531, "n_vertices": 354}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 22, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.4, "min": 2.2, "max": 13.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 11.2, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.15, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.21, "min": 0.0, "max": 0.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 4.4, "min": 2.0, "max": 11.7, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008627 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 22, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.4, \"min\": 2.2, \"max\": 13.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 11.2, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.15, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.21, \"min\": 0.0, \"max\": 0.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 4.4, \"min\": 2.0, \"max\": 11.7, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad2b4_1224", "family": "revolved", "tier": 1, "seed": 2468008628, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "9289d0603f4907d1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9760.0, "surface_area": 4520.0, "principal_moments": [925000.0, 1070000.0, 1070000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 17.98, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 34.1, "min": 10.2, "max": 102.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 31.2, "min": 21.6, "max": 53.9, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.8, "min": 2.3, "max": 17.1, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008628 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 17.98, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 34.1, \"min\": 10.2, \"max\": 102.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 31.2, \"min\": 21.6, \"max\": 53.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.8, \"min\": 2.3, \"max\": 17.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad2b5_1225", "family": "enclosure", "tier": 1, "seed": 2468008629, "symmetry": "none", "op_count": 2, "ir_hash": "c47cf95153e47070", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 67600.0, "surface_area": 28900.0, "principal_moments": [40500000.0, 58799999.99999999, 72200000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 75, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 55.2, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 45.0, "min": 18.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.9, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008629 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 75, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 55.2, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 45.0, \"min\": 18.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad2b6_1226", "family": "flanged", "tier": 1, "seed": 2468008630, "symmetry": "none", "op_count": 2, "ir_hash": "e8652c1ffc8412a2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 416000.0, "surface_area": 63100.0, "principal_moments": [616000000.0, 616000000.0, 795000000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 70, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 75.0, "min": 22.5, "max": 187.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 27.5, "min": 2.0, "max": 49.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 154.7, "min": 91.0, "max": 210.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 11.6, "min": 3.5, "max": 30.0, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 46.4, "min": 30.9, "max": 69.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008630 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 75.0, \"min\": 22.5, \"max\": 187.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 27.5, \"min\": 2.0, \"max\": 49.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 154.7, \"min\": 91.0, \"max\": 210.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 11.6, \"min\": 3.5, \"max\": 30.0, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 46.4, \"min\": 30.9, \"max\": 69.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad2b7_1227", "family": "block", "tier": 1, "seed": 2468008631, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "458cc027b3d6fc32", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18000.0, "surface_area": 5740.0, "principal_moments": [1770000.0, 2450000.0, 3050000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 27.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 19.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.6, "min": 2.0, "max": 2.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008631 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 27.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 19.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.6, \"min\": 2.0, \"max\": 2.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 6.6\n _ssy = 6.2\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad2b8_1228", "family": "gear", "tier": 0, "seed": 2468008632, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "bc52fae8e40d727f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 100000.0, "surface_area": 21500.0, "principal_moments": [52999999.99999999, 52999999.99999999, 102000000.0], "n_faces": 218, "n_edges": 648, "n_vertices": 432}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 36, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 15.9, "min": 6.4, "max": 39.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008632 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 36, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 15.9, \"min\": 6.4, \"max\": 39.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2b9_1229", "family": "bracket", "tier": 2, "seed": 2468008633, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "0d2ade9d9b33173b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 88400.0, "surface_area": 26500.0, "principal_moments": [40500000.0, 190000000.0, 194000000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 86.47, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 87.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 59.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 6.9, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008633 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 86.47, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 87.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 59.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.9, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2ba_1230", "family": "bracket", "tier": 1, "seed": 2468008634, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ac85e7d77937ecf8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27800.0, "surface_area": 15500.0, "principal_moments": [11799999.999999998, 23599999.999999996, 26099999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 61.87, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 69.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55.33, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008634 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 61.87, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 69.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55.33, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.058786257194080295)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad2bd_1233", "family": "block", "tier": 1, "seed": 2468008637, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "37d9c46147f08e5c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 100000.0, "surface_area": 19000.0, "principal_moments": [24299999.999999996, 58299999.99999999, 68000000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 45, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 29.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 78.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.2, "min": 2.0, "max": 2.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008637 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 29.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 78.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 2.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 8.4\n _ssy = 6.8\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2be_1234", "family": "bracket", "tier": 1, "seed": 2468008638, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ae60df5bf28b39ad", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7520.0, "surface_area": 4630.0, "principal_moments": [971000.0, 1370000.0, 1800000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 28.65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 33.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 32.99, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008638 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 28.65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 33.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 32.99, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad2c0_1236", "family": "flanged", "tier": 1, "seed": 2468008640, "symmetry": "none", "op_count": 2, "ir_hash": "baaa915c07197789", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 605000.0, "surface_area": 90400.0, "principal_moments": [1190000000.0, 1190000000.0, 1310000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 84.21, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 92.8, "min": 27.8, "max": 232.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 32.2, "min": 2.0, "max": 58.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 187.3, "min": 109.5, "max": 252.6, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.5, "min": 2.2, "max": 37.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 56.2, "min": 37.5, "max": 84.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008640 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 84.21, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 92.8, \"min\": 27.8, \"max\": 232.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 32.2, \"min\": 2.0, \"max\": 58.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 187.3, \"min\": 109.5, \"max\": 252.6, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.5, \"min\": 2.2, \"max\": 37.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 56.2, \"min\": 37.5, \"max\": 84.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad2c1_1237", "family": "compound", "tier": 1, "seed": 2468008641, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "debd6bd94ac3f2ea", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61500.0, "surface_area": 11500.0, "principal_moments": [13199999.999999998, 18400000.0, 22600000.0], "n_faces": 28, "n_edges": 76, "n_vertices": 50}, "params": {"block_w": {"type": "float", "default": 51.54, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 40.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 29.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 4.2, "min": 2.1, "max": 6.7, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 10.5, "min": 1.9, "max": 23.3, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 4.2, "min": 2.0, "max": 5.6, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008641 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 51.54, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 40.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 29.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 4.2, \"min\": 2.1, \"max\": 6.7, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 10.5, \"min\": 1.9, \"max\": 23.3, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 4.2, \"min\": 2.0, \"max\": 5.6, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2c2_1238", "family": "bracket", "tier": 1, "seed": 2468008642, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "a84d0f178324f732", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14400.0, "surface_area": 6470.0, "principal_moments": [2260000.0, 7280000.0, 8220000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 50.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 59.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 23.38, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 9.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008642 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 59.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 23.38, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 9.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad2c4_1240", "family": "ribbed", "tier": 1, "seed": 2468008644, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "460f121c30c4fa7a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8920.0, "surface_area": 5860.0, "principal_moments": [1170000.0, 1760000.0, 2770000.0], "n_faces": 21, "n_edges": 48, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 39.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 7.3, "min": 2.9, "max": 14.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.5, "min": 1.0, "max": 11.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008644 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 39.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 7.3, \"min\": 2.9, \"max\": 14.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.0, \"max\": 11.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad2c5_1241", "family": "threaded", "tier": 2, "seed": 2468008645, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "7b488e9138f58338", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2170.0, "surface_area": 1690.0, "principal_moments": [70500.0, 92600.0, 92600.0], "n_faces": 119, "n_edges": 321, "n_vertices": 204}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 17.9, "min": 7.2, "max": 35.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008645 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 17.9, \"min\": 7.2, \"max\": 35.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad2c6_1242", "family": "revolved", "tier": 0, "seed": 2468008646, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "2b906bdaa9082f1f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 36200.0, "surface_area": 9520.0, "principal_moments": [8130000.0, 8130000.0, 9500000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 41.81, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 39.6, "min": 11.9, "max": 118.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008646 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 41.81, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 39.6, \"min\": 11.9, \"max\": 118.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad2c7_1243", "family": "revolved", "tier": 2, "seed": 2468008647, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "ef423409a702404f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4890.0, "surface_area": 2170.0, "principal_moments": [319000.0, 319000.0, 523000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 26.32, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 12.2, "min": 3.7, "max": 36.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 12.9, "min": 2.0, "max": 18.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 1.1, "min": 0.1, "max": 3.3, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008647 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 26.32, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 12.2, \"min\": 3.7, \"max\": 36.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 12.9, \"min\": 2.0, \"max\": 18.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.1, \"min\": 0.1, \"max\": 3.3, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad2ca_1246", "family": "threaded", "tier": 2, "seed": 2468008650, "symmetry": "none", "op_count": 1, "ir_hash": "15b794b57ec5d6a3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3160.0, "surface_area": 2370.0, "principal_moments": [103000.0, 230000.0, 230000.0], "n_faces": 172, "n_edges": 468, "n_vertices": 298}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 26.1, "min": 10.4, "max": 52.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008650 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 26.1, \"min\": 10.4, \"max\": 52.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad2cb_1247", "family": "threaded", "tier": 1, "seed": 2468008651, "symmetry": "none", "op_count": 1, "ir_hash": "114a63fe20039d16", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 441.0, "surface_area": 658.0, "principal_moments": [1150.0, 28100.0, 28100.0], "n_faces": 350, "n_edges": 900, "n_vertices": 552}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 27.5, "min": 11.0, "max": 55.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008651 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 27.5, \"min\": 11.0, \"max\": 55.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad2cc_1248", "family": "revolved", "tier": 0, "seed": 2468008652, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "c588a1520205bc47", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 131000.0, "surface_area": 23100.0, "principal_moments": [70800000.0, 73200000.0, 73200000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 60, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 69.6, "min": 20.9, "max": 208.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008652 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 69.6, \"min\": 20.9, \"max\": 208.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad2cd_1249", "family": "revolved", "tier": 0, "seed": 2468008653, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "f180fcd5111ef9e1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 79300.0, "surface_area": 17700.0, "principal_moments": [24099999.999999996, 38400000.0, 38400000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 45, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 74.8, "min": 22.4, "max": 224.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008653 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 74.8, \"min\": 22.4, \"max\": 224.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad2ce_1250", "family": "revolved", "tier": 0, "seed": 2468008654, "symmetry": "none", "op_count": 1, "ir_hash": "42397695f762ceb5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5150.0, "surface_area": 2710.0, "principal_moments": [303000.0, 344000.0, 344000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 19.8, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 25.1, "min": 7.5, "max": 75.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008654 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 19.8, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 25.1, \"min\": 7.5, \"max\": 75.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad2d0_1252", "family": "revolved", "tier": 2, "seed": 2468008656, "symmetry": "none", "op_count": 1, "ir_hash": "3c6338b70e72204c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 322000.0, "surface_area": 43200.0, "principal_moments": [166000000.0, 762000000.0, 762000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 50, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 147.4, "min": 44.2, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.1, "min": 2.0, "max": 35.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 82.0, "min": 60.0, "max": 150.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 20.0, "min": 6.0, "max": 73.7, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008656 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 147.4, \"min\": 44.2, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.1, \"min\": 2.0, \"max\": 35.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 82.0, \"min\": 60.0, \"max\": 150.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 20.0, \"min\": 6.0, \"max\": 73.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2d1_1253", "family": "bracket", "tier": 2, "seed": 2468008657, "symmetry": "none", "op_count": 1, "ir_hash": "a40d23eeac09ebd5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9020.0, "surface_area": 6750.0, "principal_moments": [1290000.0, 2760000.0, 3450000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 31.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 36.47, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 25.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 3.7, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008657 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 31.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 36.47, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 25.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.7, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2d2_1254", "family": "bracket", "tier": 2, "seed": 2468008658, "symmetry": "none", "op_count": 1, "ir_hash": "da7c12f506b204d2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35500.0, "surface_area": 13500.0, "principal_moments": [10000000.0, 32999999.999999996, 36000000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 85.04, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 65.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 36.46, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 8.8, "min": 3.0, "max": 18.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008658 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85.04, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 65.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 36.46, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 8.8, \"min\": 3.0, \"max\": 18.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad2d3_1255", "family": "gear", "tier": 1, "seed": 2468008659, "symmetry": "none", "op_count": 1, "ir_hash": "d82012db23754cfb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5710.0, "surface_area": 3030.0, "principal_moments": [348000.0, 348000.0, 604000.0], "n_faces": 87, "n_edges": 255, "n_vertices": 170}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 14, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 9.9, "min": 4.0, "max": 24.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 5.2, "min": 2.0, "max": 13.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008659 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 14, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 9.9, \"min\": 4.0, \"max\": 24.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 13.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad2d5_1257", "family": "plate", "tier": 2, "seed": 2468008661, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "15945b5d90b4606e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8890.0, "surface_area": 3800.0, "principal_moments": [369000.0, 2230000.0, 2510000.0], "n_faces": 42, "n_edges": 120, "n_vertices": 80}, "params": {"plate_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 21.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 6.2, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008661 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 21.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 6.2, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08491836535027113)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad2d6_1258", "family": "flanged", "tier": 1, "seed": 2468008662, "symmetry": "none", "op_count": 2, "ir_hash": "d49543e68146dd69", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 184000.0, "surface_area": 38000.0, "principal_moments": [151000000.0, 160000000.0, 160000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 58.17, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 67.3, "min": 20.2, "max": 168.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 24.6, "min": 2.0, "max": 40.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 113.9, "min": 75.6, "max": 174.5, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.2, "min": 1.6, "max": 26.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 34.2, "min": 22.8, "max": 51.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008662 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 58.17, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 67.3, \"min\": 20.2, \"max\": 168.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 24.6, \"min\": 2.0, \"max\": 40.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 113.9, \"min\": 75.6, \"max\": 174.5, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.2, \"min\": 1.6, \"max\": 26.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 34.2, \"min\": 22.8, \"max\": 51.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad2d8_1260", "family": "plate", "tier": 2, "seed": 2468008664, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "e118925dca943665", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38100.0, "surface_area": 15700.0, "principal_moments": [11999999.999999998, 36500000.0, 48299999.99999999], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 110.05, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 63.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 13.0, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008664 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 110.05, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 63.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 13.0, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.11974915420175014)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad2d9_1261", "family": "flanged", "tier": 1, "seed": 2468008665, "symmetry": "none", "op_count": 2, "ir_hash": "307f36081cc39c03", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39400.0, "surface_area": 12600.0, "principal_moments": [10700000.0, 10700000.0, 12799999.999999998], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 38.63, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 33.3, "min": 10.0, "max": 83.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.6, "min": 2.0, "max": 27.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 65.0, "min": 50.2, "max": 115.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.0, "min": 1.2, "max": 13.3, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 19.5, "min": 13.0, "max": 29.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008665 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 38.63, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 33.3, \"min\": 10.0, \"max\": 83.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.6, \"min\": 2.0, \"max\": 27.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 65.0, \"min\": 50.2, \"max\": 115.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.2, \"max\": 13.3, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 19.5, \"min\": 13.0, \"max\": 29.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad2da_1262", "family": "threaded", "tier": 0, "seed": 2468008666, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "3f9f21108ed15565", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 667.0, "surface_area": 660.0, "principal_moments": [4440.0, 16700.0, 16700.0], "n_faces": 140, "n_edges": 354, "n_vertices": 216}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 16.3, "min": 6.5, "max": 32.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008666 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 16.3, \"min\": 6.5, \"max\": 32.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad2db_1263", "family": "compound", "tier": 1, "seed": 2468008667, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "7eabbf12aef98230", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 84900.0, "surface_area": 12700.0, "principal_moments": [11599999.999999998, 78400000.0, 78400000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 35, "min": 17.5, "max": 63.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 71.5, "min": 28.6, "max": 143.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 22.5, "min": 11.2, "max": 31.5, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 40.6, "min": 12.2, "max": 101.5, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008667 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 35, \"min\": 17.5, \"max\": 63.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 71.5, \"min\": 28.6, \"max\": 143.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 22.5, \"min\": 11.2, \"max\": 31.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 40.6, \"min\": 12.2, \"max\": 101.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad2dc_1264", "family": "block", "tier": 2, "seed": 2468008668, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "d6c9e50304ee2d33", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 319000.0, "surface_area": 34300.0, "principal_moments": [184000000.0, 322000000.0, 393000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 46.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 10.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008668 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 46.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 10.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.09525709409342459)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad2dd_1265", "family": "block", "tier": 2, "seed": 2468008669, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "e32d8cea11b82ac7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 408000.0, "surface_area": 35300.0, "principal_moments": [327000000.0, 384000000.0, 499000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 91.23, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 81.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 55.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008669 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 91.23, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 81.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 55.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.10251870697595211)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad2de_1266", "family": "block", "tier": 1, "seed": 2468008670, "symmetry": "none", "op_count": 2, "ir_hash": "b3c5f1e76db4cf39", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24600.0, "surface_area": 7020.0, "principal_moments": [3530000.0, 3870000.0, 6270000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 40, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 16.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 38.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.7, "min": 2.0, "max": 1.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008670 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 16.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 38.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.7, \"min\": 2.0, \"max\": 1.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 10.0\n _ssy = 9.4\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad2df_1267", "family": "gear", "tier": 0, "seed": 2468008671, "symmetry": "none", "op_count": 1, "ir_hash": "18d0412d4bd1205c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 101000.0, "surface_area": 25600.0, "principal_moments": [74800000.0, 74800000.0, 147000000.0], "n_faces": 218, "n_edges": 648, "n_vertices": 432}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 36, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 11.1, "min": 4.4, "max": 27.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008671 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 36, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 11.1, \"min\": 4.4, \"max\": 27.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad2e0_1268", "family": "compound", "tier": 1, "seed": 2468008672, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "95f0aa2249796337", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 150000.0, "surface_area": 22800.0, "principal_moments": [72100000.0, 81600000.0, 87300000.0], "n_faces": 16, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 56.06, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 50.9, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 51.7, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 11.5, "min": 5.8, "max": 18.1, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 37.7, "min": 6.4, "max": 85.0, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 12.9, "min": 2.0, "max": 15.3, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008672 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 56.06, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 50.9, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 51.7, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 11.5, \"min\": 5.8, \"max\": 18.1, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 37.7, \"min\": 6.4, \"max\": 85.0, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 12.9, \"min\": 2.0, \"max\": 15.3, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad2e2_1270", "family": "plate", "tier": 0, "seed": 2468008674, "symmetry": "none", "op_count": 1, "ir_hash": "95b1ad048e983f6e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 44900.0, "surface_area": 13800.0, "principal_moments": [9970000.0, 45500000.0, 54999999.99999999], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 110, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 51.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008674 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 110, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 51.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad2e3_1271", "family": "threaded", "tier": 1, "seed": 2468008675, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "f3f665f6321aae52", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3080.0, "surface_area": 2300.0, "principal_moments": [32400.0, 588000.0, 588000.0], "n_faces": 320, "n_edges": 822, "n_vertices": 504}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 47.4, "min": 19.0, "max": 94.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008675 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 47.4, \"min\": 19.0, \"max\": 94.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad2e4_1272", "family": "gear", "tier": 1, "seed": 2468008676, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8bddc9f5a869f5c0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5340.0, "surface_area": 3360.0, "principal_moments": [487000.0, 487000.0, 950000.0], "n_faces": 225, "n_edges": 669, "n_vertices": 446}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 37, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.2, "min": 2.1, "max": 13.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 7.2, "min": 2.0, "max": 20.7, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008676 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 37, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.1, \"max\": 13.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 7.2, \"min\": 2.0, \"max\": 20.7, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad2e5_1273", "family": "enclosure", "tier": 2, "seed": 2468008677, "symmetry": "none", "op_count": 4, "ir_hash": "ed26f65ba1f5fb11", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 54100.0, "surface_area": 37100.0, "principal_moments": [38300000.0, 68300000.0, 71100000.0], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 87.85, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 50.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 56.6, "min": 22.6, "max": 113.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.9, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 11.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008677 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 87.85, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 50.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 56.6, \"min\": 22.6, \"max\": 113.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.9, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 11.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.11798885988794511)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad2e6_1274", "family": "revolved", "tier": 2, "seed": 2468008678, "symmetry": "none", "op_count": 1, "ir_hash": "6622806e72798117", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 286000.0, "surface_area": 41100.0, "principal_moments": [239000000.0, 289000000.0, 289000000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 48.1, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 114.2, "min": 34.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 89.4, "min": 57.7, "max": 144.3, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 33.2, "min": 10.0, "max": 57.1, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008678 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 48.1, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 114.2, \"min\": 34.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 89.4, \"min\": 57.7, \"max\": 144.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 33.2, \"min\": 10.0, \"max\": 57.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad2e7_1275", "family": "ribbed", "tier": 1, "seed": 2468008679, "symmetry": "none", "op_count": 2, "ir_hash": "a63d7dca2c1ee12f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 91700.0, "surface_area": 26200.0, "principal_moments": [59599999.99999999, 74600000.0, 132000000.0], "n_faces": 26, "n_edges": 60, "n_vertices": 40}, "params": {"base_w": {"type": "float", "default": 97.84, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 88.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 8.1, "min": 3.2, "max": 16.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.2, "min": 1.0, "max": 5.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008679 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 97.84, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 88.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 8.1, \"min\": 3.2, \"max\": 16.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.2, \"min\": 1.0, \"max\": 5.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad2e8_1276", "family": "compound", "tier": 2, "seed": 2468008680, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "cc38efd8aacb8a76", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 193000.0, "surface_area": 25800.0, "principal_moments": [103000000.0, 112000000.0, 166000000.0], "n_faces": 20, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 72.9, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 39.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 48.8, "min": 19.5, "max": 78.1, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 25.7, "min": 10.3, "max": 41.1, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.7, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 34.4, "min": 17.2, "max": 56.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 49.5, "min": 24.8, "max": 58.3, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 13.1, "min": 5.2, "max": 33.8, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008680 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 72.9, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 39.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 48.8, \"min\": 19.5, \"max\": 78.1, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 25.7, \"min\": 10.3, \"max\": 41.1, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.7, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 34.4, \"min\": 17.2, \"max\": 56.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 49.5, \"min\": 24.8, \"max\": 58.3, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 13.1, \"min\": 5.2, \"max\": 33.8, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad2e9_1277", "family": "profiled", "tier": 1, "seed": 2468008681, "symmetry": "none", "op_count": 1, "ir_hash": "5f3f3531cab039f8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 146000.0, "surface_area": 31100.0, "principal_moments": [38100000.0, 294000000.0, 294000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 40.77, "min": 20.4, "max": 81.5, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 150.7, "min": 45.2, "max": 452.1, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 20.8, "min": 2.0, "max": 32.6, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008681 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40.77, \"min\": 20.4, \"max\": 81.5, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 150.7, \"min\": 45.2, \"max\": 452.1, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 20.8, \"min\": 2.0, \"max\": 32.6, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2ea_1278", "family": "bracket", "tier": 1, "seed": 2468008682, "symmetry": "none", "op_count": 1, "ir_hash": "6c8dd03d00e44ca7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18600.0, "surface_area": 6630.0, "principal_moments": [2810000.0, 5100000.0, 5960000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 44.38, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 33.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 33.99, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008682 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 44.38, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 33.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 33.99, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad2f2_1286", "family": "threaded", "tier": 1, "seed": 2468008690, "symmetry": "none", "op_count": 1, "ir_hash": "577ff672da80af53", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2310.0, "surface_area": 1750.0, "principal_moments": [24200.0, 253000.0, 253000.0], "n_faces": 244, "n_edges": 626, "n_vertices": 384}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 35.6, "min": 14.2, "max": 71.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008690 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 35.6, \"min\": 14.2, \"max\": 71.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2f3_1287", "family": "bracket", "tier": 2, "seed": 2468008691, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "18a61791a9df763c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11600.0, "surface_area": 6800.0, "principal_moments": [1570000.0, 3500000.0, 4450000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 29.56, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 57.42, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.7, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008691 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 29.56, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 57.42, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.7, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2f4_1288", "family": "bracket", "tier": 1, "seed": 2468008692, "symmetry": "none", "op_count": 1, "ir_hash": "418590f75ca94d79", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9810.0, "surface_area": 5830.0, "principal_moments": [1520000.0, 2590000.0, 3080000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 40, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 34.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008692 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 40, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 34.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z or Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad2f8_1292", "family": "compound", "tier": 1, "seed": 2468008696, "symmetry": "none", "op_count": 3, "ir_hash": "4e96496e8347dda7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 66100.0, "surface_area": 16900.0, "principal_moments": [30899999.999999996, 38600000.0, 49299999.99999999], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"base_w": {"type": "float", "default": 67.93, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 79.7, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 10.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 18.9, "min": 7.6, "max": 34.0, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 44.7, "min": 13.4, "max": 134.1, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008696 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 67.93, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 79.7, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 10.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 18.9, \"min\": 7.6, \"max\": 34.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 44.7, \"min\": 13.4, \"max\": 134.1, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad2fa_1294", "family": "revolved", "tier": 2, "seed": 2468008698, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "f3f0c3f3e81ac624", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15900.0, "surface_area": 7480.0, "principal_moments": [953000.0, 5890000.0, 5890000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 20, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 75.8, "min": 22.7, "max": 227.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008698 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 20, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 75.8, \"min\": 22.7, \"max\": 227.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad2fb_1295", "family": "enclosure", "tier": 2, "seed": 2468008699, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "9eb454de05a838c1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 47500.0, "surface_area": 28400.0, "principal_moments": [35000000.0, 38400000.0, 62199999.99999999], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 74.6, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 69.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 34.2, "min": 13.7, "max": 68.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.5, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008699 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 74.6, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 69.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 34.2, \"min\": 13.7, \"max\": 68.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad2fc_1296", "family": "ribbed", "tier": 2, "seed": 2468008700, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "c2b14478646d75c4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 123000.0, "surface_area": 36400.0, "principal_moments": [70400000.0, 105000000.0, 162000000.0], "n_faces": 54, "n_edges": 132, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 100.0, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 78.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.6, "min": 6.6, "max": 33.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.6, "min": 1.0, "max": 14.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008700 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 100.0, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 78.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.6, \"min\": 6.6, \"max\": 33.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 1.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad2fd_1297", "family": "revolved", "tier": 0, "seed": 2468008701, "symmetry": "none", "op_count": 1, "ir_hash": "0c9b3b7aa74a40f8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 397000.0, "surface_area": 63700.0, "principal_moments": [205000000.0, 1240000000.0, 1240000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 58.67, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 220.0, "min": 66.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008701 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 58.67, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 220.0, \"min\": 66.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad2fe_1298", "family": "bracket", "tier": 1, "seed": 2468008702, "symmetry": "none", "op_count": 1, "ir_hash": "e56a63feb0601fdc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 43900.0, "surface_area": 19800.0, "principal_moments": [22899999.999999996, 58399999.99999999, 58999999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 85.97, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 79.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008702 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85.97, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 79.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.0926597355977199)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad301_1301", "family": "profiled", "tier": 1, "seed": 2468008705, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "713711f224db6bee", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 333000.0, "surface_area": 41800.0, "principal_moments": [61199999.99999999, 3140000000.0, 3170000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 45, "min": 22.5, "max": 90.0, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 25.0, "min": 12.5, "max": 50.0, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 335.8, "min": 100.7, "max": 1007.4, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008705 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 45, \"min\": 22.5, \"max\": 90.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 25.0, \"min\": 12.5, \"max\": 50.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 335.8, \"min\": 100.7, \"max\": 1007.4, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad303_1303", "family": "bracket", "tier": 2, "seed": 2468008707, "symmetry": "none", "op_count": 1, "ir_hash": "199e335f7a1c053a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9220.0, "surface_area": 7180.0, "principal_moments": [1570000.0, 4910000.0, 5680000.0], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 58.08, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 58.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 24.15, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 9.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 2.5, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008707 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 58.08, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 58.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 24.15, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 9.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad305_1305", "family": "plate", "tier": 0, "seed": 2468008709, "symmetry": "radial", "op_count": 1, "ir_hash": "06edb189238fe3e4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3520.0, "surface_area": 1540.0, "principal_moments": [69500.0, 296000.0, 306000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 30.11, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 11.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008709 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30.11, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 11.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad306_1306", "family": "plate", "tier": 1, "seed": 2468008710, "symmetry": "none", "op_count": 2, "ir_hash": "15ce8adf458fd94e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3530.0, "surface_area": 2600.0, "principal_moments": [230000.0, 340000.0, 561000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 35.08, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 28.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 6.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008710 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 35.08, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 28.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 6.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad307_1307", "family": "threaded", "tier": 1, "seed": 2468008711, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "1c853a9aace7859f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4380.0, "surface_area": 2750.0, "principal_moments": [66600.0, 823000.0, 823000.0], "n_faces": 274, "n_edges": 704, "n_vertices": 432}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 46.7, "min": 18.7, "max": 93.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008711 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 46.7, \"min\": 18.7, \"max\": 93.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad308_1308", "family": "compound", "tier": 2, "seed": 2468008712, "symmetry": "mirror_x", "op_count": 5, "ir_hash": "d1c8ba8a844d8ffb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 516000.0, "surface_area": 49700.0, "principal_moments": [554000000.0, 557000000.0, 587000000.0], "n_faces": 20, "n_edges": 47, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 81.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 78.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 19.4, "min": 7.8, "max": 35.3, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 21.1, "min": 4.8, "max": 58.2, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 8.4, "min": 2.0, "max": 14.0, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008712 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 81.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 78.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 19.4, \"min\": 7.8, \"max\": 35.3, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 21.1, \"min\": 4.8, \"max\": 58.2, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad309_1309", "family": "gear", "tier": 0, "seed": 2468008713, "symmetry": "none", "op_count": 1, "ir_hash": "df6aee3646378e01", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5170.0, "surface_area": 3650.0, "principal_moments": [558000.0, 558000.0, 1100000.0], "n_faces": 200, "n_edges": 594, "n_vertices": 396}, "params": {"module": {"type": "float", "default": 1.25, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 33, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 3.9, "min": 1.6, "max": 9.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008713 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.25, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 33, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 3.9, \"min\": 1.6, \"max\": 9.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad30a_1310", "family": "flanged", "tier": 2, "seed": 2468008714, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "8e6fd4107c23c2ce", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32200.0, "surface_area": 13400.0, "principal_moments": [10000000.0, 10000000.0, 13199999.999999998], "n_faces": 34, "n_edges": 77, "n_vertices": 46}, "params": {"outer_d": {"type": "float", "default": 32.79, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 33.1, "min": 9.9, "max": 82.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.8, "min": 2.0, "max": 23.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 72.3, "min": 42.6, "max": 98.4, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.1, "min": 1.2, "max": 13.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 21.7, "min": 14.5, "max": 32.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008714 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 32.79, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 33.1, \"min\": 9.9, \"max\": 82.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.8, \"min\": 2.0, \"max\": 23.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 72.3, \"min\": 42.6, \"max\": 98.4, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.1, \"min\": 1.2, \"max\": 13.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 21.7, \"min\": 14.5, \"max\": 32.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad30d_1313", "family": "plate", "tier": 0, "seed": 2468008717, "symmetry": "none", "op_count": 1, "ir_hash": "7a6ed7969db7c7a8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3040.0, "surface_area": 1390.0, "principal_moments": [95600.0, 133000.0, 196000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 21.47, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 17.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008717 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 21.47, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 17.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad30e_1314", "family": "plate", "tier": 2, "seed": 2468008718, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "4ad9c6f3853c2341", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28000.0, "surface_area": 9260.0, "principal_moments": [4590000.0, 15299999.999999998, 19600000.0], "n_faces": 18, "n_edges": 44, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 81.01, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 43.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 9.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "cs_angle": {"type": "float", "default": 82.0, "min": 60.0, "max": 120.0, "step": 15.0, "group": "Holes", "label": "Countersink angle (\u00b0)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008718 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 81.01, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 43.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 9.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"cs_angle\": {\"type\": 'float', \"default\": 82.0, \"min\": 60.0, \"max\": 120.0, \"step\": 15.0, \"group\": 'Holes', \"label\": 'Countersink angle (\u00b0)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cskHole(p[\"hole_d\"], p[\"hole_d\"] * 2, p[\"cs_angle\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09072155796526521)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad30f_1315", "family": "plate", "tier": 0, "seed": 2468008719, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "83666911fab4a6a0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4070.0, "surface_area": 1990.0, "principal_moments": [178000.0, 332000.0, 486000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 30.71, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 22.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008719 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30.71, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 22.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad310_1316", "family": "bracket", "tier": 1, "seed": 2468008720, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "b0575c55e11e91ca", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11100.0, "surface_area": 4910.0, "principal_moments": [1470000.0, 1690000.0, 2550000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 38.35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008720 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 38.35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad315_1321", "family": "threaded", "tier": 2, "seed": 2468008725, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "09ddecd90e558dd1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2340.0, "surface_area": 2220.0, "principal_moments": [42600.0, 247000.0, 247000.0], "n_faces": 279, "n_edges": 761, "n_vertices": 484}, "params": {"major_d": {"type": "float", "default": 6.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.0, "min": 0.5, "max": 2.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 34.1, "min": 13.6, "max": 68.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008725 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.5, \"max\": 2.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 34.1, \"min\": 13.6, \"max\": 68.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad316_1322", "family": "compound", "tier": 1, "seed": 2468008726, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "8b5e7cd57f559164", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 76300.0, "surface_area": 18500.0, "principal_moments": [30999999.999999996, 39800000.0, 58899999.99999999], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"base_w": {"type": "float", "default": 75, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 64.5, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 16.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 5.5, "min": 2.8, "max": 16.1, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 56.5, "min": 16.9, "max": 169.5, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 5.9, "min": 2.0, "max": 6.9, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008726 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 75, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 64.5, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 16.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.8, \"max\": 16.1, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 56.5, \"min\": 16.9, \"max\": 169.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 5.9, \"min\": 2.0, \"max\": 6.9, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad317_1323", "family": "profiled", "tier": 2, "seed": 2468008727, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "88b1d7569e6828df", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 113000.0, "surface_area": 34500.0, "principal_moments": [15199999.999999998, 391000000.0, 391000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 239.2, "min": 71.8, "max": 717.6, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008727 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 239.2, \"min\": 71.8, \"max\": 717.6, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad318_1324", "family": "plate", "tier": 1, "seed": 2468008728, "symmetry": "none", "op_count": 2, "ir_hash": "bf0ce31c8d1dafb6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4860.0, "surface_area": 3880.0, "principal_moments": [554000.0, 837000.0, 1380000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"plate_w": {"type": "float", "default": 45.26, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 36.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008728 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 45.26, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 36.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 17.0\n _ssy = 17.4\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad319_1325", "family": "threaded", "tier": 0, "seed": 2468008729, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "4d1d9787641179c7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 149.0, "surface_area": 286.0, "principal_moments": [245.0, 2850.0, 2850.0], "n_faces": 220, "n_edges": 564, "n_vertices": 346}, "params": {"major_d": {"type": "float", "default": 4.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.7, "min": 0.35, "max": 1.4, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 14.9, "min": 6.0, "max": 29.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008729 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.35, \"max\": 1.4, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 14.9, \"min\": 6.0, \"max\": 29.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad31a_1326", "family": "bracket", "tier": 1, "seed": 2468008730, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "da245d93d0bba466", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45200.0, "surface_area": 20600.0, "principal_moments": [13499999.999999998, 76900000.0, 81700000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 74.36, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 45.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 49.22, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 74.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008730 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 74.36, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 45.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 49.22, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 74.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad31d_1329", "family": "bracket", "tier": 1, "seed": 2468008733, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "380bfede5bc9d885", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21100.0, "surface_area": 11900.0, "principal_moments": [7420000.0, 10300000.0, 13499999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 51.67, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 48.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008733 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 51.67, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 48.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad321_1333", "family": "compound", "tier": 2, "seed": 2468008737, "symmetry": "none", "op_count": 3, "ir_hash": "b046a9807a19913d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 50600.0, "surface_area": 12300.0, "principal_moments": [11200000.0, 19700000.0, 19700000.0], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 24.14, "min": 14.5, "max": 38.6, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 27.4, "min": 11.0, "max": 68.5, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 24.3, "min": 12.2, "max": 33.4, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 38.1, "min": 11.4, "max": 95.2, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 12.9, "min": 2.0, "max": 17.5, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008737 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 24.14, \"min\": 14.5, \"max\": 38.6, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 27.4, \"min\": 11.0, \"max\": 68.5, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 24.3, \"min\": 12.2, \"max\": 33.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 38.1, \"min\": 11.4, \"max\": 95.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 12.9, \"min\": 2.0, \"max\": 17.5, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_r\"], p[\"base_r\"]) * 0.04072103986582472)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad322_1334", "family": "bracket", "tier": 1, "seed": 2468008738, "symmetry": "none", "op_count": 1, "ir_hash": "13746d36e329038b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24200.0, "surface_area": 13500.0, "principal_moments": [9560000.0, 14099999.999999998, 18100000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 57.45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 52.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 57.69, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008738 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 57.45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 52.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 57.69, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad325_1337", "family": "compound", "tier": 1, "seed": 2468008741, "symmetry": "none", "op_count": 2, "ir_hash": "27b149aa7d16d25a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 265000.0, "surface_area": 28000.0, "principal_moments": [151000000.0, 209000000.0, 226000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 60, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 80.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 54.9, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_w": {"type": "float", "default": 13.7, "min": 6.8, "max": 30.7, "step": 0.5, "group": "Spigot", "label": "Spigot width (mm)"}, "spig_slot_l": {"type": "float", "default": 24.1, "min": 16.4, "max": 38.4, "step": 1.0, "group": "Spigot", "label": "Spigot slot length (mm)"}, "spig_len": {"type": "float", "default": 16.4, "min": 4.1, "max": 54.8, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 8.3, "min": 2.0, "max": 9.9, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008741 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 60, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 80.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 54.9, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_w\": {\"type\": 'float', \"default\": 13.7, \"min\": 6.8, \"max\": 30.7, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Spigot width (mm)'},\n \"spig_slot_l\": {\"type\": 'float', \"default\": 24.1, \"min\": 16.4, \"max\": 38.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot slot length (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 16.4, \"min\": 4.1, \"max\": 54.8, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 8.3, \"min\": 2.0, \"max\": 9.9, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .slot2D(p[\"spig_slot_l\"], p[\"spig_w\"]).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad326_1338", "family": "bracket", "tier": 1, "seed": 2468008742, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "3cd18aa174461143", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45000.0, "surface_area": 14500.0, "principal_moments": [15799999.999999998, 44400000.0, 48099999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 71.34, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 78.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008742 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 71.34, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 78.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"spig_sides\"], p[\"spig_r\"] * 2).extrude(p[\"spig_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad329_1341", "family": "bracket", "tier": 2, "seed": 2468008745, "symmetry": "none", "op_count": 1, "ir_hash": "0983398fe297e615", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24200.0, "surface_area": 7940.0, "principal_moments": [4110000.0, 8540000.0, 9020000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 46.79, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 44.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 34.53, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 9.7, "min": 4.0, "max": 17.3, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008745 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 46.79, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 44.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 34.53, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 9.7, \"min\": 4.0, \"max\": 17.3, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad32a_1342", "family": "bracket", "tier": 1, "seed": 2468008746, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "52acfa5269cb55b4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14900.0, "surface_area": 11000.0, "principal_moments": [4460000.0, 9270000.0, 10100000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 60, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 51.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 46.13, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008746 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 60, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 51.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 46.13, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad32e_1346", "family": "threaded", "tier": 0, "seed": 2468008750, "symmetry": "none", "op_count": 1, "ir_hash": "bab8291c4f75b861", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3080.0, "surface_area": 1970.0, "principal_moments": [46800.0, 298000.0, 298000.0], "n_faces": 195, "n_edges": 499, "n_vertices": 306}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 32.9, "min": 13.2, "max": 65.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008750 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 32.9, \"min\": 13.2, \"max\": 65.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad330_1348", "family": "compound", "tier": 2, "seed": 2468008752, "symmetry": "none", "op_count": 5, "ir_hash": "09445f6611d08854", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 46000.0, "surface_area": 9660.0, "principal_moments": [7160000.0, 12999999.999999998, 13699999.999999998], "n_faces": 20, "n_edges": 47, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 32.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 29.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 5.5, "min": 2.2, "max": 13.1, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 7.4, "min": 1.4, "max": 16.5, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 2.5, "min": 2.0, "max": 4.0, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008752 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 32.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 29.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.2, \"max\": 13.1, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 7.4, \"min\": 1.4, \"max\": 16.5, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 2.5, \"min\": 2.0, \"max\": 4.0, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad331_1349", "family": "plate", "tier": 1, "seed": 2468008753, "symmetry": "none", "op_count": 2, "ir_hash": "eff5140c6a94d751", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5980.0, "surface_area": 5030.0, "principal_moments": [673000.0, 1590000.0, 2250000.0], "n_faces": 30, "n_edges": 84, "n_vertices": 56}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 37.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}, "hole_slot_len": {"type": "float", "default": 10.4, "min": 6.4, "max": 10.4, "step": 0.5, "group": "Holes", "label": "Slot length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008753 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 37.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n \"hole_slot_len\": {\"type\": 'float', \"default\": 10.4, \"min\": 6.4, \"max\": 10.4, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot length (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(48.0, 14.9, p[\"hole_nx\"], p[\"hole_ny\"])\n .slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad334_1352", "family": "revolved", "tier": 1, "seed": 2468008756, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "926c11caef7f9eae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 108000.0, "surface_area": 22600.0, "principal_moments": [37700000.0, 70100000.0, 70100000.0], "n_faces": 5, "n_edges": 7, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 39.66, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 92.0, "min": 27.6, "max": 276.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 57.7, "min": 47.6, "max": 119.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 23.4, "min": 7.0, "max": 46.0, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008756 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 39.66, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 92.0, \"min\": 27.6, \"max\": 276.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 57.7, \"min\": 47.6, \"max\": 119.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 23.4, \"min\": 7.0, \"max\": 46.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad335_1353", "family": "threaded", "tier": 1, "seed": 2468008757, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "f00b4030c4123c12", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1220.0, "surface_area": 1150.0, "principal_moments": [8130.0, 92000.0, 92000.0], "n_faces": 240, "n_edges": 614, "n_vertices": 376}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 29.6, "min": 11.8, "max": 59.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008757 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 29.6, \"min\": 11.8, \"max\": 59.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad336_1354", "family": "compound", "tier": 2, "seed": 2468008758, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "f6df706ce01e0c1c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 102000.0, "surface_area": 27300.0, "principal_moments": [68300000.0, 86100000.0, 122000000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_w": {"type": "float", "default": 100, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 86.2, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 10.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 26.4, "min": 10.6, "max": 43.1, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 45.5, "min": 13.7, "max": 136.5, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 12.7, "min": 2.0, "max": 19.0, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008758 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 100, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 86.2, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 10.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 26.4, \"min\": 10.6, \"max\": 43.1, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 45.5, \"min\": 13.7, \"max\": 136.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 12.7, \"min\": 2.0, \"max\": 19.0, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad338_1356", "family": "enclosure", "tier": 1, "seed": 2468008760, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "5e4cab1ff9b6c60d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 101000.0, "surface_area": 44300.0, "principal_moments": [68400000.0, 168000000.0, 171000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 109.66, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 47.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 59.4, "min": 23.8, "max": 118.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.7, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008760 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 109.66, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 47.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 59.4, \"min\": 23.8, \"max\": 118.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.7, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad339_1357", "family": "block", "tier": 2, "seed": 2468008761, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "56cdaa7eb069b963", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39300.0, "surface_area": 8900.0, "principal_moments": [5230000.0, 11000000.0, 12899999.999999998], "n_faces": 18, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 22.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 29.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "boss_d": {"type": "float", "default": 22.2, "min": 11.1, "max": 44.4, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 7.3, "min": 2.9, "max": 18.2, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008761 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 22.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 29.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"boss_d\": {\"type\": 'float', \"default\": 22.2, \"min\": 11.1, \"max\": 44.4, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 7.3, \"min\": 2.9, \"max\": 18.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 13.8\n _ssy = 14.4\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad33b_1359", "family": "revolved", "tier": 1, "seed": 2468008763, "symmetry": "radial", "op_count": 1, "ir_hash": "dfc901d43a3ef1ed", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 85800.0, "surface_area": 17000.0, "principal_moments": [41700000.0, 41700000.0, 75400000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 76.51, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 28.0, "min": 8.4, "max": 84.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008763 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 76.51, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 28.0, \"min\": 8.4, \"max\": 84.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad33c_1360", "family": "compound", "tier": 2, "seed": 2468008764, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "065c144265fe9427", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31500.0, "surface_area": 6230.0, "principal_moments": [3190000.0, 9020000.0, 9020000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 30, "min": 15.0, "max": 54.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 39.0, "min": 15.6, "max": 78.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 13.6, "min": 6.8, "max": 27.0, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 26.8, "min": 8.0, "max": 67.0, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008764 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 54.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 39.0, \"min\": 15.6, \"max\": 78.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 13.6, \"min\": 6.8, \"max\": 27.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 26.8, \"min\": 8.0, \"max\": 67.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad33d_1361", "family": "revolved", "tier": 0, "seed": 2468008765, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ea44bd8b4edd2831", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 288000.0, "surface_area": 49400.0, "principal_moments": [133000000.0, 616000000.0, 616000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 55.45, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 179.1, "min": 53.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008765 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55.45, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 179.1, \"min\": 53.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad33e_1362", "family": "compound", "tier": 1, "seed": 2468008766, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "ce2cf8dcef84925f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 138000.0, "surface_area": 34500.0, "principal_moments": [134000000.0, 220000000.0, 243000000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_w": {"type": "float", "default": 82.1, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 98.5, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 12.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 24.9, "min": 10.0, "max": 41.0, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 113.6, "min": 34.1, "max": 340.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 11.6, "min": 2.0, "max": 17.9, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008766 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 82.1, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 98.5, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 12.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 24.9, \"min\": 10.0, \"max\": 41.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 113.6, \"min\": 34.1, \"max\": 340.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 11.6, \"min\": 2.0, \"max\": 17.9, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad33f_1363", "family": "plate", "tier": 0, "seed": 2468008767, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "6d0b50ce3bf23ca1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6590.0, "surface_area": 3030.0, "principal_moments": [347000.0, 1130000.0, 1440000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 24.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008767 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 24.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad340_1364", "family": "gear", "tier": 0, "seed": 2468008768, "symmetry": "none", "op_count": 1, "ir_hash": "bfdf73055e193023", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 422000.0, "surface_area": 53200.0, "principal_moments": [515000000.0, 515000000.0, 967000000.0], "n_faces": 164, "n_edges": 486, "n_vertices": 324}, "params": {"module": {"type": "float", "default": 5.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 27, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 29.8, "min": 11.9, "max": 74.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008768 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 5.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 27, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 29.8, \"min\": 11.9, \"max\": 74.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad341_1365", "family": "compound", "tier": 2, "seed": 2468008769, "symmetry": "none", "op_count": 3, "ir_hash": "2e45ad807f90338f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 97600.0, "surface_area": 13900.0, "principal_moments": [16900000.0, 85500000.0, 85500000.0], "n_faces": 12, "n_edges": 24, "n_vertices": 16}, "params": {"shaft_d": {"type": "float", "default": 40, "min": 20.0, "max": 72.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 63.0, "min": 25.2, "max": 126.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 21.9, "min": 10.9, "max": 36.0, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 43.5, "min": 13.0, "max": 108.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "head_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Head", "label": "Drive head sides"}, "head_r": {"type": "float", "default": 9.3, "min": 5.6, "max": 10.5, "step": 1.0, "group": "Head", "label": "Drive head circumradius (mm)"}, "head_len": {"type": "float", "default": 9.0, "min": 2.7, "max": 18.0, "step": 1.0, "group": "Head", "label": "Drive head length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008769 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 72.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 63.0, \"min\": 25.2, \"max\": 126.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 21.9, \"min\": 10.9, \"max\": 36.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 43.5, \"min\": 13.0, \"max\": 108.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"head_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Head', \"label\": 'Drive head sides'},\n \"head_r\": {\"type\": 'float', \"default\": 9.3, \"min\": 5.6, \"max\": 10.5, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head circumradius (mm)'},\n \"head_len\": {\"type\": 'float', \"default\": 9.0, \"min\": 2.7, \"max\": 18.0, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"head_sides\"], p[\"head_r\"] * 2).extrude(p[\"head_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad342_1366", "family": "flanged", "tier": 2, "seed": 2468008770, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "7144f3d3282a6667", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 669000.0, "surface_area": 90000.0, "principal_moments": [1460000000.0, 1460000000.0, 1820000000.0], "n_faces": 22, "n_edges": 47, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 78.26, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 93.6, "min": 28.1, "max": 234.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 31.3, "min": 2.0, "max": 54.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 186.4, "min": 101.7, "max": 234.8, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 13.0, "min": 3.9, "max": 37.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 55.9, "min": 37.3, "max": 83.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008770 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 78.26, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 93.6, \"min\": 28.1, \"max\": 234.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 31.3, \"min\": 2.0, \"max\": 54.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 186.4, \"min\": 101.7, \"max\": 234.8, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 13.0, \"min\": 3.9, \"max\": 37.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 55.9, \"min\": 37.3, \"max\": 83.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad344_1368", "family": "profiled", "tier": 0, "seed": 2468008772, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "630f7eecfee5cda8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 111000.0, "surface_area": 15000.0, "principal_moments": [18100000.0, 121000000.0, 121000000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"circ_r": {"type": "float", "default": 19.76, "min": 9.9, "max": 39.5, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 109.8, "min": 32.9, "max": 329.4, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008772 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 19.76, \"min\": 9.9, \"max\": 39.5, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 109.8, \"min\": 32.9, \"max\": 329.4, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad345_1369", "family": "bracket", "tier": 2, "seed": 2468008773, "symmetry": "none", "op_count": 1, "ir_hash": "f5172e0d9d673fdc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 60500.0, "surface_area": 22900.0, "principal_moments": [31899999.999999996, 85100000.0, 92799999.99999999], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 88.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 58.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 8.8, "min": 3.0, "max": 18.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008773 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 88.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 58.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 8.8, \"min\": 3.0, \"max\": 18.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad346_1370", "family": "plate", "tier": 2, "seed": 2468008774, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "2114b17df9d0cb3e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14300.0, "surface_area": 6450.0, "principal_moments": [1320000.0, 6620000.0, 7850000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 75, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 33.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 7.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008774 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 75, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 33.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 7.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.05181884976808321)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad348_1372", "family": "enclosure", "tier": 1, "seed": 2468008776, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "50408b46dd3fc6c5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 101000.0, "surface_area": 60200.0, "principal_moments": [123000000.0, 159000000.0, 195000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 96.51, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 52.9, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 89.3, "min": 35.7, "max": 178.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.4, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008776 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 96.51, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 52.9, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 89.3, \"min\": 35.7, \"max\": 178.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.4, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad349_1373", "family": "plate", "tier": 0, "seed": 2468008777, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "41cc618c61f2d886", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26400.0, "surface_area": 7610.0, "principal_moments": [2350000.0, 16099999.999999998, 18000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 31.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008777 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 31.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad34a_1374", "family": "plate", "tier": 0, "seed": 2468008778, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "936bc6ae997ae9e0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20200.0, "surface_area": 8310.0, "principal_moments": [2190000.0, 15299999.999999998, 17300000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 35.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008778 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 35.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad34b_1375", "family": "block", "tier": 1, "seed": 2468008779, "symmetry": "none", "op_count": 2, "ir_hash": "5869c93c53d84c45", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4160.0, "surface_area": 2350.0, "principal_moments": [154000.0, 234000.0, 327000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 19.22, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 9.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 24.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008779 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 19.22, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 9.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 24.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad34d_1377", "family": "enclosure", "tier": 1, "seed": 2468008781, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "19d5f14e3764d404", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42700.0, "surface_area": 19300.0, "principal_moments": [17100000.0, 19500000.0, 26699999.999999996], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 55.23, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 29.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 55.1, "min": 22.0, "max": 110.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008781 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 55.23, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 29.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 55.1, \"min\": 22.0, \"max\": 110.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad34f_1379", "family": "bracket", "tier": 1, "seed": 2468008783, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "91f0a7ea46765059", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17400.0, "surface_area": 8380.0, "principal_moments": [3990000.0, 4280000.0, 7460000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 29.38, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 51.18, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008783 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 29.38, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 51.18, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad351_1381", "family": "block", "tier": 2, "seed": 2468008785, "symmetry": "none", "op_count": 3, "ir_hash": "bde66f92bb915395", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 239000.0, "surface_area": 38100.0, "principal_moments": [146000000.0, 185000000.0, 275000000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 78.5, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 38.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 86.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 8.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 24.2, "min": 12.1, "max": 48.4, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 10.5, "min": 4.2, "max": 26.2, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 16.9, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008785 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 78.5, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 38.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 86.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 8.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 24.2, \"min\": 12.1, \"max\": 48.4, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 10.5, \"min\": 4.2, \"max\": 26.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 16.9, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad352_1382", "family": "block", "tier": 1, "seed": 2468008786, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "e737235dece4825d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 180000.0, "surface_area": 29900.0, "principal_moments": [61999999.99999999, 168000000.0, 195000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 55.23, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 34.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.2, "min": 2.0, "max": 10.1, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008786 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55.23, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 34.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 10.1, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad353_1383", "family": "block", "tier": 1, "seed": 2468008787, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "4a5b112b0deda814", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 354000.0, "surface_area": 35600.0, "principal_moments": [232000000.0, 361000000.0, 460000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 47.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 10.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008787 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 47.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 10.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad354_1384", "family": "revolved", "tier": 1, "seed": 2468008788, "symmetry": "radial", "op_count": 2, "ir_hash": "729d7bd44e7e18a0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 393000.0, "surface_area": 60600.0, "principal_moments": [220000000.0, 1050000000.0, 1050000000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 61.13, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 200.7, "min": 60.2, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.1, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008788 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 61.13, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 200.7, \"min\": 60.2, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.1, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad35d_1393", "family": "bracket", "tier": 1, "seed": 2468008797, "symmetry": "none", "op_count": 1, "ir_hash": "7cbb2027ecd1ba21", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25500.0, "surface_area": 10600.0, "principal_moments": [6820000.0, 18800000.0, 20400000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 64.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008797 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 64.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad360_1396", "family": "revolved", "tier": 1, "seed": 2468008800, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "e34eb08fdc4839eb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 55700.0, "surface_area": 17300.0, "principal_moments": [7680000.0, 47999999.99999999, 47999999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 30.33, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 115.6, "min": 34.7, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008800 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30.33, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 115.6, \"min\": 34.7, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad362_1398", "family": "revolved", "tier": 2, "seed": 2468008802, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "7756edc216ab0757", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 120000.0, "surface_area": 26300.0, "principal_moments": [36600000.0, 110000000.0, 110000000.0], "n_faces": 7, "n_edges": 10, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 45.3, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 112.9, "min": 33.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "groove_depth": {"type": "float", "default": 1.91, "min": 0.76, "max": 5.73, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 5.81, "min": 2.32, "max": 17.43, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 56.1, "min": 16.9, "max": 96.0, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008802 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45.3, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 112.9, \"min\": 33.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 1.91, \"min\": 0.76, \"max\": 5.73, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 5.81, \"min\": 2.32, \"max\": 17.43, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 56.1, \"min\": 16.9, \"max\": 96.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad363_1399", "family": "revolved", "tier": 1, "seed": 2468008803, "symmetry": "radial", "op_count": 1, "ir_hash": "00b45c8ee3f83434", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7350.0, "surface_area": 3210.0, "principal_moments": [562000.0, 562000.0, 785000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 26.69, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 19.7, "min": 5.9, "max": 59.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008803 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 26.69, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 19.7, \"min\": 5.9, \"max\": 59.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad364_1400", "family": "plate", "tier": 1, "seed": 2468008804, "symmetry": "none", "op_count": 2, "ir_hash": "e0153714946bace3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 49600.0, "surface_area": 12500.0, "principal_moments": [9430000.0, 34000000.0, 42300000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 90, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 46.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008804 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 46.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(24.0, 37.3, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad365_1401", "family": "bracket", "tier": 1, "seed": 2468008805, "symmetry": "none", "op_count": 1, "ir_hash": "12351554752245a0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24200.0, "surface_area": 11800.0, "principal_moments": [8450000.0, 29199999.999999996, 33900000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 78.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008805 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 78.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad368_1404", "family": "bracket", "tier": 1, "seed": 2468008808, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "bc94e124b4b44baa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41500.0, "surface_area": 13500.0, "principal_moments": [14099999.999999998, 42600000.0, 48199999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 76.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008808 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 76.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cskHole(p[\"hole_d\"], p[\"hole_d\"] * 2, p[\"cs_angle\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07693792216648077)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad36a_1406", "family": "compound", "tier": 1, "seed": 2468008810, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "1b94534d2c6e4853", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11800.0, "surface_area": 4220.0, "principal_moments": [1250000.0, 1250000.0, 1250000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 16.14, "min": 9.7, "max": 25.8, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 12.4, "min": 5.0, "max": 31.0, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 18.9, "min": 9.4, "max": 23.9, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 15.1, "min": 4.5, "max": 37.8, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 8.5, "min": 2.0, "max": 13.6, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008810 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 16.14, \"min\": 9.7, \"max\": 25.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 12.4, \"min\": 5.0, \"max\": 31.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 18.9, \"min\": 9.4, \"max\": 23.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 15.1, \"min\": 4.5, \"max\": 37.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 8.5, \"min\": 2.0, \"max\": 13.6, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad36b_1407", "family": "compound", "tier": 1, "seed": 2468008811, "symmetry": "none", "op_count": 3, "ir_hash": "e927191b66fded7e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 76400.0, "surface_area": 24200.0, "principal_moments": [60599999.99999999, 92899999.99999999, 105000000.0], "n_faces": 16, "n_edges": 39, "n_vertices": 26}, "params": {"base_w": {"type": "float", "default": 97.23, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 79.1, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 6.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 11.8, "min": 5.9, "max": 19.8, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 93.7, "min": 28.1, "max": 281.1, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008811 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 97.23, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 79.1, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 11.8, \"min\": 5.9, \"max\": 19.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 93.7, \"min\": 28.1, \"max\": 281.1, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad36c_1408", "family": "threaded", "tier": 1, "seed": 2468008812, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ac19b9de9a15e3ec", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14300.0, "surface_area": 7020.0, "principal_moments": [1050000.0, 3830000.0, 3830000.0], "n_faces": 363, "n_edges": 1021, "n_vertices": 660}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 52.7, "min": 21.1, "max": 105.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008812 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 52.7, \"min\": 21.1, \"max\": 105.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad36d_1409", "family": "profiled", "tier": 1, "seed": 2468008813, "symmetry": "none", "op_count": 1, "ir_hash": "22077374df4b0264", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28100.0, "surface_area": 7290.0, "principal_moments": [1130000.0, 30499999.999999996, 30499999.999999996], "n_faces": 7, "n_edges": 15, "n_vertices": 10}, "params": {"circ_r": {"type": "float", "default": 10.22, "min": 5.1, "max": 20.4, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 113.1, "min": 33.9, "max": 339.3, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008813 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 10.22, \"min\": 5.1, \"max\": 20.4, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 113.1, \"min\": 33.9, \"max\": 339.3, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad36f_1411", "family": "plate", "tier": 2, "seed": 2468008815, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "fecf0bdd3fd88c7e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17600.0, "surface_area": 7410.0, "principal_moments": [2680000.0, 7100000.0, 9680000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 69.86, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 42.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 9.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008815 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 69.86, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 42.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 9.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09343455394837222)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad370_1412", "family": "bracket", "tier": 1, "seed": 2468008816, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "62d5ce0e9ca610d5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16500.0, "surface_area": 9990.0, "principal_moments": [6540000.0, 11300000.0, 16099999.999999998], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 61.05, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 57.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008816 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 61.05, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 57.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad371_1413", "family": "flanged", "tier": 2, "seed": 2468008817, "symmetry": "radial", "op_count": 3, "ir_hash": "c52112f64084eec0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 91900.0, "surface_area": 20900.0, "principal_moments": [36900000.0, 48299999.99999999, 48299999.99999999], "n_faces": 44, "n_edges": 114, "n_vertices": 67}, "params": {"outer_d": {"type": "float", "default": 44.82, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 57.5, "min": 17.2, "max": 143.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.9, "min": 2.0, "max": 31.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 78.1, "min": 58.3, "max": 134.5, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.6, "min": 1.4, "max": 23.0, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 23.4, "min": 15.6, "max": 35.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.6, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008817 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 44.82, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 57.5, \"min\": 17.2, \"max\": 143.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.9, \"min\": 2.0, \"max\": 31.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 78.1, \"min\": 58.3, \"max\": 134.5, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.6, \"min\": 1.4, \"max\": 23.0, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 23.4, \"min\": 15.6, \"max\": 35.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.6, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad373_1415", "family": "threaded", "tier": 2, "seed": 2468008819, "symmetry": "none", "op_count": 1, "ir_hash": "4f83cea57da34183", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2020.0, "surface_area": 2010.0, "principal_moments": [13800.0, 404000.0, 404000.0], "n_faces": 330, "n_edges": 848, "n_vertices": 520}, "params": {"thread_size": {"type": "enum", "default": "8x1.5", "choices": ["8x1.5", "10x2", "12x3", "14x3", "16x4", "18x4", "20x4", "24x5", "28x5", "30x6", "36x6", "40x7"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 48.8, "min": 19.5, "max": 97.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008819 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '8x1.5', \"choices\": ['8x1.5', '10x2', '12x3', '14x3', '16x4', '18x4', '20x4', '24x5', '28x5', '30x6', '36x6', '40x7'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 48.8, \"min\": 19.5, \"max\": 97.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.MetricTrapezoidalThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad375_1417", "family": "flanged", "tier": 1, "seed": 2468008821, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "8038051c8a28d2b8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 113000.0, "surface_area": 28900.0, "principal_moments": [65499999.99999999, 82800000.0, 82800000.0], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 50, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 66.5, "min": 19.9, "max": 166.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 26.7, "min": 2.0, "max": 35.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 89.6, "min": 65.0, "max": 150.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.3, "min": 1.6, "max": 26.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 26.9, "min": 17.9, "max": 40.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008821 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 66.5, \"min\": 19.9, \"max\": 166.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 26.7, \"min\": 2.0, \"max\": 35.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 89.6, \"min\": 65.0, \"max\": 150.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.3, \"min\": 1.6, \"max\": 26.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 26.9, \"min\": 17.9, \"max\": 40.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad377_1419", "family": "revolved", "tier": 1, "seed": 2468008823, "symmetry": "none", "op_count": 2, "ir_hash": "e16cac96d0c92b9a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6150.0, "surface_area": 3020.0, "principal_moments": [368000.0, 498000.0, 498000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 20, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 29.5, "min": 8.8, "max": 88.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.7, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008823 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 20, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 29.5, \"min\": 8.8, \"max\": 88.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.7, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad379_1421", "family": "flanged", "tier": 1, "seed": 2468008825, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "dab9aacd7d92e905", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 706000.0, "surface_area": 86300.0, "principal_moments": [1400000000.0, 1400000000.0, 2150000000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 97.6, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 72.9, "min": 21.9, "max": 182.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 47.7, "min": 2.0, "max": 68.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 180.4, "min": 126.9, "max": 292.8, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 16.3, "min": 4.9, "max": 29.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 54.1, "min": 36.1, "max": 81.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008825 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 97.6, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 72.9, \"min\": 21.9, \"max\": 182.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 47.7, \"min\": 2.0, \"max\": 68.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 180.4, \"min\": 126.9, \"max\": 292.8, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 16.3, \"min\": 4.9, \"max\": 29.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 54.1, \"min\": 36.1, \"max\": 81.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad37a_1422", "family": "bracket", "tier": 1, "seed": 2468008826, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d25963146d89aea2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6860.0, "surface_area": 3770.0, "principal_moments": [547000.0, 1740000.0, 1810000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 43.18, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 31.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20.24, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 8.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008826 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 43.18, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 31.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20.24, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 8.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"spig_sides\"], p[\"spig_r\"] * 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad37d_1425", "family": "bracket", "tier": 1, "seed": 2468008829, "symmetry": "none", "op_count": 1, "ir_hash": "66b777ffa1815697", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7840.0, "surface_area": 4800.0, "principal_moments": [682000.0, 1920000.0, 2230000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 27.45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008829 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 27.45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad37e_1426", "family": "compound", "tier": 1, "seed": 2468008830, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "8fe4bc27fc4f3a5d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 237000.0, "surface_area": 25800.0, "principal_moments": [130000000.0, 166000000.0, 220000000.0], "n_faces": 23, "n_edges": 56, "n_vertices": 37}, "params": {"block_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 68.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 43.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 5.2, "min": 2.6, "max": 9.8, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 9.0, "min": 2.3, "max": 27.0, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 4.8, "min": 2.0, "max": 6.5, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008830 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 68.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 43.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.6, \"max\": 9.8, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 9.0, \"min\": 2.3, \"max\": 27.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 4.8, \"min\": 2.0, \"max\": 6.5, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad380_1428", "family": "bracket", "tier": 1, "seed": 2468008832, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "27233e4dd03055a9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32500.0, "surface_area": 15000.0, "principal_moments": [12799999.999999998, 29399999.999999996, 30299999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 66.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008832 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 66.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad384_1432", "family": "revolved", "tier": 1, "seed": 2468008836, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "930f94ecb02259b7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 511000.0, "surface_area": 56100.0, "principal_moments": [278000000.0, 1720000000.0, 1720000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 62.17, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 192.6, "min": 57.8, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 22.0, "min": 2.0, "max": 43.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.5, "min": 0.1, "max": 1.5, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008836 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 62.17, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 192.6, \"min\": 57.8, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 22.0, \"min\": 2.0, \"max\": 43.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.5, \"min\": 0.1, \"max\": 1.5, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad387_1435", "family": "ribbed", "tier": 1, "seed": 2468008839, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "18cf60ea28f1cca5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28900.0, "surface_area": 10800.0, "principal_moments": [5670000.0, 8970000.0, 13499999.999999998], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 58.38, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 45.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 9.3, "min": 3.7, "max": 18.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.4, "min": 1.0, "max": 11.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008839 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 58.38, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 45.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 9.3, \"min\": 3.7, \"max\": 18.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.4, \"min\": 1.0, \"max\": 11.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad388_1436", "family": "enclosure", "tier": 1, "seed": 2468008840, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "ab7b9d3a68f67f06", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 104000.0, "surface_area": 46600.0, "principal_moments": [93599999.99999999, 132000000.0, 160000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 90, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 46.7, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 77.0, "min": 30.8, "max": 154.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008840 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 90, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 46.7, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 77.0, \"min\": 30.8, \"max\": 154.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad389_1437", "family": "block", "tier": 1, "seed": 2468008841, "symmetry": "none", "op_count": 2, "ir_hash": "e54c24688ac0cbda", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2760.0, "surface_area": 1730.0, "principal_moments": [82900.0, 106000.0, 154000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 20, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 8.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 16.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008841 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 8.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 16.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad38a_1438", "family": "enclosure", "tier": 1, "seed": 2468008842, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "7ad57f1aae6dd65c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34800.0, "surface_area": 21900.0, "principal_moments": [18400000.0, 23599999.999999996, 35900000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 70, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 58.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 29.6, "min": 11.8, "max": 59.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008842 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 70, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 58.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 29.6, \"min\": 11.8, \"max\": 59.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad38b_1439", "family": "block", "tier": 1, "seed": 2468008843, "symmetry": "none", "op_count": 2, "ir_hash": "e6576db270cc7bab", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 58500.0, "surface_area": 12200.0, "principal_moments": [13499999.999999998, 15699999.999999998, 16299999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 38.63, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 37.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 43.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 8.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008843 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 38.63, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 37.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 43.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 8.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad38c_1440", "family": "block", "tier": 2, "seed": 2468008844, "symmetry": "none", "op_count": 3, "ir_hash": "7c0a0ec470bcd771", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 298000.0, "surface_area": 37700.0, "principal_moments": [168000000.0, 281000000.0, 315000000.0], "n_faces": 42, "n_edges": 120, "n_vertices": 80}, "params": {"block_w": {"type": "float", "default": 65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 52.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 92.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 7.7, "min": 2.0, "max": 15.4, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008844 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 52.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 92.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 7.7, \"min\": 2.0, \"max\": 15.4, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.04757608717006273)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad38f_1443", "family": "revolved", "tier": 1, "seed": 2468008847, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "e22c92650dcdc176", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2290.0, "surface_area": 1450.0, "principal_moments": [31200.0, 211000.0, 211000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 10, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 32.0, "min": 9.6, "max": 96.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 3.0, "min": 2.0, "max": 7.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008847 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 10, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 32.0, \"min\": 9.6, \"max\": 96.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 7.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad390_1444", "family": "bracket", "tier": 2, "seed": 2468008848, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "cb3af3bfc505ffcf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24800.0, "surface_area": 13900.0, "principal_moments": [7530000.0, 22200000.0, 22700000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 55.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.2, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008848 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 55.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.2, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad391_1445", "family": "plate", "tier": 1, "seed": 2468008849, "symmetry": "none", "op_count": 2, "ir_hash": "2ad25e85b8029bb2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1300.0, "surface_area": 1600.0, "principal_moments": [41100.0, 134000.0, 174000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"plate_w": {"type": "float", "default": 35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 19.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 1.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008849 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 19.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 1.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 8.8\n _ssy = 7.4\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad392_1446", "family": "bracket", "tier": 2, "seed": 2468008850, "symmetry": "none", "op_count": 1, "ir_hash": "bd4c92e0ef349e64", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27900.0, "surface_area": 12700.0, "principal_moments": [8580000.0, 15099999.999999998, 17500000.0], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 54.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 6.0, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008850 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 54.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad395_1449", "family": "ribbed", "tier": 2, "seed": 2468008853, "symmetry": "none", "op_count": 3, "ir_hash": "be1e9c46588e983c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4120.0, "surface_area": 3230.0, "principal_moments": [248000.0, 599000.0, 727000.0], "n_faces": 30, "n_edges": 88, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 31.88, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 21.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 9.7, "min": 3.9, "max": 19.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.5, "min": 1.0, "max": 13.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008853 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 31.88, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 21.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 9.7, \"min\": 3.9, \"max\": 19.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.5, \"min\": 1.0, \"max\": 13.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad396_1450", "family": "plate", "tier": 2, "seed": 2468008854, "symmetry": "radial", "op_count": 3, "ir_hash": "3959ea23ad07c2b5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 478.0, "surface_area": 663.0, "principal_moments": [5470.0, 22100.0, 27200.0], "n_faces": 28, "n_edges": 78, "n_vertices": 52}, "params": {"plate_w": {"type": "float", "default": 23.09, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 11.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 6.9, "min": 4.6, "max": 10.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008854 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 23.09, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 11.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 6.9, \"min\": 4.6, \"max\": 10.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.10473265285543065)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad397_1451", "family": "plate", "tier": 1, "seed": 2468008855, "symmetry": "radial", "op_count": 2, "ir_hash": "9599b352e1aa7537", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 48400.0, "surface_area": 14000.0, "principal_moments": [8860000.0, 49399999.99999999, 57499999.99999999], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"plate_w": {"type": "float", "default": 110, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 45.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 33.0, "min": 22.0, "max": 49.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008855 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 110, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 45.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 33.0, \"min\": 22.0, \"max\": 49.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad398_1452", "family": "compound", "tier": 1, "seed": 2468008856, "symmetry": "none", "op_count": 2, "ir_hash": "abcf58474452a8d4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2630.0, "surface_area": 1230.0, "principal_moments": [40900.0, 202000.0, 202000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 12.0, "min": 6.0, "max": 21.6, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 18.4, "min": 7.4, "max": 36.8, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 7.1, "min": 3.5, "max": 10.8, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 13.9, "min": 4.2, "max": 34.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008856 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 6.0, \"max\": 21.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 18.4, \"min\": 7.4, \"max\": 36.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 7.1, \"min\": 3.5, \"max\": 10.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 13.9, \"min\": 4.2, \"max\": 34.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad399_1453", "family": "bracket", "tier": 1, "seed": 2468008857, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "365dbe71cb296310", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22500.0, "surface_area": 10600.0, "principal_moments": [6740000.0, 7000000.0, 12599999.999999998], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 57.06, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 29.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008857 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 57.06, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 29.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad39a_1454", "family": "threaded", "tier": 0, "seed": 2468008858, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "08e97b24e5ac43b6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1820.0, "surface_area": 1400.0, "principal_moments": [19100.0, 129000.0, 129000.0], "n_faces": 195, "n_edges": 499, "n_vertices": 306}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 28.2, "min": 11.3, "max": 56.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008858 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 28.2, \"min\": 11.3, \"max\": 56.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad39b_1455", "family": "revolved", "tier": 2, "seed": 2468008859, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "bae171c71cc9463d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 123000.0, "surface_area": 23600.0, "principal_moments": [65799999.99999999, 73200000.0, 73200000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 49.11, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 57.7, "min": 17.3, "max": 173.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.2, "min": 2.0, "max": 34.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 85.1, "min": 58.9, "max": 147.3, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.3, "min": 2.2, "max": 28.9, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.6, "min": 0.1, "max": 1.8, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008859 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 49.11, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 57.7, \"min\": 17.3, \"max\": 173.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.2, \"min\": 2.0, \"max\": 34.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 85.1, \"min\": 58.9, \"max\": 147.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.3, \"min\": 2.2, \"max\": 28.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.6, \"min\": 0.1, \"max\": 1.8, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad39d_1457", "family": "block", "tier": 1, "seed": 2468008861, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "b5bdecf71026941b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 409000.0, "surface_area": 49700.0, "principal_moments": [366000000.0, 412000000.0, 636000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 95, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 46.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 10.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008861 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 95, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 46.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 10.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad39e_1458", "family": "compound", "tier": 2, "seed": 2468008862, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3b09668b7976eec0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11700.0, "surface_area": 4520.0, "principal_moments": [1150000.0, 1620000.0, 1620000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 16.37, "min": 9.8, "max": 26.2, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 14.1, "min": 5.6, "max": 35.2, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 12.2, "min": 6.1, "max": 22.7, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 26.5, "min": 7.9, "max": 66.2, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 6.2, "min": 2.0, "max": 8.8, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008862 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 16.37, \"min\": 9.8, \"max\": 26.2, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 14.1, \"min\": 5.6, \"max\": 35.2, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 12.2, \"min\": 6.1, \"max\": 22.7, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 26.5, \"min\": 7.9, \"max\": 66.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 6.2, \"min\": 2.0, \"max\": 8.8, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad39f_1459", "family": "ribbed", "tier": 2, "seed": 2468008863, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "0e079eeaba070586", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20800.0, "surface_area": 8260.0, "principal_moments": [2920000.0, 7500000.0, 9850000.0], "n_faces": 30, "n_edges": 88, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 37.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 7.3, "min": 2.9, "max": 14.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.8, "min": 1.0, "max": 14.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 8.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008863 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 37.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 7.3, \"min\": 2.9, \"max\": 14.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.8, \"min\": 1.0, \"max\": 14.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 8.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad3a0_1460", "family": "profiled", "tier": 1, "seed": 2468008864, "symmetry": "none", "op_count": 1, "ir_hash": "5863cb59dfebcbf6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30200.0, "surface_area": 7490.0, "principal_moments": [1260000.0, 34500000.0, 34500000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"circ_r": {"type": "float", "default": 10, "min": 5.0, "max": 20.0, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 116.1, "min": 34.8, "max": 348.3, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008864 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 10, \"min\": 5.0, \"max\": 20.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 116.1, \"min\": 34.8, \"max\": 348.3, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad3a1_1461", "family": "revolved", "tier": 2, "seed": 2468008865, "symmetry": "none", "op_count": 2, "ir_hash": "8fb8e6308fcec6b1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 709000.0, "surface_area": 87000.0, "principal_moments": [651000000.0, 3170000000.0, 3170000000.0], "n_faces": 12, "n_edges": 20, "n_vertices": 12}, "params": {"outer_d": {"type": "float", "default": 76.03, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 218.3, "min": 65.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 40.0, "min": 2.0, "max": 53.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 2.97, "min": 1.19, "max": 8.91, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 11.61, "min": 4.64, "max": 34.83, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 99.7, "min": 32.7, "max": 185.6, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.6, "min": 0.1, "max": 1.8, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008865 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 76.03, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 218.3, \"min\": 65.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 40.0, \"min\": 2.0, \"max\": 53.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 2.97, \"min\": 1.19, \"max\": 8.91, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 11.61, \"min\": 4.64, \"max\": 34.83, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 99.7, \"min\": 32.7, \"max\": 185.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.6, \"min\": 0.1, \"max\": 1.8, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad3a5_1465", "family": "ribbed", "tier": 2, "seed": 2468008869, "symmetry": "none", "op_count": 2, "ir_hash": "7de8c0c13720db12", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12400.0, "surface_area": 11500.0, "principal_moments": [1950000.0, 2350000.0, 3420000.0], "n_faces": 36, "n_edges": 84, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 44.25, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 41.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.2, "min": 6.5, "max": 32.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.0, "min": 1.0, "max": 5.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008869 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 44.25, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 41.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.2, \"min\": 6.5, \"max\": 32.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 5.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad3a6_1466", "family": "flanged", "tier": 1, "seed": 2468008870, "symmetry": "radial", "op_count": 2, "ir_hash": "dcff1b48ebc0222e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 95300.0, "surface_area": 25600.0, "principal_moments": [55899999.99999999, 55899999.99999999, 66099999.99999999], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 45, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 49.0, "min": 14.7, "max": 122.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 19.5, "min": 2.0, "max": 31.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 98.4, "min": 58.5, "max": 135.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.4, "min": 1.6, "max": 19.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 29.5, "min": 19.7, "max": 44.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008870 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 49.0, \"min\": 14.7, \"max\": 122.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 19.5, \"min\": 2.0, \"max\": 31.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 98.4, \"min\": 58.5, \"max\": 135.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.4, \"min\": 1.6, \"max\": 19.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 29.5, \"min\": 19.7, \"max\": 44.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad3a7_1467", "family": "revolved", "tier": 0, "seed": 2468008871, "symmetry": "none", "op_count": 1, "ir_hash": "cdba7d67758436ce", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14000.0, "surface_area": 6740.0, "principal_moments": [804000.0, 4410000.0, 4410000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 19.59, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 69.5, "min": 20.8, "max": 208.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008871 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 19.59, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 69.5, \"min\": 20.8, \"max\": 208.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3a8_1468", "family": "block", "tier": 2, "seed": 2468008872, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "08dcd007772ed113", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12600.0, "surface_area": 5820.0, "principal_moments": [703000.0, 2240000.0, 2310000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 20, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 18.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 34.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 14.4, "min": 7.2, "max": 28.8, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 11.6, "min": 4.6, "max": 29.0, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 10.1, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008872 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 18.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 34.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 14.4, \"min\": 7.2, \"max\": 28.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 11.6, \"min\": 4.6, \"max\": 29.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 10.1, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad3a9_1469", "family": "revolved", "tier": 2, "seed": 2468008873, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "30a8b77111df589e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 75300.0, "surface_area": 16200.0, "principal_moments": [19500000.0, 42400000.0, 42400000.0], "n_faces": 8, "n_edges": 12, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 41.64, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 71.4, "min": 21.4, "max": 214.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 19.1, "min": 2.0, "max": 29.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 1.81, "min": 0.72, "max": 5.43, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 6.69, "min": 2.68, "max": 20.07, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 34.9, "min": 10.7, "max": 60.7, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008873 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 41.64, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 71.4, \"min\": 21.4, \"max\": 214.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 19.1, \"min\": 2.0, \"max\": 29.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 1.81, \"min\": 0.72, \"max\": 5.43, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 6.69, \"min\": 2.68, \"max\": 20.07, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 34.9, \"min\": 10.7, \"max\": 60.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad3ab_1471", "family": "bracket", "tier": 1, "seed": 2468008875, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "6f975b64e877a1ae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10700.0, "surface_area": 5020.0, "principal_moments": [1390000.0, 1800000.0, 2150000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 29.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 23.8, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 9.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008875 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 29.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 23.8, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 9.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad3ad_1473", "family": "ribbed", "tier": 1, "seed": 2468008877, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "4d4b0c41669e4ff0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 43100.0, "surface_area": 19000.0, "principal_moments": [10300000.0, 16900000.0, 22799999.999999996], "n_faces": 54, "n_edges": 132, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 45.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.3, "min": 6.5, "max": 32.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.7, "min": 1.0, "max": 6.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008877 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 45.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.3, \"min\": 6.5, \"max\": 32.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.7, \"min\": 1.0, \"max\": 6.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad3ae_1474", "family": "bracket", "tier": 1, "seed": 2468008878, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "e5b49174cc2e007d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18700.0, "surface_area": 6350.0, "principal_moments": [2950000.0, 3730000.0, 5570000.0], "n_faces": 9, "n_edges": 21, "n_vertices": 14}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008878 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad3b1_1477", "family": "compound", "tier": 1, "seed": 2468008881, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "baad54c12af61f14", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 85500.0, "surface_area": 16200.0, "principal_moments": [13499999.999999998, 75800000.0, 75800000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 36.02, "min": 18.0, "max": 64.8, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 78.0, "min": 31.2, "max": 156.0, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 20.7, "min": 10.3, "max": 32.4, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 36.7, "min": 11.0, "max": 91.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 8.4, "min": 2.0, "max": 14.9, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008881 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 36.02, \"min\": 18.0, \"max\": 64.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 78.0, \"min\": 31.2, \"max\": 156.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 20.7, \"min\": 10.3, \"max\": 32.4, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 36.7, \"min\": 11.0, \"max\": 91.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 14.9, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad3b2_1478", "family": "threaded", "tier": 0, "seed": 2468008882, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "4c34b74833b26875", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 294.0, "surface_area": 447.0, "principal_moments": [764.0, 8590.0, 8590.0], "n_faces": 235, "n_edges": 603, "n_vertices": 370}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 18.4, "min": 7.4, "max": 36.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008882 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 18.4, \"min\": 7.4, \"max\": 36.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad3b3_1479", "family": "revolved", "tier": 1, "seed": 2468008883, "symmetry": "none", "op_count": 1, "ir_hash": "c123202aee99f62d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24200.0, "surface_area": 8080.0, "principal_moments": [3820000.0, 7460000.0, 7460000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 20, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 51.6, "min": 15.5, "max": 154.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 8.9, "min": 2.0, "max": 14.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 42.2, "min": 24.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 10.3, "min": 3.1, "max": 25.8, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008883 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 20, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 51.6, \"min\": 15.5, \"max\": 154.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 8.9, \"min\": 2.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 42.2, \"min\": 24.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 10.3, \"min\": 3.1, \"max\": 25.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad3b4_1480", "family": "revolved", "tier": 1, "seed": 2468008884, "symmetry": "radial", "op_count": 1, "ir_hash": "e6ad2f44a536b14f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15400.0, "surface_area": 6550.0, "principal_moments": [1190000.0, 3570000.0, 3570000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 22.68, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 57.1, "min": 17.1, "max": 171.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008884 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 22.68, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 57.1, \"min\": 17.1, \"max\": 171.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3b6_1482", "family": "plate", "tier": 1, "seed": 2468008886, "symmetry": "none", "op_count": 2, "ir_hash": "c17a52389840fe12", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2350.0, "surface_area": 1920.0, "principal_moments": [43500.0, 360000.0, 397000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"plate_w": {"type": "float", "default": 43.08, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 14.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 1.9, "min": 2.0, "max": 1.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008886 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 43.08, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 14.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.9, \"min\": 2.0, \"max\": 1.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(17.2, 3.8, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad3b7_1483", "family": "enclosure", "tier": 1, "seed": 2468008887, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "a3fc46a8de70b913", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 131000.0, "surface_area": 88300.0, "principal_moments": [261000000.0, 333000000.0, 424000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 120.0, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 96.9, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 78.6, "min": 31.4, "max": 157.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008887 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 120.0, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 96.9, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 78.6, \"min\": 31.4, \"max\": 157.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3b8_1484", "family": "plate", "tier": 2, "seed": 2468008888, "symmetry": "none", "op_count": 3, "ir_hash": "b2324d7987b8d5fd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16200.0, "surface_area": 5080.0, "principal_moments": [1040000.0, 4230000.0, 4880000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 25.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008888 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 25.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.06066197854260552)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad3b9_1485", "family": "bracket", "tier": 1, "seed": 2468008889, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "7e9b265c67ef4b38", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14200.0, "surface_area": 10500.0, "principal_moments": [3830000.0, 13099999.999999998, 13999999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 58.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008889 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 58.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad3bd_1489", "family": "flanged", "tier": 1, "seed": 2468008893, "symmetry": "none", "op_count": 2, "ir_hash": "b94ca7e241595dfd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 112000.0, "surface_area": 28700.0, "principal_moments": [75800000.0, 75800000.0, 102000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 44.47, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 48.9, "min": 14.7, "max": 122.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 19.0, "min": 2.0, "max": 31.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 106.5, "min": 57.8, "max": 133.4, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.9, "min": 2.1, "max": 19.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 31.9, "min": 21.3, "max": 47.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008893 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 44.47, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 48.9, \"min\": 14.7, \"max\": 122.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 19.0, \"min\": 2.0, \"max\": 31.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 106.5, \"min\": 57.8, \"max\": 133.4, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.9, \"min\": 2.1, \"max\": 19.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 31.9, \"min\": 21.3, \"max\": 47.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad3c0_1492", "family": "bracket", "tier": 1, "seed": 2468008896, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "c76eb2bae8f2d432", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25700.0, "surface_area": 14900.0, "principal_moments": [17800000.0, 24199999.999999996, 38100000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 76.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008896 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 76.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad3c1_1493", "family": "flanged", "tier": 1, "seed": 2468008897, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "a98b2678beff97fa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 764000.0, "surface_area": 99100.0, "principal_moments": [1790000000.0, 1790000000.0, 2440000000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 94.97, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 90.0, "min": 27.0, "max": 225.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 52.1, "min": 2.0, "max": 66.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 189.6, "min": 123.5, "max": 284.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 15.1, "min": 4.5, "max": 36.0, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 56.9, "min": 37.9, "max": 85.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008897 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 94.97, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 90.0, \"min\": 27.0, \"max\": 225.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 52.1, \"min\": 2.0, \"max\": 66.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 189.6, \"min\": 123.5, \"max\": 284.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 15.1, \"min\": 4.5, \"max\": 36.0, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 56.9, \"min\": 37.9, \"max\": 85.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3c2_1494", "family": "plate", "tier": 2, "seed": 2468008898, "symmetry": "none", "op_count": 3, "ir_hash": "eb879f0eef905a89", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27100.0, "surface_area": 8210.0, "principal_moments": [2750000.0, 15399999.999999998, 17700000.0], "n_faces": 42, "n_edges": 120, "n_vertices": 80}, "params": {"plate_w": {"type": "float", "default": 82.26, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 33.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 9.8, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008898 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 82.26, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 33.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 9.8, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.051061032197152044)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3c3_1495", "family": "block", "tier": 2, "seed": 2468008899, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "223622489d3d689d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5590.0, "surface_area": 3130.0, "principal_moments": [226000.0, 504000.0, 584000.0], "n_faces": 31, "n_edges": 71, "n_vertices": 46}, "params": {"block_w": {"type": "float", "default": 20, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 8.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 21.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.4, "min": 2.0, "max": 2.5, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "boss_d": {"type": "float", "default": 19.1, "min": 9.6, "max": 38.2, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 8.4, "min": 3.4, "max": 21.0, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008899 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 8.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 21.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 2.5, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 19.1, \"min\": 9.6, \"max\": 38.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.4, \"max\": 21.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3c4_1496", "family": "plate", "tier": 1, "seed": 2468008900, "symmetry": "none", "op_count": 2, "ir_hash": "e17e2c91f64e9796", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19700.0, "surface_area": 8690.0, "principal_moments": [2820000.0, 11200000.0, 13899999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 83.69, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 41.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 9.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008900 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 83.69, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 41.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 9.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad3c5_1497", "family": "revolved", "tier": 0, "seed": 2468008901, "symmetry": "radial", "op_count": 1, "ir_hash": "e6f21b5bdb34df30", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 423000.0, "surface_area": 66400.0, "principal_moments": [228000000.0, 1380000000.0, 1380000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 60, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 224.3, "min": 67.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008901 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 224.3, \"min\": 67.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad3c6_1498", "family": "ribbed", "tier": 1, "seed": 2468008902, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "58105d28f86b2a84", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21100.0, "surface_area": 17700.0, "principal_moments": [5200000.0, 6880000.0, 10300000.0], "n_faces": 36, "n_edges": 84, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 51.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 18.0, "min": 7.2, "max": 36.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.3, "min": 1.0, "max": 5.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008902 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 51.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 18.0, \"min\": 7.2, \"max\": 36.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.3, \"min\": 1.0, \"max\": 5.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad3c8_1500", "family": "revolved", "tier": 0, "seed": 2468008904, "symmetry": "none", "op_count": 1, "ir_hash": "de58d622c07959f0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 759.0, "surface_area": 748.0, "principal_moments": [12900.0, 13800.0, 13800.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 10.64, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 12.8, "min": 3.8, "max": 38.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008904 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 10.64, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 12.8, \"min\": 3.8, \"max\": 38.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad3c9_1501", "family": "revolved", "tier": 2, "seed": 2468008905, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8463cc1f01f17e37", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 44300.0, "surface_area": 19000.0, "principal_moments": [22200000.0, 22200000.0, 41600000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 45.58, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 19.5, "min": 5.8, "max": 58.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 26.9, "min": 2.0, "max": 31.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 97.9, "min": 54.7, "max": 136.7, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.0, "min": 1.2, "max": 9.8, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008905 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45.58, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 19.5, \"min\": 5.8, \"max\": 58.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 26.9, \"min\": 2.0, \"max\": 31.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 97.9, \"min\": 54.7, \"max\": 136.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.2, \"max\": 9.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3ca_1502", "family": "plate", "tier": 1, "seed": 2468008906, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "9ca4961da4788c19", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12600.0, "surface_area": 4230.0, "principal_moments": [745000.0, 2240000.0, 2690000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 24.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008906 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 24.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3cb_1503", "family": "block", "tier": 1, "seed": 2468008907, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "d4ed511ea07cf91c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 88500.0, "surface_area": 19000.0, "principal_moments": [19200000.0, 46199999.99999999, 49599999.99999999], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 40, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 33.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 72.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.2, "min": 2.0, "max": 9.8, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008907 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 33.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 72.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 9.8, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad3cc_1504", "family": "revolved", "tier": 1, "seed": 2468008908, "symmetry": "radial", "op_count": 1, "ir_hash": "d032250edb5dc022", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61000.0, "surface_area": 13500.0, "principal_moments": [10600000.0, 43300000.0, 43300000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 25, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 86.8, "min": 26.0, "max": 260.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 9.2, "min": 2.0, "max": 17.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 42.5, "min": 30.0, "max": 75.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 26.0, "min": 7.8, "max": 43.4, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008908 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 86.8, \"min\": 26.0, \"max\": 260.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 9.2, \"min\": 2.0, \"max\": 17.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 42.5, \"min\": 30.0, \"max\": 75.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 26.0, \"min\": 7.8, \"max\": 43.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3cd_1505", "family": "block", "tier": 2, "seed": 2468008909, "symmetry": "none", "op_count": 3, "ir_hash": "cb15a506f9974c4d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17900.0, "surface_area": 6500.0, "principal_moments": [1720000.0, 2500000.0, 3310000.0], "n_faces": 42, "n_edges": 120, "n_vertices": 80}, "params": {"block_w": {"type": "float", "default": 30, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 18.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 37.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 5.3, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008909 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 18.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 37.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 5.3, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.046310211051817)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad3ce_1506", "family": "bracket", "tier": 1, "seed": 2468008910, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "6c74840d3a7b0a5d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12800.0, "surface_area": 9440.0, "principal_moments": [3890000.0, 4410000.0, 7060000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 31.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008910 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 31.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.09845823031825551)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3d3_1511", "family": "block", "tier": 2, "seed": 2468008915, "symmetry": "none", "op_count": 3, "ir_hash": "5a4cbdc7e616da44", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 340000.0, "surface_area": 37900.0, "principal_moments": [260000000.0, 273000000.0, 367000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 81.64, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 54.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 79.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 5.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "boss_d": {"type": "float", "default": 8.6, "min": 4.3, "max": 17.2, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 5.2, "min": 2.1, "max": 13.0, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.0, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008915 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 81.64, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 54.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 79.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 5.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"boss_d\": {\"type\": 'float', \"default\": 8.6, \"min\": 4.3, \"max\": 17.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.1, \"max\": 13.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 30.6\n _ssy = 34.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad3d4_1512", "family": "ribbed", "tier": 1, "seed": 2468008916, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "7ffcef5d1bb3073c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19500.0, "surface_area": 8920.0, "principal_moments": [3640000.0, 8160000.0, 10100000.0], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 56.14, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 38.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 17.6, "min": 7.0, "max": 35.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.6, "min": 1.0, "max": 14.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008916 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 56.14, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 38.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 17.6, \"min\": 7.0, \"max\": 35.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 1.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad3d5_1513", "family": "enclosure", "tier": 1, "seed": 2468008917, "symmetry": "none", "op_count": 2, "ir_hash": "06b6a10ef18fde7e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 166000.0, "surface_area": 61500.0, "principal_moments": [253000000.0, 282000000.0, 428000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 105, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 97.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 56.5, "min": 22.6, "max": 113.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008917 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 105, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 97.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 56.5, \"min\": 22.6, \"max\": 113.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3d6_1514", "family": "plate", "tier": 1, "seed": 2468008918, "symmetry": "none", "op_count": 2, "ir_hash": "2286dd1b28d86fa1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8130.0, "surface_area": 5910.0, "principal_moments": [549000.0, 4320000.0, 4840000.0], "n_faces": 70, "n_edges": 204, "n_vertices": 136}, "params": {"plate_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 28.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 4.4, "step": 0.1, "group": "Holes", "label": "Square hole size (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008918 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 28.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 4.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(21.3, 7.5, p[\"hole_nx\"], p[\"hole_ny\"])\n .rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3d7_1515", "family": "plate", "tier": 0, "seed": 2468008919, "symmetry": "radial", "op_count": 1, "ir_hash": "e7fee59a41113edb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 59700.0, "surface_area": 15200.0, "principal_moments": [15199999.999999998, 60699999.99999999, 74900000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 110, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 54.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008919 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 110, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 54.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3d8_1516", "family": "plate", "tier": 1, "seed": 2468008920, "symmetry": "none", "op_count": 2, "ir_hash": "d11b48de53d39455", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1880.0, "surface_area": 1430.0, "principal_moments": [24500.0, 179000.0, 196000.0], "n_faces": 30, "n_edges": 84, "n_vertices": 56}, "params": {"plate_w": {"type": "float", "default": 33.73, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 11.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 1.5, "min": 2.0, "max": 1.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}, "hole_slot_len": {"type": "float", "default": 2.8, "min": 2.2, "max": 6.6, "step": 0.5, "group": "Holes", "label": "Slot length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008920 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 33.73, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 11.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.5, \"min\": 2.0, \"max\": 1.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n \"hole_slot_len\": {\"type\": 'float', \"default\": 2.8, \"min\": 2.2, \"max\": 6.6, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot length (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(13.5, 9.4, p[\"hole_nx\"], p[\"hole_ny\"])\n .slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad3d9_1517", "family": "flanged", "tier": 1, "seed": 2468008921, "symmetry": "radial", "op_count": 2, "ir_hash": "f94dc8c4e1a0b729", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 204000.0, "surface_area": 39400.0, "principal_moments": [167000000.0, 167000000.0, 167000000.0], "n_faces": 29, "n_edges": 114, "n_vertices": 76}, "params": {"outer_d": {"type": "float", "default": 63.05, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 65.1, "min": 19.5, "max": 162.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 21.0, "min": 2.0, "max": 44.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 104.4, "min": 82.0, "max": 189.1, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.9, "min": 2.7, "max": 26.0, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 31.3, "min": 20.9, "max": 47.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008921 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 63.05, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 65.1, \"min\": 19.5, \"max\": 162.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 21.0, \"min\": 2.0, \"max\": 44.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 104.4, \"min\": 82.0, \"max\": 189.1, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.9, \"min\": 2.7, \"max\": 26.0, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 31.3, \"min\": 20.9, \"max\": 47.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad3da_1518", "family": "bracket", "tier": 1, "seed": 2468008922, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "b7c32b25d378f106", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12900.0, "surface_area": 6860.0, "principal_moments": [3080000.0, 11000000.0, 13399999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 72.66, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 72.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 18.51, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 7.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008922 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 72.66, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 72.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 18.51, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 7.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3dd_1521", "family": "block", "tier": 1, "seed": 2468008925, "symmetry": "radial", "op_count": 2, "ir_hash": "6dab3001eb74b39f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 91900.0, "surface_area": 29000.0, "principal_moments": [27999999.999999996, 80300000.0, 101000000.0], "n_faces": 24, "n_edges": 66, "n_vertices": 44}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 22.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 16.5, "min": 11.0, "max": 24.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008925 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 22.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 16.5, \"min\": 11.0, \"max\": 24.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad3df_1523", "family": "enclosure", "tier": 2, "seed": 2468008927, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "f4b41cd96350fa77", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12100.0, "surface_area": 9320.0, "principal_moments": [1710000.0, 4590000.0, 5050000.0], "n_faces": 35, "n_edges": 108, "n_vertices": 72}, "params": {"enc_w": {"type": "float", "default": 55, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 25.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 23.0, "min": 9.2, "max": 46.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008927 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 55, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 25.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 23.0, \"min\": 9.2, \"max\": 46.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.06430447337714644)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3e0_1524", "family": "plate", "tier": 1, "seed": 2468008928, "symmetry": "none", "op_count": 2, "ir_hash": "63dfb501fff1575a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29400.0, "surface_area": 9150.0, "principal_moments": [3770000.0, 16099999.999999998, 19300000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"plate_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 37.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008928 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 37.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 15.0\n _ssy = 15.6\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3e1_1525", "family": "plate", "tier": 1, "seed": 2468008929, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "3cac60d7fa3d3f81", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18900.0, "surface_area": 10800.0, "principal_moments": [5660000.0, 10000000.0, 15599999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 60.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008929 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 60.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad3e2_1526", "family": "revolved", "tier": 0, "seed": 2468008930, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "284fab9a693e64c4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 55800.0, "surface_area": 12700.0, "principal_moments": [19800000.0, 19800000.0, 35400000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 65.02, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 25.2, "min": 7.6, "max": 75.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008930 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65.02, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 25.2, \"min\": 7.6, \"max\": 75.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3e3_1527", "family": "block", "tier": 2, "seed": 2468008931, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "8a1426873b4b3e73", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 68200.0, "surface_area": 21500.0, "principal_moments": [17700000.0, 44600000.0, 57099999.99999999], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 48.66, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 20.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 86.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "pocket_w": {"type": "float", "default": 33.0, "min": 16.5, "max": 38.9, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 9.0, "min": 4.5, "max": 16.0, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 47.0, "min": 18.8, "max": 73.4, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008931 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 48.66, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 20.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 86.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"pocket_w\": {\"type\": 'float', \"default\": 33.0, \"min\": 16.5, \"max\": 38.9, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 9.0, \"min\": 4.5, \"max\": 16.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 47.0, \"min\": 18.8, \"max\": 73.4, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 12.2\n _ssy = 13.8\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad3e4_1528", "family": "flanged", "tier": 1, "seed": 2468008932, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "b4ea9a166dde8c95", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 927000.0, "surface_area": 113000.0, "principal_moments": [2330000000.0, 2330000000.0, 2850000000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 96.53, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 98.9, "min": 29.7, "max": 247.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 35.6, "min": 2.0, "max": 67.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 210.4, "min": 125.5, "max": 289.6, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 11.0, "min": 3.3, "max": 39.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 63.1, "min": 42.1, "max": 94.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008932 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 96.53, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 98.9, \"min\": 29.7, \"max\": 247.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 35.6, \"min\": 2.0, \"max\": 67.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 210.4, \"min\": 125.5, \"max\": 289.6, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 11.0, \"min\": 3.3, \"max\": 39.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 63.1, \"min\": 42.1, \"max\": 94.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3e6_1530", "family": "block", "tier": 1, "seed": 2468008934, "symmetry": "none", "op_count": 2, "ir_hash": "8627b780b02ca6c0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19500.0, "surface_area": 5500.0, "principal_moments": [1650000.0, 3300000.0, 3460000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 40, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 21.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 23.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008934 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 21.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 23.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad3e7_1531", "family": "bracket", "tier": 1, "seed": 2468008935, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8f4f74831ba9a557", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19800.0, "surface_area": 10000.0, "principal_moments": [6440000.0, 22899999.999999996, 27199999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 78.16, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 88.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008935 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 78.16, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 88.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad3e9_1533", "family": "revolved", "tier": 1, "seed": 2468008937, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "fe64a0cd46197a45", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 104000.0, "surface_area": 20900.0, "principal_moments": [38900000.0, 58899999.99999999, 58899999.99999999], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 49.91, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 79.9, "min": 24.0, "max": 239.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 1.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008937 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 49.91, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 79.9, \"min\": 24.0, \"max\": 239.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 1.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad3ed_1537", "family": "compound", "tier": 2, "seed": 2468008941, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "b1f4754efa93abe1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 191000.0, "surface_area": 29100.0, "principal_moments": [104000000.0, 114000000.0, 152000000.0], "n_faces": 20, "n_edges": 54, "n_vertices": 36}, "params": {"block_w": {"type": "float", "default": 69.87, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 64.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 46.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 58.4, "min": 23.4, "max": 93.4, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 38.2, "min": 15.3, "max": 61.1, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 8.4, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 44.9, "min": 22.4, "max": 55.9, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 40.6, "min": 20.3, "max": 51.8, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 18.8, "min": 7.5, "max": 39.4, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008941 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 69.87, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 64.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 46.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 58.4, \"min\": 23.4, \"max\": 93.4, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 38.2, \"min\": 15.3, \"max\": 61.1, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 8.4, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 44.9, \"min\": 22.4, \"max\": 55.9, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 40.6, \"min\": 20.3, \"max\": 51.8, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 18.8, \"min\": 7.5, \"max\": 39.4, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad3ef_1539", "family": "enclosure", "tier": 1, "seed": 2468008943, "symmetry": "none", "op_count": 2, "ir_hash": "90b1be68c74f3a54", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 55900.0, "surface_area": 34800.0, "principal_moments": [39900000.0, 59799999.99999999, 69300000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 80, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 56.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 51.5, "min": 20.6, "max": 103.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008943 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 80, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 56.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 51.5, \"min\": 20.6, \"max\": 103.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3f2_1542", "family": "block", "tier": 2, "seed": 2468008946, "symmetry": "radial", "op_count": 3, "ir_hash": "8b76419ffd10da40", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 178000.0, "surface_area": 27600.0, "principal_moments": [78500000.0, 153000000.0, 205000000.0], "n_faces": 28, "n_edges": 78, "n_vertices": 52}, "params": {"block_w": {"type": "float", "default": 65.72, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 30.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 96.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 19.7, "min": 13.1, "max": 29.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008946 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65.72, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 30.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 96.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 19.7, \"min\": 13.1, \"max\": 29.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.08463599605424896)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3f3_1543", "family": "plate", "tier": 0, "seed": 2468008947, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "0b1e6a9043dba637", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1130.0, "surface_area": 1020.0, "principal_moments": [13300.0, 103000.0, 114000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 32.85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 11.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008947 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 32.85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 11.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3f4_1544", "family": "plate", "tier": 0, "seed": 2468008948, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d4422816e712a93e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7200.0, "surface_area": 3360.0, "principal_moments": [262000.0, 2180000.0, 2400000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 20.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008948 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 20.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3f5_1545", "family": "plate", "tier": 0, "seed": 2468008949, "symmetry": "none", "op_count": 1, "ir_hash": "de220d5e181a58c0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12700.0, "surface_area": 4000.0, "principal_moments": [1040000.0, 2070000.0, 2890000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 43.02, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 29.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008949 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 43.02, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 29.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad3f6_1546", "family": "plate", "tier": 2, "seed": 2468008950, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "43b0134c782550fe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11900.0, "surface_area": 5190.0, "principal_moments": [1390000.0, 1900000.0, 3160000.0], "n_faces": 26, "n_edges": 72, "n_vertices": 48}, "params": {"plate_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 38.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 8.6, "step": 0.5, "group": "Holes", "label": "Slot width (mm)"}, "hole_slot_len": {"type": "float", "default": 11.4, "min": 7.9, "max": 11.4, "step": 0.5, "group": "Holes", "label": "Slot length (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008950 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 38.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 8.6, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot width (mm)'},\n \"hole_slot_len\": {\"type\": 'float', \"default\": 11.4, \"min\": 7.9, \"max\": 11.4, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot length (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08140270541711667)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad3f7_1547", "family": "gear", "tier": 1, "seed": 2468008951, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "edd1e25ed16bcc36", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20500.0, "surface_area": 7230.0, "principal_moments": [3100000.0, 3100000.0, 5550000.0], "n_faces": 111, "n_edges": 327, "n_vertices": 218}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 18, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 13.8, "min": 5.5, "max": 34.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 9.5, "min": 2.0, "max": 23.2, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008951 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 18, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 13.8, \"min\": 5.5, \"max\": 34.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 9.5, \"min\": 2.0, \"max\": 23.2, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3f8_1548", "family": "block", "tier": 2, "seed": 2468008952, "symmetry": "radial", "op_count": 3, "ir_hash": "56f9d86bcb458431", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13100.0, "surface_area": 7780.0, "principal_moments": [1240000.0, 3170000.0, 4060000.0], "n_faces": 36, "n_edges": 102, "n_vertices": 68}, "params": {"block_w": {"type": "float", "default": 29.84, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 13.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 52.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 9.0, "min": 6.0, "max": 13.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008952 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 29.84, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 13.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 52.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 9.0, \"min\": 6.0, \"max\": 13.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.04937019105066036)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3f9_1549", "family": "block", "tier": 1, "seed": 2468008953, "symmetry": "none", "op_count": 2, "ir_hash": "01e68afadca23920", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 331000.0, "surface_area": 36900.0, "principal_moments": [222000000.0, 310000000.0, 313000000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 62.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 63.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008953 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 62.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 63.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 15.9\n _ssy = 17.0\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad3fa_1550", "family": "bracket", "tier": 1, "seed": 2468008954, "symmetry": "none", "op_count": 1, "ir_hash": "2e3bfe359d8927e0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20400.0, "surface_area": 9590.0, "principal_moments": [5290000.0, 8560000.0, 10400000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 49.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45.76, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008954 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 49.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45.76, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad3fd_1553", "family": "gear", "tier": 1, "seed": 2468008957, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "1d354ae5492c6bba", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12000.0, "surface_area": 5380.0, "principal_moments": [1630000.0, 1630000.0, 3140000.0], "n_faces": 111, "n_edges": 327, "n_vertices": 218}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 18, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 7.8, "min": 3.1, "max": 19.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 5.8, "min": 2.0, "max": 23.2, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008957 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 18, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 7.8, \"min\": 3.1, \"max\": 19.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.0, \"max\": 23.2, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad3fe_1554", "family": "block", "tier": 1, "seed": 2468008958, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "0db2562c26464d52", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 567000.0, "surface_area": 52100.0, "principal_moments": [544000000.0, 726000000.0, 762000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 78.88, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 73.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 16.9, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008958 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 78.88, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 73.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 16.9, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad3ff_1555", "family": "threaded", "tier": 1, "seed": 2468008959, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "c2d6c154caaf9f0f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 693.0, "surface_area": 867.0, "principal_moments": [2580.0, 53800.0, 53800.0], "n_faces": 310, "n_edges": 796, "n_vertices": 488}, "params": {"major_d": {"type": "float", "default": 6.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.0, "min": 0.5, "max": 2.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 30.3, "min": 12.1, "max": 60.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008959 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.5, \"max\": 2.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 30.3, \"min\": 12.1, \"max\": 60.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad400_1556", "family": "flanged", "tier": 1, "seed": 2468008960, "symmetry": "radial", "op_count": 2, "ir_hash": "929fe79a91f1ba58", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 450000.0, "surface_area": 74600.0, "principal_moments": [728000000.0, 861000000.0, 861000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 71.7, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 103.6, "min": 31.1, "max": 259.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 33.9, "min": 2.0, "max": 50.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 158.1, "min": 93.2, "max": 215.1, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.1, "min": 2.4, "max": 41.4, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 47.4, "min": 31.6, "max": 71.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008960 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 71.7, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 103.6, \"min\": 31.1, \"max\": 259.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 33.9, \"min\": 2.0, \"max\": 50.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 158.1, \"min\": 93.2, \"max\": 215.1, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.1, \"min\": 2.4, \"max\": 41.4, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 47.4, \"min\": 31.6, \"max\": 71.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad402_1558", "family": "enclosure", "tier": 1, "seed": 2468008962, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "1ea3801456c33d3b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 64700.0, "surface_area": 26700.0, "principal_moments": [24599999.999999996, 67300000.0, 68900000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 90, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 36.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 45.8, "min": 18.3, "max": 91.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.1, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008962 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 90, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 36.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 45.8, \"min\": 18.3, \"max\": 91.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.1, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad403_1559", "family": "plate", "tier": 1, "seed": 2468008963, "symmetry": "none", "op_count": 2, "ir_hash": "821e1e32e76e1111", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4190.0, "surface_area": 2500.0, "principal_moments": [163000.0, 588000.0, 733000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 41.08, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 21.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008963 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 41.08, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 21.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad405_1561", "family": "block", "tier": 2, "seed": 2468008965, "symmetry": "none", "op_count": 3, "ir_hash": "c3274e2acacb8788", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22500.0, "surface_area": 10200.0, "principal_moments": [3100000.0, 4180000.0, 4250000.0], "n_faces": 27, "n_edges": 84, "n_vertices": 56}, "params": {"block_w": {"type": "float", "default": 38.57, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 28.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 30.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 7.7, "min": 2.0, "max": 8.5, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "pocket_w": {"type": "float", "default": 24.8, "min": 12.4, "max": 30.9, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 15.6, "min": 7.8, "max": 23.1, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 11.7, "min": 4.7, "max": 26.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008965 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 38.57, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 28.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 30.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 7.7, \"min\": 2.0, \"max\": 8.5, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 24.8, \"min\": 12.4, \"max\": 30.9, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 15.6, \"min\": 7.8, \"max\": 23.1, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 11.7, \"min\": 4.7, \"max\": 26.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad407_1563", "family": "gear", "tier": 2, "seed": 2468008967, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "49e118b90114ec70", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3250.0, "surface_area": 2140.0, "principal_moments": [152000.0, 152000.0, 282000.0], "n_faces": 259, "n_edges": 643, "n_vertices": 386}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 16, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 6.5, "min": 2.6, "max": 16.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 24.4, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": -0.2, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.43, "min": 0.0, "max": 0.75, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 3.6, "min": 2.0, "max": 12.2, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008967 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 16, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 6.5, \"min\": 2.6, \"max\": 16.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 24.4, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.2, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.43, \"min\": 0.0, \"max\": 0.75, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 3.6, \"min\": 2.0, \"max\": 12.2, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=True, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad408_1564", "family": "plate", "tier": 1, "seed": 2468008968, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "192d68659b17ff77", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5490.0, "surface_area": 3510.0, "principal_moments": [564000.0, 731000.0, 1280000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 40, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 35.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008968 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 35.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad409_1565", "family": "revolved", "tier": 1, "seed": 2468008969, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "19d3a1e86fe8e38b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35400.0, "surface_area": 10800.0, "principal_moments": [5340000.0, 15599999.999999998, 15599999.999999998], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 30.73, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 66.1, "min": 19.8, "max": 198.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.2, "min": 2.0, "max": 21.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008969 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30.73, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 66.1, \"min\": 19.8, \"max\": 198.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.2, \"min\": 2.0, \"max\": 21.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad40a_1566", "family": "plate", "tier": 1, "seed": 2468008970, "symmetry": "radial", "op_count": 2, "ir_hash": "086939f7ff8466b5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14300.0, "surface_area": 6300.0, "principal_moments": [2940000.0, 2980000.0, 5830000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"plate_w": {"type": "float", "default": 49.45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 49.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 14.8, "min": 9.9, "max": 22.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008970 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 49.45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 49.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 14.8, \"min\": 9.9, \"max\": 22.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad40b_1567", "family": "block", "tier": 1, "seed": 2468008971, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "44b6cf29eae7fdae", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 72600.0, "surface_area": 16900.0, "principal_moments": [15299999.999999998, 31899999.999999996, 32099999.999999996], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 34.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 63.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008971 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 34.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 63.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 6.6\n _ssy = 6.9\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad40c_1568", "family": "gear", "tier": 0, "seed": 2468008972, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "dec2a6232abf72bc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3200.0, "surface_area": 2080.0, "principal_moments": [158000.0, 158000.0, 298000.0], "n_faces": 110, "n_edges": 324, "n_vertices": 216}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 18, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.7, "min": 2.3, "max": 14.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008972 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 18, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.3, \"max\": 14.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad40d_1569", "family": "plate", "tier": 1, "seed": 2468008973, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "c95114197d8f6133", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3120.0, "surface_area": 2180.0, "principal_moments": [192000.0, 234000.0, 417000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 30, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 27.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008973 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 27.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad40e_1570", "family": "enclosure", "tier": 1, "seed": 2468008974, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "b08fddb3175290a6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 87800.0, "surface_area": 32000.0, "principal_moments": [44800000.0, 108000000.0, 119000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 97.17, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 49.2, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 44.2, "min": 17.7, "max": 88.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008974 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 97.17, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 49.2, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 44.2, \"min\": 17.7, \"max\": 88.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad40f_1571", "family": "flanged", "tier": 1, "seed": 2468008975, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "115953c133c50601", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23800.0, "surface_area": 9520.0, "principal_moments": [5140000.0, 5140000.0, 6550000.0], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 30.72, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 28.8, "min": 8.6, "max": 72.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 15.3, "min": 2.0, "max": 21.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 56.3, "min": 39.9, "max": 92.2, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.9, "min": 1.5, "max": 11.5, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 16.9, "min": 11.3, "max": 25.3, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008975 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30.72, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 28.8, \"min\": 8.6, \"max\": 72.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 15.3, \"min\": 2.0, \"max\": 21.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 56.3, \"min\": 39.9, \"max\": 92.2, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.9, \"min\": 1.5, \"max\": 11.5, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 16.9, \"min\": 11.3, \"max\": 25.3, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad411_1573", "family": "enclosure", "tier": 1, "seed": 2468008977, "symmetry": "none", "op_count": 2, "ir_hash": "e5a4fbb1da05c087", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 110000.0, "surface_area": 43500.0, "principal_moments": [106000000.0, 126000000.0, 137000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 76.17, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 56.2, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 74.0, "min": 29.6, "max": 148.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008977 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 76.17, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 56.2, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 74.0, \"min\": 29.6, \"max\": 148.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad412_1574", "family": "gear", "tier": 2, "seed": 2468008978, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "78e9ed0559790775", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7340.0, "surface_area": 3360.0, "principal_moments": [617000.0, 617000.0, 1150000.0], "n_faces": 63, "n_edges": 183, "n_vertices": 122}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 12, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 8.3, "min": 3.3, "max": 20.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 22.2, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.29, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.73, "min": 0.0, "max": 1.25, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 6.2, "min": 2.0, "max": 14.2, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008978 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 12, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 8.3, \"min\": 3.3, \"max\": 20.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 22.2, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.29, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.73, \"min\": 0.0, \"max\": 1.25, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 6.2, \"min\": 2.0, \"max\": 14.2, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad413_1575", "family": "bracket", "tier": 1, "seed": 2468008979, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "8d36d276c3096a8d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25900.0, "surface_area": 12000.0, "principal_moments": [8240000.0, 14899999.999999998, 17500000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 60, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 49.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008979 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 60, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 49.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad41a_1582", "family": "block", "tier": 1, "seed": 2468008986, "symmetry": "none", "op_count": 2, "ir_hash": "1afa5a1471427e1d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35800.0, "surface_area": 8370.0, "principal_moments": [6210000.0, 7180000.0, 11100000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 45, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 19.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 41.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008986 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 19.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 41.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 16.9\n _ssy = 16.3\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad41b_1583", "family": "revolved", "tier": 0, "seed": 2468008987, "symmetry": "none", "op_count": 1, "ir_hash": "cb864ee593ea2f71", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27900.0, "surface_area": 8320.0, "principal_moments": [5130000.0, 5700000.0, 5700000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 35, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 43.5, "min": 13.0, "max": 130.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008987 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 43.5, \"min\": 13.0, \"max\": 130.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad41c_1584", "family": "profiled", "tier": 2, "seed": 2468008988, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "6858cf1d170fa28c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30500.0, "surface_area": 8710.0, "principal_moments": [1710000.0, 28399999.999999996, 28399999.999999996], "n_faces": 5, "n_edges": 9, "n_vertices": 6}, "params": {"circ_r": {"type": "float", "default": 15, "min": 7.5, "max": 30.0, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 3, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 104.2, "min": 31.3, "max": 312.6, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008988 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 15, \"min\": 7.5, \"max\": 30.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 3, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 104.2, \"min\": 31.3, \"max\": 312.6, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad41d_1585", "family": "gear", "tier": 0, "seed": 2468008989, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d0668c4ff429ab75", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1680000.0, "surface_area": 140000.0, "principal_moments": [5720000000.0, 5720000000.0, 11000000000.0], "n_faces": 230, "n_edges": 684, "n_vertices": 456}, "params": {"module": {"type": "float", "default": 6.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 38, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 41.5, "min": 16.6, "max": 103.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008989 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 6.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 38, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 41.5, \"min\": 16.6, \"max\": 103.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad41e_1586", "family": "revolved", "tier": 1, "seed": 2468008990, "symmetry": "none", "op_count": 2, "ir_hash": "abb328861cdec311", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 36500.0, "surface_area": 10800.0, "principal_moments": [4840000.0, 24799999.999999996, 24799999.999999996], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 21.41, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 81.4, "min": 24.4, "max": 244.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 9.2, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 39.7, "min": 25.7, "max": 64.2, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 14.6, "min": 4.4, "max": 40.7, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.3, "min": 0.1, "max": 3.9, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008990 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 21.41, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 81.4, \"min\": 24.4, \"max\": 244.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 9.2, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 39.7, \"min\": 25.7, \"max\": 64.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 14.6, \"min\": 4.4, \"max\": 40.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.3, \"min\": 0.1, \"max\": 3.9, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad422_1590", "family": "revolved", "tier": 0, "seed": 2468008994, "symmetry": "none", "op_count": 1, "ir_hash": "83e1df1dd07fa58e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 359000.0, "surface_area": 50400.0, "principal_moments": [264000000.0, 548000000.0, 548000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 70, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 139.8, "min": 41.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008994 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 70, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 139.8, \"min\": 41.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad423_1591", "family": "revolved", "tier": 2, "seed": 2468008995, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "82f7d484878dd931", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 493.0, "surface_area": 657.0, "principal_moments": [3430.0, 13700.0, 13700.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 6.83, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 20.5, "min": 6.1, "max": 61.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.8, "min": 0.1, "max": 2.4, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008995 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 6.83, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 20.5, \"min\": 6.1, \"max\": 61.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.1, \"max\": 2.4, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad426_1594", "family": "enclosure", "tier": 1, "seed": 2468008998, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f6ba4a7592581cff", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 125000.0, "surface_area": 45200.0, "principal_moments": [88100000.0, 223000000.0, 243000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 116.75, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 56.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 52.5, "min": 21.0, "max": 105.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008998 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 116.75, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 56.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 52.5, \"min\": 21.0, \"max\": 105.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad427_1595", "family": "revolved", "tier": 1, "seed": 2468008999, "symmetry": "none", "op_count": 1, "ir_hash": "a30ca758d036ddda", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 223000.0, "surface_area": 35300.0, "principal_moments": [105000000.0, 335000000.0, 335000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 55, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 123.3, "min": 37.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 26.8, "min": 2.0, "max": 38.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468008999 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 123.3, \"min\": 37.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 26.8, \"min\": 2.0, \"max\": 38.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad428_1596", "family": "threaded", "tier": 1, "seed": 2468009000, "symmetry": "none", "op_count": 1, "ir_hash": "a63acb85b7de6e44", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15700.0, "surface_area": 5930.0, "principal_moments": [676000.0, 4770000.0, 4770000.0], "n_faces": 416, "n_edges": 1142, "n_vertices": 728}, "params": {"major_d": {"type": "float", "default": 20.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 2.5, "min": 1.25, "max": 5.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 58.5, "min": 23.4, "max": 117.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009000 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 20.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.25, \"max\": 5.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 58.5, \"min\": 23.4, \"max\": 117.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad429_1597", "family": "revolved", "tier": 1, "seed": 2468009001, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "e795518a3bde7e21", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2920.0, "surface_area": 2050.0, "principal_moments": [203000.0, 203000.0, 393000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 29.98, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 6.2, "min": 1.9, "max": 18.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009001 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 29.98, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 6.2, \"min\": 1.9, \"max\": 18.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad42a_1598", "family": "profiled", "tier": 0, "seed": 2468009002, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "17fa2e42272b93a2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 571000.0, "surface_area": 63200.0, "principal_moments": [216000000.0, 6430000000.0, 6590000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 67.62, "min": 33.8, "max": 135.2, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 25.0, "min": 12.5, "max": 50.0, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 366.9, "min": 110.1, "max": 1100.7, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009002 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 67.62, \"min\": 33.8, \"max\": 135.2, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 25.0, \"min\": 12.5, \"max\": 50.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 366.9, \"min\": 110.1, \"max\": 1100.7, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad42c_1600", "family": "block", "tier": 2, "seed": 2468009004, "symmetry": "radial", "op_count": 3, "ir_hash": "0db5aa3c3df90b15", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 70000.0, "surface_area": 13500.0, "principal_moments": [16599999.999999998, 24299999.999999996, 31199999.999999996], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"block_w": {"type": "float", "default": 57.25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 44.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 28.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 17.2, "min": 11.5, "max": 25.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009004 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 57.25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 44.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 28.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 17.2, \"min\": 11.5, \"max\": 25.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.0718677814610526)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad42d_1601", "family": "flanged", "tier": 1, "seed": 2468009005, "symmetry": "none", "op_count": 2, "ir_hash": "6b90db243b8fd5f1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 242000.0, "surface_area": 46400.0, "principal_moments": [258000000.0, 258000000.0, 439000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 65, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 43.7, "min": 13.1, "max": 109.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 24.0, "min": 2.0, "max": 45.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 143.3, "min": 84.5, "max": 195.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.2, "min": 2.8, "max": 17.5, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 43.0, "min": 28.7, "max": 64.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009005 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 43.7, \"min\": 13.1, \"max\": 109.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 24.0, \"min\": 2.0, \"max\": 45.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 143.3, \"min\": 84.5, \"max\": 195.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.2, \"min\": 2.8, \"max\": 17.5, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 43.0, \"min\": 28.7, \"max\": 64.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad42e_1602", "family": "compound", "tier": 2, "seed": 2468009006, "symmetry": "none", "op_count": 4, "ir_hash": "0bc896cfab20a9b7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 187000.0, "surface_area": 31000.0, "principal_moments": [192000000.0, 206000000.0, 218000000.0], "n_faces": 16, "n_edges": 39, "n_vertices": 26}, "params": {"base_w": {"type": "float", "default": 95, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 89.0, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 16.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 29.7, "min": 11.9, "max": 44.5, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 78.3, "min": 23.5, "max": 234.9, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009006 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 95, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 89.0, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 16.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 29.7, \"min\": 11.9, \"max\": 44.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 78.3, \"min\": 23.5, \"max\": 234.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_w\"], p[\"base_d\"]) * 0.0524585364186799)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad42f_1603", "family": "revolved", "tier": 0, "seed": 2468009007, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "b725d346e4a5ca6e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26700.0, "surface_area": 7960.0, "principal_moments": [5080000.0, 5120000.0, 5120000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 35.59, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 40.3, "min": 12.1, "max": 120.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009007 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35.59, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 40.3, \"min\": 12.1, \"max\": 120.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad430_1604", "family": "block", "tier": 1, "seed": 2468009008, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "99e1335c05055c67", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 289000.0, "surface_area": 38800.0, "principal_moments": [205000000.0, 271000000.0, 417000000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 34.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009008 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 34.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 15.9\n _ssy = 14.0\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad431_1605", "family": "bracket", "tier": 2, "seed": 2468009009, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "c2c14d7954ff60b4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26500.0, "surface_area": 19100.0, "principal_moments": [8170000.0, 38100000.0, 40500000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 63.82, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 48.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 49.5, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 69.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 2.6, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009009 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 63.82, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 48.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 49.5, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 69.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.6, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad432_1606", "family": "block", "tier": 2, "seed": 2468009010, "symmetry": "radial", "op_count": 3, "ir_hash": "111da2765d151953", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 434000.0, "surface_area": 37800.0, "principal_moments": [375000000.0, 446000000.0, 645000000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 89.2, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 49.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 99.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 26.8, "min": 17.8, "max": 40.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009010 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 89.2, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 49.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 99.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 26.8, \"min\": 17.8, \"max\": 40.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.05708930711366583)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad433_1607", "family": "enclosure", "tier": 1, "seed": 2468009011, "symmetry": "none", "op_count": 2, "ir_hash": "ccbb5ae4fd3e979c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31600.0, "surface_area": 15900.0, "principal_moments": [9980000.0, 15699999.999999998, 19100000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 58.28, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 40.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 32.7, "min": 13.1, "max": 65.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009011 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 58.28, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 40.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 32.7, \"min\": 13.1, \"max\": 65.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad434_1608", "family": "enclosure", "tier": 1, "seed": 2468009012, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "77885557388a0998", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6230.0, "surface_area": 5940.0, "principal_moments": [896000.0, 1000000.0, 1460000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 31.99, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 29.4, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 18.8, "min": 7.5, "max": 37.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009012 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 31.99, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 29.4, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 18.8, \"min\": 7.5, \"max\": 37.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad435_1609", "family": "gear", "tier": 1, "seed": 2468009013, "symmetry": "none", "op_count": 1, "ir_hash": "c338cfdf201e664b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15400.0, "surface_area": 6120.0, "principal_moments": [2130000.0, 2130000.0, 3960000.0], "n_faces": 135, "n_edges": 399, "n_vertices": 266}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 22, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 10.8, "min": 4.3, "max": 27.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 9.4, "min": 2.0, "max": 23.4, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009013 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 22, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 10.8, \"min\": 4.3, \"max\": 27.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 9.4, \"min\": 2.0, \"max\": 23.4, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad436_1610", "family": "bracket", "tier": 1, "seed": 2468009014, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "6e2d0769f895b7f5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32600.0, "surface_area": 15100.0, "principal_moments": [11399999.999999998, 33399999.999999996, 34800000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 56.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 48.33, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009014 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 56.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 48.33, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.11050810579937287)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad438_1612", "family": "gear", "tier": 2, "seed": 2468009016, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "986d78853e5cec00", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5550.0, "surface_area": 3440.0, "principal_moments": [529000.0, 529000.0, 1030000.0], "n_faces": 187, "n_edges": 555, "n_vertices": 370}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 23, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.2, "min": 2.1, "max": 13.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 22.2, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.16, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.28, "min": 0.0, "max": 0.75, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 7.1, "min": 2.0, "max": 18.4, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009016 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 23, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.1, \"max\": 13.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 22.2, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.16, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.28, \"min\": 0.0, \"max\": 0.75, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 7.1, \"min\": 2.0, \"max\": 18.4, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad43a_1614", "family": "block", "tier": 2, "seed": 2468009018, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "6941f4a921100424", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3260.0, "surface_area": 2040.0, "principal_moments": [100000.0, 143000.0, 149000.0], "n_faces": 42, "n_edges": 120, "n_vertices": 80}, "params": {"block_w": {"type": "float", "default": 20, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 14.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 13.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 4.4, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009018 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 14.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 13.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 4.4, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.10620042838059962)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad43b_1615", "family": "plate", "tier": 1, "seed": 2468009019, "symmetry": "none", "op_count": 2, "ir_hash": "e419a9d2d8875685", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37400.0, "surface_area": 12500.0, "principal_moments": [10300000.0, 22200000.0, 32099999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 57.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009019 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 57.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad43d_1617", "family": "revolved", "tier": 1, "seed": 2468009021, "symmetry": "none", "op_count": 1, "ir_hash": "f0e62dc96f690c74", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7370.0, "surface_area": 3200.0, "principal_moments": [604000.0, 604000.0, 992000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 29.95, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 15.7, "min": 4.7, "max": 47.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009021 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 29.95, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 15.7, \"min\": 4.7, \"max\": 47.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad43e_1618", "family": "bracket", "tier": 2, "seed": 2468009022, "symmetry": "none", "op_count": 1, "ir_hash": "bcf3f82416e3566e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17600.0, "surface_area": 12800.0, "principal_moments": [5690000.0, 10800000.0, 12499999.999999998], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 62.36, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 50.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 51.06, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 2.7, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009022 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 62.36, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 50.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 51.06, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.7, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad43f_1619", "family": "revolved", "tier": 1, "seed": 2468009023, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "83fe36f5ba6920e4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 150000.0, "surface_area": 31500.0, "principal_moments": [45500000.0, 200000000.0, 200000000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 45, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 141.2, "min": 42.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 0.5, "min": 0.1, "max": 1.5, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009023 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 141.2, \"min\": 42.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.5, \"min\": 0.1, \"max\": 1.5, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad442_1622", "family": "plate", "tier": 0, "seed": 2468009026, "symmetry": "none", "op_count": 1, "ir_hash": "57ed0191b77ecbd3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2200.0, "surface_area": 1070.0, "principal_moments": [37300.0, 103000.0, 104000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 21.53, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 10.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009026 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 21.53, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 10.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad444_1624", "family": "revolved", "tier": 0, "seed": 2468009028, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ba3bd24514005fe8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 106000.0, "surface_area": 24200.0, "principal_moments": [28299999.999999996, 96899999.99999999, 96899999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 42.12, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 114.5, "min": 34.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009028 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 42.12, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 114.5, \"min\": 34.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad445_1625", "family": "compound", "tier": 1, "seed": 2468009029, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "ce0c550ca95ed2f7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31900.0, "surface_area": 6380.0, "principal_moments": [3800000.0, 7050000.0, 7440000.0], "n_faces": 10, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 27.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 25.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 5.2, "min": 2.1, "max": 11.4, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 5.9, "min": 1.3, "max": 15.6, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009029 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 27.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 25.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.1, \"max\": 11.4, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 5.9, \"min\": 1.3, \"max\": 15.6, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad447_1627", "family": "bracket", "tier": 2, "seed": 2468009031, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ff178677ba7c3878", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9340.0, "surface_area": 5500.0, "principal_moments": [1430000.0, 1730000.0, 2460000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 30, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 34.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 37.77, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.8, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009031 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 34.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 37.77, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.8, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad448_1628", "family": "compound", "tier": 2, "seed": 2468009032, "symmetry": "none", "op_count": 5, "ir_hash": "7e846cdfefb860cf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 174000.0, "surface_area": 24700.0, "principal_moments": [83500000.0, 91599999.99999999, 117000000.0], "n_faces": 20, "n_edges": 47, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 61.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 44.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 10.3, "min": 4.1, "max": 20.1, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 12.1, "min": 2.6, "max": 30.9, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 5.7, "min": 2.0, "max": 7.4, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009032 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 61.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 44.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 10.3, \"min\": 4.1, \"max\": 20.1, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 12.1, \"min\": 2.6, \"max\": 30.9, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.0, \"max\": 7.4, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad44a_1630", "family": "plate", "tier": 1, "seed": 2468009034, "symmetry": "none", "op_count": 2, "ir_hash": "b0717e33dc02e1e2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2760.0, "surface_area": 2400.0, "principal_moments": [107000.0, 453000.0, 556000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 21.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009034 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 21.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad44b_1631", "family": "compound", "tier": 1, "seed": 2468009035, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "2b9dcb038cb27810", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33000.0, "surface_area": 10200.0, "principal_moments": [8530000.0, 9050000.0, 13899999.999999998], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"base_w": {"type": "float", "default": 52.94, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 51.0, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 12.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 4.8, "min": 2.4, "max": 12.8, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 40.9, "min": 12.3, "max": 122.7, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 3.6, "min": 2.0, "max": 5.6, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 11.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009035 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 52.94, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 51.0, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 12.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 4.8, \"min\": 2.4, \"max\": 12.8, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 40.9, \"min\": 12.3, \"max\": 122.7, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 3.6, \"min\": 2.0, \"max\": 5.6, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 11.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad44c_1632", "family": "plate", "tier": 0, "seed": 2468009036, "symmetry": "radial", "op_count": 1, "ir_hash": "aebf65423940b973", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9900.0, "surface_area": 4970.0, "principal_moments": [596000.0, 4660000.0, 5220000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 75, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 26.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009036 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 75, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 26.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad44d_1633", "family": "block", "tier": 2, "seed": 2468009037, "symmetry": "radial", "op_count": 3, "ir_hash": "6b58909afe38b903", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 273000.0, "surface_area": 35300.0, "principal_moments": [177000000.0, 200000000.0, 274000000.0], "n_faces": 19, "n_edges": 48, "n_vertices": 32}, "params": {"block_w": {"type": "float", "default": 80.36, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 47.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 73.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.1, "min": 16.1, "max": 36.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "boss_d": {"type": "float", "default": 20.6, "min": 10.3, "max": 41.2, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 7.9, "min": 3.2, "max": 19.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 14.4, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009037 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80.36, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 47.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 73.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.1, \"min\": 16.1, \"max\": 36.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"boss_d\": {\"type\": 'float', \"default\": 20.6, \"min\": 10.3, \"max\": 41.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 7.9, \"min\": 3.2, \"max\": 19.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 14.4, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad450_1636", "family": "bracket", "tier": 2, "seed": 2468009040, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "e9be375b2b7a94fd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22000.0, "surface_area": 7510.0, "principal_moments": [3100000.0, 11000000.0, 11899999.999999998], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 64.59, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 46.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 11.4, "min": 4.0, "max": 12.5, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009040 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 64.59, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 46.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 11.4, \"min\": 4.0, \"max\": 12.5, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad451_1637", "family": "block", "tier": 1, "seed": 2468009041, "symmetry": "none", "op_count": 2, "ir_hash": "0673f1553326cb6c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 68300.0, "surface_area": 12300.0, "principal_moments": [13299999.999999998, 26399999.999999996, 27999999.999999996], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 60, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 32.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 36.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009041 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 60, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 32.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 36.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 22.5\n _ssy = 19.0\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad453_1639", "family": "enclosure", "tier": 2, "seed": 2468009043, "symmetry": "none", "op_count": 3, "ir_hash": "cb965e9042464045", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 120000.0, "surface_area": 57600.0, "principal_moments": [141000000.0, 210000000.0, 220000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 98.31, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 66.2, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 73.3, "min": 29.3, "max": 146.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009043 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 98.31, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 66.2, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 73.3, \"min\": 29.3, \"max\": 146.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad454_1640", "family": "plate", "tier": 2, "seed": 2468009044, "symmetry": "none", "op_count": 3, "ir_hash": "968bd332cb06d521", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38400.0, "surface_area": 14900.0, "principal_moments": [19000000.0, 22200000.0, 41000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 83.65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 77.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009044 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 83.65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 77.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08191379390399986)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad455_1641", "family": "bracket", "tier": 1, "seed": 2468009045, "symmetry": "none", "op_count": 1, "ir_hash": "4b6b31165aeffdfa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13200.0, "surface_area": 6630.0, "principal_moments": [2410000.0, 2480000.0, 3330000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 30.04, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 38.76, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009045 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 30.04, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 38.76, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad456_1642", "family": "bracket", "tier": 2, "seed": 2468009046, "symmetry": "none", "op_count": 1, "ir_hash": "99f73f81321ee17f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37200.0, "surface_area": 12000.0, "principal_moments": [9340000.0, 26199999.999999996, 28599999.999999996], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 63.34, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 69.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 34.66, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 8.2, "min": 4.0, "max": 17.3, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009046 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 63.34, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 69.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 34.66, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 8.2, \"min\": 4.0, \"max\": 17.3, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad457_1643", "family": "enclosure", "tier": 2, "seed": 2468009047, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "49ee5baade8350de", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 85300.0, "surface_area": 49900.0, "principal_moments": [96499999.99999999, 117000000.0, 120000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"enc_w": {"type": "float", "default": 79.6, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 61.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 76.1, "min": 30.4, "max": 152.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.5, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009047 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 79.6, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 61.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 76.1, \"min\": 30.4, \"max\": 152.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad458_1644", "family": "threaded", "tier": 0, "seed": 2468009048, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "db052034d8664397", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 257.0, "surface_area": 394.0, "principal_moments": [668.0, 5820.0, 5820.0], "n_faces": 210, "n_edges": 536, "n_vertices": 328}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 16.1, "min": 6.4, "max": 32.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009048 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 16.1, \"min\": 6.4, \"max\": 32.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad45a_1646", "family": "revolved", "tier": 0, "seed": 2468009050, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "8a01e1353ccd499b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 440.0, "surface_area": 496.0, "principal_moments": [5140.0, 5140.0, 6600.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 10.0, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 8.4, "min": 2.5, "max": 25.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009050 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.5, \"max\": 25.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad45b_1647", "family": "revolved", "tier": 1, "seed": 2468009051, "symmetry": "radial", "op_count": 1, "ir_hash": "842db6f2cb501b26", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 365000.0, "surface_area": 53500.0, "principal_moments": [240000000.0, 672000000.0, 672000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 66.14, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 159.5, "min": 47.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009051 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 66.14, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 159.5, \"min\": 47.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad45c_1648", "family": "flanged", "tier": 1, "seed": 2468009052, "symmetry": "radial", "op_count": 2, "ir_hash": "6ee8b9c78c577511", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9550.0, "surface_area": 5770.0, "principal_moments": [1300000.0, 1300000.0, 2170000.0], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 25, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 15.7, "min": 4.7, "max": 39.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 9.8, "min": 2.0, "max": 17.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 51.3, "min": 32.5, "max": 75.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.1, "min": 0.9, "max": 6.3, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 15.4, "min": 10.3, "max": 23.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009052 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 15.7, \"min\": 4.7, \"max\": 39.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 9.8, \"min\": 2.0, \"max\": 17.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 51.3, \"min\": 32.5, \"max\": 75.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.1, \"min\": 0.9, \"max\": 6.3, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 15.4, \"min\": 10.3, \"max\": 23.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad45d_1649", "family": "bracket", "tier": 1, "seed": 2468009053, "symmetry": "none", "op_count": 1, "ir_hash": "8f9a6adcdd99a826", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11600.0, "surface_area": 5090.0, "principal_moments": [1620000.0, 1970000.0, 2750000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 32.59, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 29.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009053 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 32.59, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 29.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad45f_1651", "family": "revolved", "tier": 1, "seed": 2468009055, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "0ccb3d9ce33a7e21", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 687000.0, "surface_area": 75600.0, "principal_moments": [588000000.0, 2560000000.0, 2560000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 198.8, "min": 59.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 35.0, "min": 2.0, "max": 52.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009055 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 198.8, \"min\": 59.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 35.0, \"min\": 2.0, \"max\": 52.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad460_1652", "family": "profiled", "tier": 1, "seed": 2468009056, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "752aac3d2e29c1a0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 138000.0, "surface_area": 27300.0, "principal_moments": [29799999.999999996, 268000000.0, 268000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 38.15, "min": 19.1, "max": 76.3, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 148.4, "min": 44.5, "max": 445.2, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.5, "min": 2.0, "max": 30.5, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009056 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 38.15, \"min\": 19.1, \"max\": 76.3, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 148.4, \"min\": 44.5, \"max\": 445.2, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.5, \"min\": 2.0, \"max\": 30.5, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad462_1654", "family": "gear", "tier": 1, "seed": 2468009058, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "b99b6540eaa38566", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 535000.0, "surface_area": 63900.0, "principal_moments": [733000000.0, 733000000.0, 1340000000.0], "n_faces": 141, "n_edges": 417, "n_vertices": 278}, "params": {"module": {"type": "float", "default": 6.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 23, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 37.8, "min": 15.1, "max": 94.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 27.4, "min": 2.0, "max": 73.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009058 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 6.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 23, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 37.8, \"min\": 15.1, \"max\": 94.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 27.4, \"min\": 2.0, \"max\": 73.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad463_1655", "family": "revolved", "tier": 1, "seed": 2468009059, "symmetry": "radial", "op_count": 2, "ir_hash": "6a218c4fcc5d0c11", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 105000.0, "surface_area": 24700.0, "principal_moments": [25199999.999999996, 110000000.0, 110000000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 40, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 125.4, "min": 37.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009059 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 125.4, \"min\": 37.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 3.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad46e_1666", "family": "plate", "tier": 1, "seed": 2468009070, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "50f64e94e673ddd2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15100.0, "surface_area": 5460.0, "principal_moments": [1690000.0, 2630000.0, 4070000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 45.57, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 36.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 8.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009070 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 45.57, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 36.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 8.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad46f_1667", "family": "block", "tier": 2, "seed": 2468009071, "symmetry": "radial", "op_count": 3, "ir_hash": "a9295e8c78b49fbc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 150000.0, "surface_area": 31600.0, "principal_moments": [75400000.0, 106000000.0, 152000000.0], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"block_w": {"type": "float", "default": 80, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 32.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 70.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.0, "min": 16.0, "max": 36.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "pocket_w": {"type": "float", "default": 33.9, "min": 16.9, "max": 64.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 20.0, "min": 10.0, "max": 26.2, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 35.7, "min": 14.3, "max": 59.6, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009071 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 32.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 70.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.0, \"min\": 16.0, \"max\": 36.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"pocket_w\": {\"type\": 'float', \"default\": 33.9, \"min\": 16.9, \"max\": 64.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 20.0, \"min\": 10.0, \"max\": 26.2, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 35.7, \"min\": 14.3, \"max\": 59.6, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad470_1668", "family": "block", "tier": 2, "seed": 2468009072, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "d1ce384ce3ae7aea", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 186000.0, "surface_area": 28200.0, "principal_moments": [100000000.0, 126000000.0, 198000000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 30.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 84.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 11.5, "min": 5.8, "max": 23.0, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 6.2, "min": 2.5, "max": 15.5, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 8.0, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009072 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 30.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 84.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 11.5, \"min\": 5.8, \"max\": 23.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 6.2, \"min\": 2.5, \"max\": 15.5, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad471_1669", "family": "flanged", "tier": 2, "seed": 2468009073, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "0be0e9b6206875a0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5610.0, "surface_area": 3620.0, "principal_moments": [410000.0, 410000.0, 563000.0], "n_faces": 18, "n_edges": 37, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 20.0, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 15.2, "min": 4.6, "max": 38.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 6.5, "min": 2.0, "max": 14.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 39.0, "min": 26.0, "max": 60.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 1.6, "min": 0.5, "max": 6.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 11.7, "min": 7.8, "max": 17.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009073 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 20.0, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 15.2, \"min\": 4.6, \"max\": 38.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 6.5, \"min\": 2.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 39.0, \"min\": 26.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 1.6, \"min\": 0.5, \"max\": 6.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 11.7, \"min\": 7.8, \"max\": 17.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad479_1677", "family": "threaded", "tier": 2, "seed": 2468009081, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "a4a0c8c6af8477b8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 56100.0, "surface_area": 12600.0, "principal_moments": [8720000.0, 20200000.0, 20200000.0], "n_faces": 100, "n_edges": 250, "n_vertices": 152}, "params": {"thread_size": {"type": "enum", "default": "1 1/2", "choices": ["1/4", "5/16", "3/8", "1/2", "5/8", "3/4", "7/8", "1", "1 1/4", "1 1/2"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 59.1, "min": 23.6, "max": 118.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009081 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '1 1/2', \"choices\": ['1/4', '5/16', '3/8', '1/2', '5/8', '3/4', '7/8', '1', '1 1/4', '1 1/2'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 59.1, \"min\": 23.6, \"max\": 118.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.AcmeThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad47a_1678", "family": "block", "tier": 1, "seed": 2468009082, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "597e04a4e504ab70", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 359000.0, "surface_area": 41500.0, "principal_moments": [287000000.0, 308000000.0, 345000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 65.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 78.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009082 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 65.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 78.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad47d_1681", "family": "threaded", "tier": 1, "seed": 2468009085, "symmetry": "none", "op_count": 1, "ir_hash": "35dd468d159a0c62", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8490.0, "surface_area": 4360.0, "principal_moments": [623000.0, 1000000.0, 1000000.0], "n_faces": 212, "n_edges": 594, "n_vertices": 384}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 31.3, "min": 12.5, "max": 62.6, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009085 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 31.3, \"min\": 12.5, \"max\": 62.6, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad47e_1682", "family": "revolved", "tier": 1, "seed": 2468009086, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "9849153f2bc57fcf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 147000.0, "surface_area": 26300.0, "principal_moments": [64499999.99999999, 132000000.0, 132000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 47.85, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 84.3, "min": 25.3, "max": 252.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 21.3, "min": 2.0, "max": 33.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 70.8, "min": 57.4, "max": 143.6, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 11.7, "min": 3.5, "max": 42.1, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009086 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 47.85, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 84.3, \"min\": 25.3, \"max\": 252.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 21.3, \"min\": 2.0, \"max\": 33.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 70.8, \"min\": 57.4, \"max\": 143.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 11.7, \"min\": 3.5, \"max\": 42.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad480_1684", "family": "enclosure", "tier": 2, "seed": 2468009088, "symmetry": "none", "op_count": 4, "ir_hash": "7f04c12ed031a605", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 69400.0, "surface_area": 34500.0, "principal_moments": [55399999.99999999, 66099999.99999999, 75600000.0], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 70, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 58.9, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 57.5, "min": 23.0, "max": 115.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.1, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009088 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 70, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 58.9, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 57.5, \"min\": 23.0, \"max\": 115.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.1, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.05599410510659531)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad481_1685", "family": "bracket", "tier": 1, "seed": 2468009089, "symmetry": "none", "op_count": 1, "ir_hash": "08229f0aadfd512e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26000.0, "surface_area": 10500.0, "principal_moments": [7280000.0, 11000000.0, 14699999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 38.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009089 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 38.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.10854245986998579)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad483_1687", "family": "flanged", "tier": 1, "seed": 2468009091, "symmetry": "none", "op_count": 2, "ir_hash": "3ba7914520f0a50f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 44800.0, "surface_area": 16100.0, "principal_moments": [15499999.999999998, 15499999.999999998, 25399999.999999996], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 42.24, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 25.7, "min": 7.7, "max": 64.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 18.6, "min": 2.0, "max": 29.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 84.0, "min": 54.9, "max": 126.7, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.9, "min": 1.2, "max": 10.3, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 25.2, "min": 16.8, "max": 37.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009091 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 42.24, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 25.7, \"min\": 7.7, \"max\": 64.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 18.6, \"min\": 2.0, \"max\": 29.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 84.0, \"min\": 54.9, \"max\": 126.7, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.9, \"min\": 1.2, \"max\": 10.3, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 25.2, \"min\": 16.8, \"max\": 37.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad485_1689", "family": "plate", "tier": 1, "seed": 2468009093, "symmetry": "none", "op_count": 2, "ir_hash": "c9647caebfb6dd19", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17100.0, "surface_area": 6330.0, "principal_moments": [2370000.0, 4310000.0, 6490000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 55, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 40.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 9.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009093 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 55, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 40.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 9.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad486_1690", "family": "ribbed", "tier": 1, "seed": 2468009094, "symmetry": "none", "op_count": 2, "ir_hash": "fb91fccfd37534a3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45100.0, "surface_area": 16200.0, "principal_moments": [11999999.999999998, 35300000.0, 45799999.99999999], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 93.24, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 48.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 8.9, "min": 3.6, "max": 17.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.6, "min": 1.0, "max": 11.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009094 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 93.24, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 48.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 8.9, \"min\": 3.6, \"max\": 17.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.6, \"min\": 1.0, \"max\": 11.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad488_1692", "family": "gear", "tier": 1, "seed": 2468009096, "symmetry": "none", "op_count": 1, "ir_hash": "b0d62c8b3d37ffa3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1320.0, "surface_area": 1160.0, "principal_moments": [28600.0, 28600.0, 42400.0], "n_faces": 63, "n_edges": 183, "n_vertices": 122}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 10, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 8.2, "min": 3.3, "max": 20.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 3.0, "min": 2.0, "max": 6.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009096 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 10, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 8.2, \"min\": 3.3, \"max\": 20.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 6.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad489_1693", "family": "enclosure", "tier": 1, "seed": 2468009097, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f88e6c7298a9d167", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20700.0, "surface_area": 9270.0, "principal_moments": [3780000.0, 6390000.0, 8450000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 50, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 35.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 21.3, "min": 8.5, "max": 42.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.9, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009097 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 50, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 35.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 21.3, \"min\": 8.5, \"max\": 42.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.9, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad48a_1694", "family": "revolved", "tier": 0, "seed": 2468009098, "symmetry": "none", "op_count": 1, "ir_hash": "45a001b975975096", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 182000.0, "surface_area": 36300.0, "principal_moments": [61499999.99999999, 284000000.0, 284000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 47.54, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 153.4, "min": 46.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009098 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 47.54, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 153.4, \"min\": 46.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad48c_1696", "family": "compound", "tier": 1, "seed": 2468009100, "symmetry": "none", "op_count": 2, "ir_hash": "02e03a53b9130cc3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8630.0, "surface_area": 3380.0, "principal_moments": [642000.0, 806000.0, 806000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 13.51, "min": 8.1, "max": 21.6, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 14.3, "min": 5.7, "max": 35.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 12.1, "min": 6.0, "max": 20.0, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 17.4, "min": 5.2, "max": 43.5, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 5.5, "min": 2.0, "max": 8.7, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009100 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 13.51, \"min\": 8.1, \"max\": 21.6, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 14.3, \"min\": 5.7, \"max\": 35.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 12.1, \"min\": 6.0, \"max\": 20.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 17.4, \"min\": 5.2, \"max\": 43.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.0, \"max\": 8.7, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad48d_1697", "family": "bracket", "tier": 1, "seed": 2468009101, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "a376c498d322e4ba", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27800.0, "surface_area": 12400.0, "principal_moments": [8110000.0, 58899999.99999999, 64999999.99999999], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 86.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20.84, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 65.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 8.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009101 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 86.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20.84, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 65.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 8.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad48e_1698", "family": "plate", "tier": 0, "seed": 2468009102, "symmetry": "none", "op_count": 1, "ir_hash": "7c89930b6063ffdc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2000.0, "surface_area": 1060.0, "principal_moments": [27300.0, 115000.0, 121000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 25, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 10.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009102 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad48f_1699", "family": "bracket", "tier": 2, "seed": 2468009103, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "973e0cdd5c53ff60", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34500.0, "surface_area": 24400.0, "principal_moments": [11899999.999999998, 81000000.0, 83000000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 53.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50.12, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 89.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 4.2, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009103 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 53.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50.12, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 89.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.2, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad490_1700", "family": "compound", "tier": 2, "seed": 2468009104, "symmetry": "none", "op_count": 4, "ir_hash": "dc9c11c7effc60d0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38100.0, "surface_area": 15800.0, "principal_moments": [18700000.0, 21600000.0, 24399999.999999996], "n_faces": 17, "n_edges": 42, "n_vertices": 28}, "params": {"base_w": {"type": "float", "default": 75, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 66.4, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 6.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 16.9, "min": 6.8, "max": 33.2, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 52.2, "min": 15.7, "max": 156.6, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.2, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009104 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 75, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 66.4, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 16.9, \"min\": 6.8, \"max\": 33.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 52.2, \"min\": 15.7, \"max\": 156.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.2, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_w\"], p[\"base_d\"]) * 0.10607148318169593)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad491_1701", "family": "plate", "tier": 1, "seed": 2468009105, "symmetry": "radial", "op_count": 2, "ir_hash": "64695043a1e19010", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9150.0, "surface_area": 3620.0, "principal_moments": [465000.0, 1950000.0, 2320000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"plate_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 23.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 15.0, "min": 10.0, "max": 22.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009105 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 23.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 15.0, \"min\": 10.0, \"max\": 22.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad492_1702", "family": "revolved", "tier": 0, "seed": 2468009106, "symmetry": "radial", "op_count": 1, "ir_hash": "bd69d8d9d8e3fb80", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 141000.0, "surface_area": 27400.0, "principal_moments": [53599999.99999999, 121000000.0, 121000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 50.37, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 106.1, "min": 31.8, "max": 318.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009106 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50.37, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 106.1, \"min\": 31.8, \"max\": 318.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad493_1703", "family": "flanged", "tier": 2, "seed": 2468009107, "symmetry": "radial", "op_count": 2, "ir_hash": "9d8873fe06e1d3c3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1020000.0, "surface_area": 111000.0, "principal_moments": [2680000000.0, 2680000000.0, 2730000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 99.23, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 113.7, "min": 34.1, "max": 284.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 40.1, "min": 2.0, "max": 69.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 192.2, "min": 129.0, "max": 297.7, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 13.5, "min": 4.0, "max": 45.5, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 57.7, "min": 38.4, "max": 86.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009107 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 99.23, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 113.7, \"min\": 34.1, \"max\": 284.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 40.1, \"min\": 2.0, \"max\": 69.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 192.2, \"min\": 129.0, \"max\": 297.7, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 13.5, \"min\": 4.0, \"max\": 45.5, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 57.7, \"min\": 38.4, \"max\": 86.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad494_1704", "family": "enclosure", "tier": 2, "seed": 2468009108, "symmetry": "none", "op_count": 4, "ir_hash": "1ed85c390f64b0f4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19700.0, "surface_area": 9270.0, "principal_moments": [2900000.0, 5410000.0, 5480000.0], "n_faces": 27, "n_edges": 84, "n_vertices": 56}, "params": {"enc_w": {"type": "float", "default": 45, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 25.3, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 28.7, "min": 11.5, "max": 57.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.5, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009108 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 45, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 25.3, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 28.7, \"min\": 11.5, \"max\": 57.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.5, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.0490776011113046)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad496_1706", "family": "block", "tier": 2, "seed": 2468009110, "symmetry": "none", "op_count": 3, "ir_hash": "257b672a3ba8b0a4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2860.0, "surface_area": 1830.0, "principal_moments": [76400.0, 118000.0, 143000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 15.0, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 10.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 19.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.2, "min": 2.0, "max": 2.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009110 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 15.0, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 10.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 19.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 2.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.05407778375658451)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad497_1707", "family": "compound", "tier": 1, "seed": 2468009111, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "647fd6da5dd1c129", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8940.0, "surface_area": 4090.0, "principal_moments": [707000.0, 1170000.0, 1170000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"base_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 15, "min": 9.0, "max": 24.0, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 14.7, "min": 5.9, "max": 36.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 10.7, "min": 5.3, "max": 19.4, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 27.6, "min": 8.3, "max": 69.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 6.5, "min": 2.0, "max": 7.7, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009111 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 15, \"min\": 9.0, \"max\": 24.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 14.7, \"min\": 5.9, \"max\": 36.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 10.7, \"min\": 5.3, \"max\": 19.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 27.6, \"min\": 8.3, \"max\": 69.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 6.5, \"min\": 2.0, \"max\": 7.7, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad498_1708", "family": "revolved", "tier": 1, "seed": 2468009112, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "e48dff52d7c1385f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1400.0, "surface_area": 863.0, "principal_moments": [33400.0, 33400.0, 33900.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 13.17, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 12.5, "min": 3.8, "max": 37.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 4.8, "min": 2.0, "max": 9.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 1.2, "min": 0.1, "max": 3.6, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009112 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 13.17, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 12.5, \"min\": 3.8, \"max\": 37.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 4.8, \"min\": 2.0, \"max\": 9.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.2, \"min\": 0.1, \"max\": 3.6, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad49a_1710", "family": "revolved", "tier": 2, "seed": 2468009114, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "43bd8d51eeb63c17", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17700.0, "surface_area": 7280.0, "principal_moments": [1380000.0, 5150000.0, 5150000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 22.82, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 65.2, "min": 19.6, "max": 195.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009114 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 22.82, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 65.2, \"min\": 19.6, \"max\": 195.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 3.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad49e_1714", "family": "flanged", "tier": 1, "seed": 2468009118, "symmetry": "radial", "op_count": 2, "ir_hash": "d04f8526f8c06b29", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 208000.0, "surface_area": 48100.0, "principal_moments": [233000000.0, 233000000.0, 410000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 75, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 38.1, "min": 11.4, "max": 95.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 39.4, "min": 2.0, "max": 52.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 149.3, "min": 97.5, "max": 225.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.6, "min": 2.0, "max": 15.2, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 44.8, "min": 29.9, "max": 67.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009118 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 38.1, \"min\": 11.4, \"max\": 95.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 39.4, \"min\": 2.0, \"max\": 52.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 149.3, \"min\": 97.5, \"max\": 225.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.6, \"min\": 2.0, \"max\": 15.2, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 44.8, \"min\": 29.9, \"max\": 67.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad4a1_1717", "family": "block", "tier": 1, "seed": 2468009121, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "a83dcbc1c19b32f3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 407000.0, "surface_area": 44000.0, "principal_moments": [311000000.0, 432000000.0, 557000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 80, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 52.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009121 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 52.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 20.0\n _ssy = 23.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad4a2_1718", "family": "bracket", "tier": 1, "seed": 2468009122, "symmetry": "none", "op_count": 1, "ir_hash": "c14a341b9f9b748f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15100.0, "surface_area": 5170.0, "principal_moments": [1530000.0, 2930000.0, 3700000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"base_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009122 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.09979031679621184)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad4a4_1720", "family": "revolved", "tier": 0, "seed": 2468009124, "symmetry": "none", "op_count": 1, "ir_hash": "86bf6115c74906ca", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 312000.0, "surface_area": 54200.0, "principal_moments": [138000000.0, 825000000.0, 825000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 54.32, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 202.0, "min": 60.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009124 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 54.32, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 202.0, \"min\": 60.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad4a5_1721", "family": "profiled", "tier": 2, "seed": 2468009125, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "9b21355d158f7e75", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 104000.0, "surface_area": 18700.0, "principal_moments": [12899999.999999998, 298000000.0, 307000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 38.34, "min": 19.2, "max": 76.7, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 16.17, "min": 8.1, "max": 32.3, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 184.7, "min": 55.4, "max": 554.1, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009125 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 38.34, \"min\": 19.2, \"max\": 76.7, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 16.17, \"min\": 8.1, \"max\": 32.3, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 184.7, \"min\": 55.4, \"max\": 554.1, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad4a6_1722", "family": "ribbed", "tier": 1, "seed": 2468009126, "symmetry": "none", "op_count": 2, "ir_hash": "c322ae1cfe48bbbe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29500.0, "surface_area": 24200.0, "principal_moments": [11899999.999999998, 16699999.999999998, 26099999.999999996], "n_faces": 31, "n_edges": 72, "n_vertices": 48}, "params": {"base_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 67.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 19.0, "min": 7.6, "max": 38.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.2, "min": 1.0, "max": 5.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009126 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 67.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 19.0, \"min\": 7.6, \"max\": 38.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.2, \"min\": 1.0, \"max\": 5.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad4a7_1723", "family": "bracket", "tier": 1, "seed": 2468009127, "symmetry": "none", "op_count": 1, "ir_hash": "3ea52a63f1ca1179", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33100.0, "surface_area": 18300.0, "principal_moments": [15299999.999999998, 39800000.0, 41800000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 88.83, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 64.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55.84, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009127 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 88.83, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 64.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55.84, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad4ac_1728", "family": "revolved", "tier": 2, "seed": 2468009132, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "fe1f3ecc0e62f970", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 218000.0, "surface_area": 34000.0, "principal_moments": [132000000.0, 204000000.0, 204000000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 63.52, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 103.4, "min": 31.0, "max": 310.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.4, "min": 0.1, "max": 4.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009132 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 63.52, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 103.4, \"min\": 31.0, \"max\": 310.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.4, \"min\": 0.1, \"max\": 4.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad4af_1731", "family": "compound", "tier": 1, "seed": 2468009135, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "ff5122e536b6d7a3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 417000.0, "surface_area": 43400.0, "principal_moments": [382000000.0, 382000000.0, 468000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 80.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 81.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 49.9, "min": 20.0, "max": 79.8, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 47.4, "min": 19.0, "max": 75.8, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 10.4, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009135 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 80.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 81.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 49.9, \"min\": 20.0, \"max\": 79.8, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 47.4, \"min\": 19.0, \"max\": 75.8, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 10.4, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad4b1_1733", "family": "bracket", "tier": 2, "seed": 2468009137, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "71f2b07a913ec669", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11000.0, "surface_area": 4840.0, "principal_moments": [1190000.0, 4110000.0, 4930000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 50, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 56.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 15.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 6.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 9.0, "min": 3.0, "max": 7.5, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009137 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 50, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 56.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 15.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 6.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 9.0, \"min\": 3.0, \"max\": 7.5, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad4b3_1735", "family": "flanged", "tier": 1, "seed": 2468009139, "symmetry": "none", "op_count": 2, "ir_hash": "41cb2ce746eb2623", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19700.0, "surface_area": 9290.0, "principal_moments": [4650000.0, 4650000.0, 8450000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 29.18, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 17.3, "min": 5.2, "max": 43.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 15.2, "min": 2.0, "max": 20.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 64.5, "min": 37.9, "max": 87.5, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.7, "min": 1.4, "max": 6.9, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 19.3, "min": 12.9, "max": 29.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009139 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 29.18, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 17.3, \"min\": 5.2, \"max\": 43.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 15.2, \"min\": 2.0, \"max\": 20.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 64.5, \"min\": 37.9, \"max\": 87.5, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.7, \"min\": 1.4, \"max\": 6.9, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 19.3, \"min\": 12.9, \"max\": 29.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad4b4_1736", "family": "plate", "tier": 1, "seed": 2468009140, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "2435a60d5fe44489", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3820.0, "surface_area": 2030.0, "principal_moments": [109000.0, 298000.0, 366000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 30, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 17.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009140 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 17.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad4b5_1737", "family": "flanged", "tier": 2, "seed": 2468009141, "symmetry": "none", "op_count": 2, "ir_hash": "baba8095c8d6e4d9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 360000.0, "surface_area": 54300.0, "principal_moments": [363000000.0, 475000000.0, 475000000.0], "n_faces": 17, "n_edges": 60, "n_vertices": 40}, "params": {"outer_d": {"type": "float", "default": 72.97, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 91.6, "min": 27.5, "max": 229.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 30.2, "min": 2.0, "max": 51.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 121.9, "min": 94.9, "max": 218.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.5, "min": 1.9, "max": 36.6, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 36.6, "min": 24.4, "max": 54.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009141 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 72.97, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 91.6, \"min\": 27.5, \"max\": 229.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 30.2, \"min\": 2.0, \"max\": 51.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 121.9, \"min\": 94.9, \"max\": 218.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.5, \"min\": 1.9, \"max\": 36.6, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 36.6, \"min\": 24.4, \"max\": 54.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad4b6_1738", "family": "block", "tier": 1, "seed": 2468009142, "symmetry": "none", "op_count": 2, "ir_hash": "956411bbc2d39b2d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 180000.0, "surface_area": 26900.0, "principal_moments": [80900000.0, 107000000.0, 118000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 56.45, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 48.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 69.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 14.3, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009142 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 56.45, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 48.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 69.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 14.3, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad4b7_1739", "family": "plate", "tier": 0, "seed": 2468009143, "symmetry": "radial", "op_count": 1, "ir_hash": "566cd72316a11a6d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5820.0, "surface_area": 2770.0, "principal_moments": [200000.0, 1230000.0, 1400000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 19.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009143 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 19.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad4b8_1740", "family": "plate", "tier": 1, "seed": 2468009144, "symmetry": "radial", "op_count": 2, "ir_hash": "1f6d3595698376aa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 635.0, "surface_area": 775.0, "principal_moments": [9790.0, 32200.0, 41000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"plate_w": {"type": "float", "default": 23.79, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 12.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 7.1, "min": 4.8, "max": 10.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009144 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 23.79, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 12.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 7.1, \"min\": 4.8, \"max\": 10.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad4b9_1741", "family": "bracket", "tier": 1, "seed": 2468009145, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "ca7c1032d1662674", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26100.0, "surface_area": 14500.0, "principal_moments": [11200000.0, 16299999.999999998, 20900000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 57.21, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 56.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 60.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009145 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 57.21, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 56.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 60.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad4bc_1744", "family": "ribbed", "tier": 1, "seed": 2468009148, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "be0644dc83e126ea", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 46000.0, "surface_area": 20300.0, "principal_moments": [19800000.0, 30599999.999999996, 47999999.99999999], "n_faces": 21, "n_edges": 48, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 70.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 15.1, "min": 6.0, "max": 30.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.3, "min": 1.0, "max": 8.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009148 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 70.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 15.1, \"min\": 6.0, \"max\": 30.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.3, \"min\": 1.0, \"max\": 8.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad4be_1746", "family": "block", "tier": 1, "seed": 2468009150, "symmetry": "radial", "op_count": 2, "ir_hash": "8a8ebfc41122969c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 335000.0, "surface_area": 52700.0, "principal_moments": [228000000.0, 362000000.0, 424000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 54.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 21.0, "min": 14.0, "max": 31.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009150 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 54.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 21.0, \"min\": 14.0, \"max\": 31.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad4bf_1747", "family": "block", "tier": 1, "seed": 2468009151, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "c3584a572c20c462", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 466000.0, "surface_area": 44500.0, "principal_moments": [418000000.0, 495000000.0, 699000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 89.86, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 52.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 11.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009151 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 89.86, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 52.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 11.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad4c0_1748", "family": "block", "tier": 2, "seed": 2468009152, "symmetry": "none", "op_count": 3, "ir_hash": "f6b75541d113d06b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5880.0, "surface_area": 3190.0, "principal_moments": [239000.0, 605000.0, 768000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 20.65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 9.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 34.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009152 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 20.65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 9.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 34.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.056714391471480524)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad4c1_1749", "family": "flanged", "tier": 1, "seed": 2468009153, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f14edf07d422d7cb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 571000.0, "surface_area": 85100.0, "principal_moments": [921000000.0, 1200000000.0, 1200000000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"outer_d": {"type": "float", "default": 81.58, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 113.3, "min": 34.0, "max": 283.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 37.9, "min": 2.0, "max": 57.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 164.5, "min": 106.1, "max": 244.7, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.7, "min": 2.0, "max": 45.3, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 49.4, "min": 32.9, "max": 74.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009153 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 81.58, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 113.3, \"min\": 34.0, \"max\": 283.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 37.9, \"min\": 2.0, \"max\": 57.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 164.5, \"min\": 106.1, \"max\": 244.7, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.7, \"min\": 2.0, \"max\": 45.3, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 49.4, \"min\": 32.9, \"max\": 74.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad4c2_1750", "family": "gear", "tier": 2, "seed": 2468009154, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "d78842dc6fed1f09", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15900.0, "surface_area": 5700.0, "principal_moments": [2220000.0, 2220000.0, 4140000.0], "n_faces": 88, "n_edges": 258, "n_vertices": 172}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 17, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 10.7, "min": 4.3, "max": 26.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": 0.33, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.67, "min": 0.0, "max": 1.25, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 8.3, "min": 2.0, "max": 21.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009154 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 17, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 10.7, \"min\": 4.3, \"max\": 26.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.33, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.67, \"min\": 0.0, \"max\": 1.25, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 8.3, \"min\": 2.0, \"max\": 21.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad4c3_1751", "family": "bracket", "tier": 1, "seed": 2468009155, "symmetry": "none", "op_count": 1, "ir_hash": "61e3789c30f4c94d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 45700.0, "surface_area": 18500.0, "principal_moments": [33099999.999999996, 38000000.0, 60399999.99999999], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 65.18, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 76.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 37.33, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009155 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 65.18, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 76.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 37.33, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad4c4_1752", "family": "compound", "tier": 2, "seed": 2468009156, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "1eae09c055f880fc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35400.0, "surface_area": 15200.0, "principal_moments": [19000000.0, 21600000.0, 22100000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_w": {"type": "float", "default": 65, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 66.7, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 6.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 15.7, "min": 6.3, "max": 32.5, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 64.7, "min": 19.4, "max": 194.1, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 7.3, "min": 2.0, "max": 11.3, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009156 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 65, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 66.7, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 15.7, \"min\": 6.3, \"max\": 32.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 64.7, \"min\": 19.4, \"max\": 194.1, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 7.3, \"min\": 2.0, \"max\": 11.3, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad4c5_1753", "family": "plate", "tier": 2, "seed": 2468009157, "symmetry": "none", "op_count": 3, "ir_hash": "7f11eaaccd1c4bb5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6340.0, "surface_area": 2950.0, "principal_moments": [196000.0, 885000.0, 976000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"plate_w": {"type": "float", "default": 40, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 16.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009157 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 16.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(16.0, 6.6, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07254639601790444)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad4c6_1754", "family": "revolved", "tier": 0, "seed": 2468009158, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "dcd7caf952f85edd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2410.0, "surface_area": 1800.0, "principal_moments": [62300.0, 133000.0, 133000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 13.13, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 26.7, "min": 8.0, "max": 80.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009158 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 13.13, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 26.7, \"min\": 8.0, \"max\": 80.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad4c7_1755", "family": "flanged", "tier": 1, "seed": 2468009159, "symmetry": "none", "op_count": 2, "ir_hash": "f5c34feeb5be5f4d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9060.0, "surface_area": 4790.0, "principal_moments": [987000.0, 987000.0, 1220000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 20.0, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 20.8, "min": 6.2, "max": 52.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 6.6, "min": 2.0, "max": 14.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 42.3, "min": 26.0, "max": 60.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.1, "min": 0.9, "max": 8.3, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 12.7, "min": 8.5, "max": 19.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009159 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 20.0, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 20.8, \"min\": 6.2, \"max\": 52.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 6.6, \"min\": 2.0, \"max\": 14.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 42.3, \"min\": 26.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.1, \"min\": 0.9, \"max\": 8.3, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 12.7, \"min\": 8.5, \"max\": 19.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad4c8_1756", "family": "compound", "tier": 1, "seed": 2468009160, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "519a5fe8d70ce4bf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 282000.0, "surface_area": 29900.0, "principal_moments": [185000000.0, 216000000.0, 219000000.0], "n_faces": 13, "n_edges": 26, "n_vertices": 17}, "params": {"block_w": {"type": "float", "default": 69.72, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 62.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 63.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 18.4, "min": 7.4, "max": 28.2, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 16.5, "min": 4.6, "max": 55.2, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 7.9, "min": 2.0, "max": 13.2, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009160 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 69.72, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 62.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 63.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 18.4, \"min\": 7.4, \"max\": 28.2, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 16.5, \"min\": 4.6, \"max\": 55.2, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 7.9, \"min\": 2.0, \"max\": 13.2, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad4c9_1757", "family": "revolved", "tier": 0, "seed": 2468009161, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "a187d3f7097ec16d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23500.0, "surface_area": 8860.0, "principal_moments": [2300000.0, 7820000.0, 7820000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 25.51, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 69.1, "min": 20.7, "max": 207.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009161 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25.51, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 69.1, \"min\": 20.7, \"max\": 207.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad4ca_1758", "family": "ribbed", "tier": 2, "seed": 2468009162, "symmetry": "none", "op_count": 2, "ir_hash": "3e994390953763cf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14100.0, "surface_area": 7090.0, "principal_moments": [1740000.0, 3760000.0, 4790000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 50.09, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 26.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 12.0, "min": 4.8, "max": 24.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.2, "min": 1.0, "max": 13.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009162 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 50.09, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 26.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.8, \"max\": 24.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.2, \"min\": 1.0, \"max\": 13.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad4cb_1759", "family": "plate", "tier": 2, "seed": 2468009163, "symmetry": "none", "op_count": 3, "ir_hash": "ccc41ca1b1fe9c9c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9710.0, "surface_area": 4270.0, "principal_moments": [692000.0, 1240000.0, 1770000.0], "n_faces": 26, "n_edges": 72, "n_vertices": 48}, "params": {"plate_w": {"type": "float", "default": 40, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 29.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 6.5, "step": 0.5, "group": "Holes", "label": "Slot width (mm)"}, "hole_slot_len": {"type": "float", "default": 8.7, "min": 9.6, "max": 8.7, "step": 0.5, "group": "Holes", "label": "Slot length (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009163 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 29.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 6.5, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot width (mm)'},\n \"hole_slot_len\": {\"type\": 'float', \"default\": 8.7, \"min\": 9.6, \"max\": 8.7, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot length (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08478709549624136)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad4cc_1760", "family": "block", "tier": 1, "seed": 2468009164, "symmetry": "none", "op_count": 2, "ir_hash": "c15674caec2523d2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 65300.0, "surface_area": 13700.0, "principal_moments": [11799999.999999998, 26199999.999999996, 27299999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 31.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 61.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 7.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009164 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 31.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 61.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 7.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad4cd_1761", "family": "flanged", "tier": 2, "seed": 2468009165, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "f3a168aa127aed24", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 690000.0, "surface_area": 94500.0, "principal_moments": [1530000000.0, 1530000000.0, 1530000000.0], "n_faces": 22, "n_edges": 47, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 90, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 104.4, "min": 31.3, "max": 261.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 42.9, "min": 2.0, "max": 63.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 179.9, "min": 117.0, "max": 270.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.3, "min": 2.8, "max": 41.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 54.0, "min": 36.0, "max": 81.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 2.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009165 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 104.4, \"min\": 31.3, \"max\": 261.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 42.9, \"min\": 2.0, \"max\": 63.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 179.9, \"min\": 117.0, \"max\": 270.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.3, \"min\": 2.8, \"max\": 41.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 54.0, \"min\": 36.0, \"max\": 81.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 2.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = result.edges('>Z or Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad4cf_1763", "family": "enclosure", "tier": 1, "seed": 2468009167, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "6b0256b0e28101a9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 108000.0, "surface_area": 46500.0, "principal_moments": [107000000.0, 147000000.0, 154000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 85, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 61.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 67.8, "min": 27.1, "max": 135.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.8, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009167 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 85, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 61.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 67.8, \"min\": 27.1, \"max\": 135.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.8, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad4d0_1764", "family": "gear", "tier": 0, "seed": 2468009168, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "8d3efd4894624d2a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4780.0, "surface_area": 2520.0, "principal_moments": [223000.0, 223000.0, 310000.0], "n_faces": 68, "n_edges": 198, "n_vertices": 132}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 11, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 13.1, "min": 5.2, "max": 32.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009168 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 11, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 13.1, \"min\": 5.2, \"max\": 32.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad4d1_1765", "family": "bracket", "tier": 1, "seed": 2468009169, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "3f2d09604707259f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10400.0, "surface_area": 5790.0, "principal_moments": [1690000.0, 10000000.0, 11300000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 54.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 15.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 6.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009169 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 54.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 15.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 6.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad4d6_1770", "family": "revolved", "tier": 2, "seed": 2468009174, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "777a7765b7f61be2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 168000.0, "surface_area": 30500.0, "principal_moments": [71100000.0, 278000000.0, 278000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 37.87, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 120.0, "min": 36.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 13.3, "min": 2.0, "max": 26.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 79.2, "min": 45.4, "max": 113.6, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 12.9, "min": 3.9, "max": 60.0, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009174 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 37.87, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 120.0, \"min\": 36.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 13.3, \"min\": 2.0, \"max\": 26.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 79.2, \"min\": 45.4, \"max\": 113.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 12.9, \"min\": 3.9, \"max\": 60.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad4d7_1771", "family": "profiled", "tier": 1, "seed": 2468009175, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "f3bed49d6f7c05eb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 146000.0, "surface_area": 19700.0, "principal_moments": [23499999.999999996, 277000000.0, 277000000.0], "n_faces": 7, "n_edges": 15, "n_vertices": 10}, "params": {"circ_r": {"type": "float", "default": 20.42, "min": 10.2, "max": 40.8, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 147.5, "min": 44.2, "max": 442.5, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009175 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 20.42, \"min\": 10.2, \"max\": 40.8, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 147.5, \"min\": 44.2, \"max\": 442.5, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad4d8_1772", "family": "threaded", "tier": 1, "seed": 2468009176, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "1b09b86a4ff66653", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 957.0, "surface_area": 983.0, "principal_moments": [17500.0, 24200.0, 24200.0], "n_faces": 116, "n_edges": 314, "n_vertices": 200}, "params": {"major_d": {"type": "float", "default": 6.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.0, "min": 0.5, "max": 2.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 14.0, "min": 5.6, "max": 28.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009176 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.5, \"max\": 2.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 14.0, \"min\": 5.6, \"max\": 28.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad4d9_1773", "family": "compound", "tier": 1, "seed": 2468009177, "symmetry": "none", "op_count": 2, "ir_hash": "38a738c96a489cb1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15700.0, "surface_area": 4460.0, "principal_moments": [1880000.0, 1880000.0, 2050000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"base_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 20, "min": 12.0, "max": 32.0, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 8.2, "min": 3.3, "max": 20.5, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 21.6, "min": 10.8, "max": 29.6, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 17.6, "min": 5.3, "max": 44.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009177 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 20, \"min\": 12.0, \"max\": 32.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 8.2, \"min\": 3.3, \"max\": 20.5, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 21.6, \"min\": 10.8, \"max\": 29.6, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 17.6, \"min\": 5.3, \"max\": 44.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad4db_1775", "family": "flanged", "tier": 1, "seed": 2468009179, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "9614dee8d293ac85", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 421000.0, "surface_area": 53900.0, "principal_moments": [460000000.0, 574000000.0, 574000000.0], "n_faces": 17, "n_edges": 60, "n_vertices": 40}, "params": {"outer_d": {"type": "float", "default": 72.82, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 91.2, "min": 27.4, "max": 228.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 22.9, "min": 2.0, "max": 51.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 125.9, "min": 94.7, "max": 218.5, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.7, "min": 2.9, "max": 36.5, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 37.8, "min": 25.2, "max": 56.7, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009179 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 72.82, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 91.2, \"min\": 27.4, \"max\": 228.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 22.9, \"min\": 2.0, \"max\": 51.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 125.9, \"min\": 94.7, \"max\": 218.5, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.7, \"min\": 2.9, \"max\": 36.5, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 37.8, \"min\": 25.2, \"max\": 56.7, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad4dc_1776", "family": "bracket", "tier": 2, "seed": 2468009180, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "2ea1a05c324787ed", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13900.0, "surface_area": 8150.0, "principal_moments": [2790000.0, 3600000.0, 3980000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 27.62, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 29.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009180 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 27.62, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 29.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad4dd_1777", "family": "block", "tier": 2, "seed": 2468009181, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "58f178795d34036d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 56500.0, "surface_area": 14000.0, "principal_moments": [12099999.999999998, 22100000.0, 30799999.999999996], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 47.82, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 19.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 65.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009181 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 47.82, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 19.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 65.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.05176079899176297)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad4df_1779", "family": "plate", "tier": 0, "seed": 2468009183, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "465c5fcd0311f773", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14500.0, "surface_area": 8230.0, "principal_moments": [3030000.0, 6390000.0, 9380000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 72.62, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 49.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009183 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 72.62, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 49.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad4e0_1780", "family": "threaded", "tier": 0, "seed": 2468009184, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "90aad1f4ba0172e5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 248.0, "surface_area": 380.0, "principal_moments": [643.0, 5210.0, 5210.0], "n_faces": 200, "n_edges": 510, "n_vertices": 312}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 15.5, "min": 6.2, "max": 31.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009184 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 15.5, \"min\": 6.2, \"max\": 31.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad4e1_1781", "family": "bracket", "tier": 1, "seed": 2468009185, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "6c8c48028edf3716", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9100.0, "surface_area": 7390.0, "principal_moments": [3030000.0, 7850000.0, 10400000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 53.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 18.29, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 7.3, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009185 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 53.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 18.29, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 7.3, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad4e2_1782", "family": "revolved", "tier": 1, "seed": 2468009186, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "bd01913572046c8d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 216000.0, "surface_area": 28900.0, "principal_moments": [75900000.0, 304000000.0, 304000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 50.37, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 121.7, "min": 36.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.6, "min": 2.0, "max": 35.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009186 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50.37, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 121.7, \"min\": 36.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.6, \"min\": 2.0, \"max\": 35.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 3.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rarray(20.0, 13.0, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.05105359317626983)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad4e4_1784", "family": "plate", "tier": 2, "seed": 2468009188, "symmetry": "radial", "op_count": 3, "ir_hash": "f87f291f61e59d4c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3520.0, "surface_area": 2490.0, "principal_moments": [182000.0, 424000.0, 597000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 37.49, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 24.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 11.2, "min": 7.5, "max": 16.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009188 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 37.49, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 24.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 11.2, \"min\": 7.5, \"max\": 16.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07127726446814267)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad4e5_1785", "family": "block", "tier": 2, "seed": 2468009189, "symmetry": "none", "op_count": 3, "ir_hash": "c9d4353bdade250a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10900.0, "surface_area": 7190.0, "principal_moments": [707000.0, 2700000.0, 3070000.0], "n_faces": 32, "n_edges": 90, "n_vertices": 56}, "params": {"block_w": {"type": "float", "default": 23.61, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 12.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 42.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.4, "min": 2.0, "max": 3.5, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "boss_d": {"type": "float", "default": 17.9, "min": 8.9, "max": 35.8, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 10.8, "min": 4.3, "max": 27.0, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 12.5, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009189 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 23.61, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 12.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 42.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 3.5, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 17.9, \"min\": 8.9, \"max\": 35.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 10.8, \"min\": 4.3, \"max\": 27.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 12.5, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad4e8_1788", "family": "bracket", "tier": 1, "seed": 2468009192, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "e00c303440b04008", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19800.0, "surface_area": 11400.0, "principal_moments": [6110000.0, 18900000.0, 20900000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 68.03, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 77.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009192 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 68.03, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 77.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad4eb_1791", "family": "bracket", "tier": 1, "seed": 2468009195, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "78a7864e6cbd873e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4660.0, "surface_area": 3780.0, "principal_moments": [397000.0, 1540000.0, 1620000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 49.85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 32.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009195 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 49.85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 32.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad4ef_1795", "family": "revolved", "tier": 1, "seed": 2468009199, "symmetry": "none", "op_count": 1, "ir_hash": "4f0abdf050f226b4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22900.0, "surface_area": 8530.0, "principal_moments": [2320000.0, 6910000.0, 6910000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 25.96, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 65.0, "min": 19.5, "max": 195.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009199 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25.96, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 65.0, \"min\": 19.5, \"max\": 195.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad4f0_1796", "family": "bracket", "tier": 2, "seed": 2468009200, "symmetry": "none", "op_count": 1, "ir_hash": "06acb77cc6d779b6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34300.0, "surface_area": 24400.0, "principal_moments": [13299999.999999998, 61199999.99999999, 66999999.99999999], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 75.11, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 47.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 58.4, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 75.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 3.0, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009200 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 75.11, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 47.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 58.4, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 75.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad4f1_1797", "family": "gear", "tier": 1, "seed": 2468009201, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "7df3c37786382477", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 251.0, "surface_area": 400.0, "principal_moments": [2160.0, 2160.0, 3750.0], "n_faces": 63, "n_edges": 183, "n_vertices": 122}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 10, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 3.7, "min": 1.5, "max": 9.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 3.0, "min": 2.0, "max": 4.5, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009201 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 10, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 3.7, \"min\": 1.5, \"max\": 9.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 4.5, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad4f2_1798", "family": "threaded", "tier": 1, "seed": 2468009202, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "82ebc983453ad2e3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2050.0, "surface_area": 1560.0, "principal_moments": [21600.0, 181000.0, 181000.0], "n_faces": 220, "n_edges": 562, "n_vertices": 344}, "params": {"major_d": {"type": "float", "default": 10.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.5, "min": 0.75, "max": 3.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 31.7, "min": 12.7, "max": 63.4, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009202 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.75, \"max\": 3.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 31.7, \"min\": 12.7, \"max\": 63.4, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad4f3_1799", "family": "ribbed", "tier": 1, "seed": 2468009203, "symmetry": "none", "op_count": 2, "ir_hash": "8671584ae3211361", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12400.0, "surface_area": 7850.0, "principal_moments": [1550000.0, 3170000.0, 4540000.0], "n_faces": 54, "n_edges": 132, "n_vertices": 80}, "params": {"base_w": {"type": "float", "default": 55.83, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 30.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 6, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 5.3, "min": 2.1, "max": 10.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.0, "min": 1.0, "max": 10.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009203 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 55.83, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 30.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 6, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.1, \"max\": 10.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.0, \"max\": 10.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad4f5_1801", "family": "plate", "tier": 1, "seed": 2468009205, "symmetry": "none", "op_count": 2, "ir_hash": "d3804a184db0182c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26300.0, "surface_area": 7480.0, "principal_moments": [4730000.0, 5980000.0, 10100000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"plate_w": {"type": "float", "default": 50.72, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 44.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009205 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50.72, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 44.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 19.0\n _ssy = 19.7\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad4f6_1802", "family": "compound", "tier": 1, "seed": 2468009206, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "820f2df30ac4bb82", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 279000.0, "surface_area": 41700.0, "principal_moments": [438000000.0, 569000000.0, 594000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"base_w": {"type": "float", "default": 110, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 104.0, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 20.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 21.4, "min": 8.6, "max": 52.0, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 141.3, "min": 42.4, "max": 423.9, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009206 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 110, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 104.0, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 20.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 21.4, \"min\": 8.6, \"max\": 52.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 141.3, \"min\": 42.4, \"max\": 423.9, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad4f7_1803", "family": "plate", "tier": 1, "seed": 2468009207, "symmetry": "none", "op_count": 2, "ir_hash": "626f04370b35b723", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13400.0, "surface_area": 5090.0, "principal_moments": [1730000.0, 1760000.0, 3270000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"plate_w": {"type": "float", "default": 38.12, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 37.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009207 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 38.12, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 37.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 7.1\n _ssy = 6.6\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad4f8_1804", "family": "bracket", "tier": 2, "seed": 2468009208, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "b5f3fab24eb9bb57", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20000.0, "surface_area": 9510.0, "principal_moments": [4120000.0, 6140000.0, 6750000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 28.95, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 30.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50.99, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.0, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009208 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 28.95, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 30.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50.99, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad4f9_1805", "family": "gear", "tier": 0, "seed": 2468009209, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "33111a0beadf1ce9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 383000.0, "surface_area": 57400.0, "principal_moments": [601000000.0, 601000000.0, 1180000000.0], "n_faces": 158, "n_edges": 468, "n_vertices": 312}, "params": {"module": {"type": "float", "default": 6.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 26, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 20.3, "min": 8.1, "max": 50.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009209 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 6.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 26, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 20.3, \"min\": 8.1, \"max\": 50.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad4fa_1806", "family": "block", "tier": 1, "seed": 2468009210, "symmetry": "radial", "op_count": 2, "ir_hash": "5dd2e4e1d2806ec7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 127000.0, "surface_area": 19300.0, "principal_moments": [42700000.0, 72100000.0, 93799999.99999999], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 31.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 76.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 16.5, "min": 11.0, "max": 24.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009210 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 31.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 76.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 16.5, \"min\": 11.0, \"max\": 24.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad4fb_1807", "family": "block", "tier": 1, "seed": 2468009211, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "25b1c10cb305f3e4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13300.0, "surface_area": 6280.0, "principal_moments": [805000.0, 2100000.0, 2270000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 21.99, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 17.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 40.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 5.2, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009211 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 21.99, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 17.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 40.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 5.2, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad4fc_1808", "family": "revolved", "tier": 1, "seed": 2468009212, "symmetry": "none", "op_count": 2, "ir_hash": "e0401f1ebbb20749", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7000.0, "surface_area": 3310.0, "principal_moments": [491000.0, 576000.0, 576000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 15.69, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 31.1, "min": 9.3, "max": 93.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 26.0, "min": 18.8, "max": 47.1, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 9.1, "min": 2.7, "max": 15.6, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.3, "min": 0.1, "max": 3.9, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009212 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 15.69, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 31.1, \"min\": 9.3, \"max\": 93.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 26.0, \"min\": 18.8, \"max\": 47.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 9.1, \"min\": 2.7, \"max\": 15.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.3, \"min\": 0.1, \"max\": 3.9, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad500_1812", "family": "block", "tier": 2, "seed": 2468009216, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "9592e65dc83e4e9a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11200.0, "surface_area": 4080.0, "principal_moments": [937000.0, 990000.0, 1480000.0], "n_faces": 18, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 31.0, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 15.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 19.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.8, "min": 2.0, "max": 1.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "boss_d": {"type": "float", "default": 14.9, "min": 7.5, "max": 29.8, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 11.9, "min": 4.8, "max": 29.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009216 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 31.0, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 15.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 19.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.8, \"min\": 2.0, \"max\": 1.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"boss_d\": {\"type\": 'float', \"default\": 14.9, \"min\": 7.5, \"max\": 29.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 11.9, \"min\": 4.8, \"max\": 29.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 7.8\n _ssy = 7.1\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad501_1813", "family": "revolved", "tier": 2, "seed": 2468009217, "symmetry": "radial", "op_count": 1, "ir_hash": "5402573db5c7c455", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 607.0, "surface_area": 1100.0, "principal_moments": [17800.0, 17800.0, 34500.0], "n_faces": 10, "n_edges": 15, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 12.68, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 3.4, "min": 1.0, "max": 10.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 8.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 23.9, "min": 15.2, "max": 38.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 0.9, "min": 0.3, "max": 1.7, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "groove_depth": {"type": "float", "default": 0.42, "min": 0.17, "max": 1.26, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 0.18, "min": 0.07, "max": 0.54, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 2.3, "min": 0.5, "max": 2.9, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009217 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 12.68, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 3.4, \"min\": 1.0, \"max\": 10.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 8.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 23.9, \"min\": 15.2, \"max\": 38.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.3, \"max\": 1.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 0.42, \"min\": 0.17, \"max\": 1.26, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 0.18, \"min\": 0.07, \"max\": 0.54, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 2.3, \"min\": 0.5, \"max\": 2.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad502_1814", "family": "block", "tier": 1, "seed": 2468009218, "symmetry": "radial", "op_count": 2, "ir_hash": "5c37477f88b6173c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 225000.0, "surface_area": 27900.0, "principal_moments": [108000000.0, 177000000.0, 207000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 85, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 60.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 45.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 25.5, "min": 17.0, "max": 38.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009218 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 85, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 60.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 45.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 25.5, \"min\": 17.0, \"max\": 38.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad504_1816", "family": "ribbed", "tier": 1, "seed": 2468009220, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "17e199e383040824", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33100.0, "surface_area": 16600.0, "principal_moments": [7850000.0, 11999999.999999998, 16800000.0], "n_faces": 46, "n_edges": 112, "n_vertices": 68}, "params": {"base_w": {"type": "float", "default": 62.38, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 43.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 18.3, "min": 7.3, "max": 36.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.9, "min": 1.0, "max": 12.2, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009220 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 62.38, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 43.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 18.3, \"min\": 7.3, \"max\": 36.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.9, \"min\": 1.0, \"max\": 12.2, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad505_1817", "family": "block", "tier": 1, "seed": 2468009221, "symmetry": "none", "op_count": 2, "ir_hash": "84bd6646627e182d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 469000.0, "surface_area": 43400.0, "principal_moments": [454000000.0, 472000000.0, 720000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 95, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 51.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 97.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 11.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009221 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 95, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 51.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 97.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 11.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad507_1819", "family": "threaded", "tier": 1, "seed": 2468009223, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "3955db8d64adca9a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5640.0, "surface_area": 3490.0, "principal_moments": [85800.0, 1720000.0, 1720000.0], "n_faces": 350, "n_edges": 900, "n_vertices": 552}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 60.0, "min": 24.0, "max": 120.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009223 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 60.0, \"min\": 24.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad508_1820", "family": "block", "tier": 2, "seed": 2468009224, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "3db26a3e1152395b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 123000.0, "surface_area": 21100.0, "principal_moments": [43100000.0, 56799999.99999999, 68300000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 40.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 50.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 9.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 20.9, "min": 10.4, "max": 41.8, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 4.3, "min": 1.7, "max": 10.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009224 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 40.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 50.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 9.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 20.9, \"min\": 10.4, \"max\": 41.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 4.3, \"min\": 1.7, \"max\": 10.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad509_1821", "family": "plate", "tier": 0, "seed": 2468009225, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "30428bfe7c12ab70", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7380.0, "surface_area": 3800.0, "principal_moments": [388000.0, 2230000.0, 2590000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 24.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009225 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 24.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad50c_1824", "family": "plate", "tier": 1, "seed": 2468009228, "symmetry": "none", "op_count": 2, "ir_hash": "5979776e7c1428c7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 22900.0, "surface_area": 11500.0, "principal_moments": [6250000.0, 12999999.999999998, 19200000.0], "n_faces": 30, "n_edges": 84, "n_vertices": 56}, "params": {"plate_w": {"type": "float", "default": 83.43, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 59.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 7.7, "min": 2.0, "max": 9.2, "step": 0.1, "group": "Holes", "label": "Square hole size (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009228 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 83.43, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 59.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 7.7, \"min\": 2.0, \"max\": 9.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(33.4, 47.4, p[\"hole_nx\"], p[\"hole_ny\"])\n .rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad50e_1826", "family": "bracket", "tier": 2, "seed": 2468009230, "symmetry": "none", "op_count": 1, "ir_hash": "21c46f70294aa0b1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19100.0, "surface_area": 9830.0, "principal_moments": [7790000.0, 16399999.999999998, 22899999.999999996], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 70.94, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 61.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.3, "min": 2.5, "max": 10.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009230 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70.94, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 61.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.5, \"max\": 10.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad50f_1827", "family": "bracket", "tier": 1, "seed": 2468009231, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "ecfcdc3f087deebe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16900.0, "surface_area": 9960.0, "principal_moments": [4870000.0, 15699999.999999998, 18000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 76.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 30, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009231 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 76.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad513_1831", "family": "block", "tier": 2, "seed": 2468009235, "symmetry": "none", "op_count": 3, "ir_hash": "9e083fc23e225317", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13600.0, "surface_area": 7060.0, "principal_moments": [1480000.0, 1620000.0, 2590000.0], "n_faces": 27, "n_edges": 72, "n_vertices": 48}, "params": {"block_w": {"type": "float", "default": 32.69, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 14.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 35.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 4.4, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "pocket_w": {"type": "float", "default": 16.3, "min": 8.2, "max": 26.2, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 6.3, "min": 3.1, "max": 11.9, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 15.3, "min": 6.1, "max": 30.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009235 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 32.69, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 14.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 35.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 4.4, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 16.3, \"min\": 8.2, \"max\": 26.2, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 6.3, \"min\": 3.1, \"max\": 11.9, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 15.3, \"min\": 6.1, \"max\": 30.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad515_1833", "family": "flanged", "tier": 1, "seed": 2468009237, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f4bbbd1ba12be8b6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 413000.0, "surface_area": 55800.0, "principal_moments": [502000000.0, 502000000.0, 664000000.0], "n_faces": 17, "n_edges": 60, "n_vertices": 40}, "params": {"outer_d": {"type": "float", "default": 79.91, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 65.8, "min": 19.7, "max": 164.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 27.3, "min": 2.0, "max": 55.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 142.1, "min": 103.9, "max": 239.7, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 11.3, "min": 3.4, "max": 26.3, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 42.6, "min": 28.4, "max": 63.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009237 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 79.91, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 65.8, \"min\": 19.7, \"max\": 164.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 27.3, \"min\": 2.0, \"max\": 55.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 142.1, \"min\": 103.9, \"max\": 239.7, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 11.3, \"min\": 3.4, \"max\": 26.3, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 42.6, \"min\": 28.4, \"max\": 63.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad516_1834", "family": "enclosure", "tier": 1, "seed": 2468009238, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "6037a9269f3ebb25", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 89500.0, "surface_area": 82300.0, "principal_moments": [165000000.0, 215000000.0, 266000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 115, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 90.9, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 77.2, "min": 30.9, "max": 154.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.2, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009238 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 115, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 90.9, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 77.2, \"min\": 30.9, \"max\": 154.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.2, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad517_1835", "family": "block", "tier": 1, "seed": 2468009239, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "22d4762dd6286869", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 236000.0, "surface_area": 34100.0, "principal_moments": [101000000.0, 238000000.0, 257000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 44.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009239 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 44.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 13.8\n _ssy = 11.1\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad518_1836", "family": "revolved", "tier": 1, "seed": 2468009240, "symmetry": "none", "op_count": 2, "ir_hash": "2913dc9d17bea5c6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 936000.0, "surface_area": 95900.0, "principal_moments": [1410000000.0, 2700000000.0, 2700000000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 70, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 204.6, "min": 61.4, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 122.7, "min": 84.0, "max": 210.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 51.5, "min": 15.4, "max": 102.3, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 1.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009240 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 70, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 204.6, \"min\": 61.4, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 122.7, \"min\": 84.0, \"max\": 210.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 51.5, \"min\": 15.4, \"max\": 102.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 1.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.07412527962118294)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad51b_1839", "family": "ribbed", "tier": 1, "seed": 2468009243, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "63899dbb3e774cce", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31500.0, "surface_area": 17800.0, "principal_moments": [10900000.0, 22100000.0, 32199999.999999996], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 90, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 58.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 9.2, "min": 3.7, "max": 18.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.9, "min": 1.0, "max": 9.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009243 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 58.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 9.2, \"min\": 3.7, \"max\": 18.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.9, \"min\": 1.0, \"max\": 9.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad51c_1840", "family": "block", "tier": 1, "seed": 2468009244, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "fe2ee68a2740ce40", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 415000.0, "surface_area": 43000.0, "principal_moments": [313000000.0, 445000000.0, 559000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 79.07, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 54.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 12.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009244 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 79.07, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 54.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 12.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad51d_1841", "family": "plate", "tier": 0, "seed": 2468009245, "symmetry": "radial", "op_count": 1, "ir_hash": "07b1e02f75d2ae87", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8310.0, "surface_area": 2820.0, "principal_moments": [601000.0, 692000.0, 1150000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 30, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 27.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009245 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 30, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 27.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad51e_1842", "family": "revolved", "tier": 2, "seed": 2468009246, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "f39f4903b732950d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9870.0, "surface_area": 4240.0, "principal_moments": [508000.0, 2440000.0, 2440000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 15, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 48.5, "min": 14.5, "max": 145.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 5.6, "min": 2.0, "max": 10.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 25.3, "min": 18.0, "max": 45.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.0, "min": 2.4, "max": 24.2, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.2, "min": 0.1, "max": 3.6, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009246 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 15, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 48.5, \"min\": 14.5, \"max\": 145.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 5.6, \"min\": 2.0, \"max\": 10.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 25.3, \"min\": 18.0, \"max\": 45.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.4, \"max\": 24.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.2, \"min\": 0.1, \"max\": 3.6, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad522_1846", "family": "block", "tier": 2, "seed": 2468009250, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "48dbc97accad35b1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2250.0, "surface_area": 1720.0, "principal_moments": [49100.0, 108000.0, 139000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 15.0, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 7.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 23.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.8, "min": 2.0, "max": 1.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009250 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 15.0, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 7.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 23.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.8, \"min\": 2.0, \"max\": 1.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.04814211678865435)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad523_1847", "family": "plate", "tier": 0, "seed": 2468009251, "symmetry": "none", "op_count": 1, "ir_hash": "273270ccb2ed9ae4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8960.0, "surface_area": 4470.0, "principal_moments": [745000.0, 2480000.0, 3190000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 57.41, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 31.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009251 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 57.41, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 31.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad524_1848", "family": "threaded", "tier": 1, "seed": 2468009252, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "6178ca991d1aa155", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 264.0, "surface_area": 403.0, "principal_moments": [685.0, 6250.0, 6250.0], "n_faces": 210, "n_edges": 536, "n_vertices": 328}, "params": {"major_d": {"type": "float", "default": 5.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.8, "min": 0.4, "max": 1.6, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 16.5, "min": 6.6, "max": 33.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009252 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 5.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.8, \"min\": 0.4, \"max\": 1.6, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 16.5, \"min\": 6.6, \"max\": 33.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad525_1849", "family": "revolved", "tier": 0, "seed": 2468009253, "symmetry": "none", "op_count": 1, "ir_hash": "2a3fc86680105e00", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9010.0, "surface_area": 3810.0, "principal_moments": [813000.0, 813000.0, 881000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 25.53, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 26.4, "min": 7.9, "max": 79.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009253 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25.53, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 26.4, \"min\": 7.9, \"max\": 79.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad527_1851", "family": "compound", "tier": 2, "seed": 2468009255, "symmetry": "none", "op_count": 3, "ir_hash": "006983fde5b69dd2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 205000.0, "surface_area": 25900.0, "principal_moments": [117000000.0, 121000000.0, 148000000.0], "n_faces": 16, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 65, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 61.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 51.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 9.2, "min": 4.6, "max": 18.0, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 36.8, "min": 5.1, "max": 68.0, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 10.1, "min": 2.0, "max": 12.2, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009255 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 65, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 61.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 51.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 9.2, \"min\": 4.6, \"max\": 18.0, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 36.8, \"min\": 5.1, \"max\": 68.0, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 10.1, \"min\": 2.0, \"max\": 12.2, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"spig_sides\"], p[\"spig_r\"] * 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad528_1852", "family": "revolved", "tier": 2, "seed": 2468009256, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "e129a818417fd1de", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34500.0, "surface_area": 12500.0, "principal_moments": [3490000.0, 21400000.0, 21400000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 25.97, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 97.8, "min": 29.3, "max": 293.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009256 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25.97, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 97.8, \"min\": 29.3, \"max\": 293.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad529_1853", "family": "flanged", "tier": 1, "seed": 2468009257, "symmetry": "none", "op_count": 2, "ir_hash": "9e5dc3fac19651f9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 828000.0, "surface_area": 103000.0, "principal_moments": [1990000000.0, 2250000000.0, 2250000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 82.87, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 122.8, "min": 36.8, "max": 307.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 33.6, "min": 2.0, "max": 58.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 186.5, "min": 107.7, "max": 248.6, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 12.6, "min": 3.8, "max": 49.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 55.9, "min": 37.3, "max": 83.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009257 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 82.87, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 122.8, \"min\": 36.8, \"max\": 307.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 33.6, \"min\": 2.0, \"max\": 58.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 186.5, \"min\": 107.7, \"max\": 248.6, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 12.6, \"min\": 3.8, \"max\": 49.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 55.9, \"min\": 37.3, \"max\": 83.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad52a_1854", "family": "profiled", "tier": 1, "seed": 2468009258, "symmetry": "none", "op_count": 1, "ir_hash": "a1293c1f809d271f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 149000.0, "surface_area": 28300.0, "principal_moments": [36600000.0, 269000000.0, 269000000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 40.63, "min": 20.3, "max": 81.3, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 142.3, "min": 42.7, "max": 426.9, "step": 5.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 17.9, "min": 2.0, "max": 32.5, "step": 0.5, "group": "Profile", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009258 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40.63, \"min\": 20.3, \"max\": 81.3, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 142.3, \"min\": 42.7, \"max\": 426.9, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 17.9, \"min\": 2.0, \"max\": 32.5, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad52c_1856", "family": "bracket", "tier": 1, "seed": 2468009260, "symmetry": "none", "op_count": 1, "ir_hash": "85c7ff38322c9a83", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30400.0, "surface_area": 16800.0, "principal_moments": [14099999.999999998, 27399999.999999996, 30499999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 65.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 58.27, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009260 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 65.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 58.27, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad531_1861", "family": "compound", "tier": 1, "seed": 2468009265, "symmetry": "none", "op_count": 2, "ir_hash": "d88bfab4ed04a2e5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31400.0, "surface_area": 6880.0, "principal_moments": [4660000.0, 5450000.0, 6530000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 31.35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 37.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 26.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 9.8, "min": 3.9, "max": 18.4, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 12.2, "min": 2.9, "max": 39.2, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 4.0, "min": 2.0, "max": 7.1, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009265 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 31.35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 37.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 26.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 9.8, \"min\": 3.9, \"max\": 18.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 12.2, \"min\": 2.9, \"max\": 39.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 7.1, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad535_1865", "family": "bracket", "tier": 1, "seed": 2468009269, "symmetry": "none", "op_count": 1, "ir_hash": "8bc3aa906cda0e09", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61500.0, "surface_area": 19600.0, "principal_moments": [29999999.999999996, 83300000.0, 96699999.99999999], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 60.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009269 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 60.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad536_1866", "family": "block", "tier": 1, "seed": 2468009270, "symmetry": "none", "op_count": 2, "ir_hash": "ad037708315387da", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16500.0, "surface_area": 6170.0, "principal_moments": [1690000.0, 1960000.0, 2920000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 16.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 31.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 4.9, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009270 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 16.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 31.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 4.9, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad537_1867", "family": "compound", "tier": 2, "seed": 2468009271, "symmetry": "none", "op_count": 2, "ir_hash": "20a49fd06f26b51a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31500.0, "surface_area": 6540.0, "principal_moments": [2690000.0, 12899999.999999998, 12899999.999999998], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 28.06, "min": 14.0, "max": 50.5, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 42.1, "min": 16.8, "max": 84.2, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 13.6, "min": 6.8, "max": 25.3, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 37.3, "min": 11.2, "max": 93.2, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009271 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 28.06, \"min\": 14.0, \"max\": 50.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 42.1, \"min\": 16.8, \"max\": 84.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 13.6, \"min\": 6.8, \"max\": 25.3, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 37.3, \"min\": 11.2, \"max\": 93.2, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad538_1868", "family": "gear", "tier": 2, "seed": 2468009272, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "cfa57040a7a2f4ea", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5090.0, "surface_area": 2850.0, "principal_moments": [285000.0, 285000.0, 493000.0], "n_faces": 115, "n_edges": 339, "n_vertices": 226}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 14, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 9.5, "min": 3.8, "max": 23.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": -0.26, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.49, "min": 0.0, "max": 1.0, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 4.0, "min": 2.0, "max": 13.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009272 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 14, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 9.5, \"min\": 3.8, \"max\": 23.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.26, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.49, \"min\": 0.0, \"max\": 1.0, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 13.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad539_1869", "family": "plate", "tier": 2, "seed": 2468009273, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "d3e5f9ed56802385", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 41200.0, "surface_area": 13500.0, "principal_moments": [7110000.0, 46699999.99999999, 53399999.99999999], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 117.11, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 45.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 10.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009273 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 117.11, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 45.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 10.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.04227402954920802)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad53a_1870", "family": "block", "tier": 2, "seed": 2468009274, "symmetry": "none", "op_count": 3, "ir_hash": "2f0e28aa898ab32c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 274000.0, "surface_area": 33400.0, "principal_moments": [158000000.0, 260000000.0, 355000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 37.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 8.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 9.8, "min": 4.9, "max": 19.6, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 4.5, "min": 1.8, "max": 11.2, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009274 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 37.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 8.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 9.8, \"min\": 4.9, \"max\": 19.6, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.8, \"max\": 11.2, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad53b_1871", "family": "bracket", "tier": 2, "seed": 2468009275, "symmetry": "none", "op_count": 1, "ir_hash": "4aedc63edb9334da", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38000.0, "surface_area": 14300.0, "principal_moments": [11699999.999999998, 28799999.999999996, 28899999.999999996], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 67.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 9.0, "min": 3.0, "max": 18.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009275 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 67.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 9.0, \"min\": 3.0, \"max\": 18.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad53c_1872", "family": "gear", "tier": 1, "seed": 2468009276, "symmetry": "none", "op_count": 1, "ir_hash": "c992a3af9dafd647", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 677.0, "surface_area": 744.0, "principal_moments": [10400.0, 10400.0, 18000.0], "n_faces": 69, "n_edges": 201, "n_vertices": 134}, "params": {"module": {"type": "float", "default": 1.25, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 11, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 3.0, "min": 2.0, "max": 6.4, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009276 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.25, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 11, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 6.4, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad53d_1873", "family": "plate", "tier": 1, "seed": 2468009277, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "a71a1a5dccf49027", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26800.0, "surface_area": 7230.0, "principal_moments": [4830000.0, 5910000.0, 10100000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 50.21, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 45.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 10.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009277 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50.21, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 45.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 10.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad53e_1874", "family": "block", "tier": 2, "seed": 2468009278, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "67e849eff0c39238", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 298000.0, "surface_area": 49100.0, "principal_moments": [294000000.0, 320000000.0, 523000000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 97.71, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 39.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 8.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 62.5, "min": 31.2, "max": 78.2, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 22.5, "min": 11.2, "max": 31.4, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 59.2, "min": 23.7, "max": 85.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009278 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 97.71, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 39.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 8.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 62.5, \"min\": 31.2, \"max\": 78.2, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 22.5, \"min\": 11.2, \"max\": 31.4, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 59.2, \"min\": 23.7, \"max\": 85.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad53f_1875", "family": "revolved", "tier": 1, "seed": 2468009279, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "ad592e083662f661", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1040000.0, "surface_area": 91900.0, "principal_moments": [1680000000.0, 4320000000.0, 4320000000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 60.23, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 207.0, "min": 62.1, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 23.8, "min": 2.0, "max": 42.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 131.7, "min": 72.3, "max": 180.7, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 50.1, "min": 15.0, "max": 103.5, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.7, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009279 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60.23, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 207.0, \"min\": 62.1, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 23.8, \"min\": 2.0, \"max\": 42.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 131.7, \"min\": 72.3, \"max\": 180.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 50.1, \"min\": 15.0, \"max\": 103.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.7, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad541_1877", "family": "plate", "tier": 0, "seed": 2468009281, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "eec2802554596667", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1760.0, "surface_area": 1030.0, "principal_moments": [25300.0, 96700.0, 111000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 25, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 11.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009281 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 11.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad542_1878", "family": "revolved", "tier": 1, "seed": 2468009282, "symmetry": "none", "op_count": 2, "ir_hash": "fb3ef0a4a0017161", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31200.0, "surface_area": 8560.0, "principal_moments": [6560000.0, 6560000.0, 6710000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 37.88, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 41.7, "min": 12.5, "max": 125.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009282 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 37.88, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 41.7, \"min\": 12.5, \"max\": 125.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 3.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad544_1880", "family": "compound", "tier": 2, "seed": 2468009284, "symmetry": "mirror_xy", "op_count": 5, "ir_hash": "1be1560361885055", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 43600.0, "surface_area": 9760.0, "principal_moments": [8370000.0, 9660000.0, 13899999.999999998], "n_faces": 20, "n_edges": 47, "n_vertices": 30}, "params": {"block_w": {"type": "float", "default": 41.81, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 45.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 23.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 5.1, "min": 2.0, "max": 10.7, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 5.5, "min": 1.3, "max": 15.3, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 2.3, "min": 2.0, "max": 3.7, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009284 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 41.81, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 45.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 23.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 5.1, \"min\": 2.0, \"max\": 10.7, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 5.5, \"min\": 1.3, \"max\": 15.3, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 2.3, \"min\": 2.0, \"max\": 3.7, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad545_1881", "family": "compound", "tier": 1, "seed": 2468009285, "symmetry": "none", "op_count": 2, "ir_hash": "907a92b4ebae2468", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 54000.0, "surface_area": 12900.0, "principal_moments": [11599999.999999998, 26999999.999999996, 26999999.999999996], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 24.61, "min": 14.8, "max": 39.4, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 27.1, "min": 10.8, "max": 67.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 20.9, "min": 10.4, "max": 34.1, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 51.6, "min": 15.5, "max": 129.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 10.1, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009285 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 24.61, \"min\": 14.8, \"max\": 39.4, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 27.1, \"min\": 10.8, \"max\": 67.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 20.9, \"min\": 10.4, \"max\": 34.1, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 51.6, \"min\": 15.5, \"max\": 129.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 10.1, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad546_1882", "family": "block", "tier": 2, "seed": 2468009286, "symmetry": "none", "op_count": 3, "ir_hash": "5d7e8b683fbb7629", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 167000.0, "surface_area": 25400.0, "principal_moments": [80900000.0, 85000000.0, 121000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 67.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 40.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 13.0, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009286 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 67.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 40.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 13.0, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.09707261891619055)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad547_1883", "family": "flanged", "tier": 2, "seed": 2468009287, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "5a4e330b88741e6f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 211000.0, "surface_area": 41100.0, "principal_moments": [198000000.0, 198000000.0, 334000000.0], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 77.35, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 39.6, "min": 11.9, "max": 99.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 37.7, "min": 2.0, "max": 54.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 131.3, "min": 100.6, "max": 232.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.0, "min": 2.4, "max": 15.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 39.4, "min": 26.3, "max": 59.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009287 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 77.35, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 39.6, \"min\": 11.9, \"max\": 99.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 37.7, \"min\": 2.0, \"max\": 54.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 131.3, \"min\": 100.6, \"max\": 232.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.4, \"max\": 15.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 39.4, \"min\": 26.3, \"max\": 59.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad548_1884", "family": "enclosure", "tier": 1, "seed": 2468009288, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "369f5766600b11c7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 65900.0, "surface_area": 24900.0, "principal_moments": [32999999.999999996, 49699999.99999999, 57899999.99999999], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 70, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 49.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 43.9, "min": 17.6, "max": 87.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.6, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009288 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 70, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 49.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 43.9, \"min\": 17.6, \"max\": 87.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad549_1885", "family": "gear", "tier": 1, "seed": 2468009289, "symmetry": "none", "op_count": 1, "ir_hash": "0ed248a733319ae3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34600.0, "surface_area": 12800.0, "principal_moments": [12899999.999999998, 12899999.999999998, 25399999.999999996], "n_faces": 231, "n_edges": 687, "n_vertices": 458}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 38, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 7.8, "min": 3.1, "max": 19.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 9.3, "min": 2.0, "max": 42.6, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009289 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 38, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 7.8, \"min\": 3.1, \"max\": 19.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 9.3, \"min\": 2.0, \"max\": 42.6, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad54a_1886", "family": "revolved", "tier": 2, "seed": 2468009290, "symmetry": "radial", "op_count": 1, "ir_hash": "b4a5aff759264c20", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 192000.0, "surface_area": 31400.0, "principal_moments": [137000000.0, 137000000.0, 144000000.0], "n_faces": 7, "n_edges": 10, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 71.27, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 74.4, "min": 22.3, "max": 223.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "groove_depth": {"type": "float", "default": 4.09, "min": 1.64, "max": 12.27, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 6.99, "min": 2.8, "max": 20.97, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 27.5, "min": 11.2, "max": 63.2, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009290 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 71.27, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 74.4, \"min\": 22.3, \"max\": 223.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 4.09, \"min\": 1.64, \"max\": 12.27, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 6.99, \"min\": 2.8, \"max\": 20.97, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 27.5, \"min\": 11.2, \"max\": 63.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad54b_1887", "family": "plate", "tier": 1, "seed": 2468009291, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "f340c72ee74cb516", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1970.0, "surface_area": 2400.0, "principal_moments": [145000.0, 205000.0, 349000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 36.46, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 30.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 2.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 6.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009291 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 36.46, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 30.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 6.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad54d_1889", "family": "plate", "tier": 1, "seed": 2468009293, "symmetry": "none", "op_count": 2, "ir_hash": "af3c6ca2f26d106b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7920.0, "surface_area": 4960.0, "principal_moments": [1020000.0, 1770000.0, 2780000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 52.25, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 39.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 8.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009293 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 52.25, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 39.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 8.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad54e_1890", "family": "block", "tier": 1, "seed": 2468009294, "symmetry": "none", "op_count": 2, "ir_hash": "7652b780b71770d6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34000.0, "surface_area": 9240.0, "principal_moments": [6010000.0, 6240000.0, 6830000.0], "n_faces": 15, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 35, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 30.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 34.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.9, "min": 2.0, "max": 3.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009294 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 30.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 34.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.9, \"min\": 2.0, \"max\": 3.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 6.6\n _ssy = 7.6\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad54f_1891", "family": "plate", "tier": 2, "seed": 2468009295, "symmetry": "none", "op_count": 3, "ir_hash": "cf67174e06a78497", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37100.0, "surface_area": 15300.0, "principal_moments": [11799999.999999998, 33399999.999999996, 45000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 106.54, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 63.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 13.0, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009295 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 106.54, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 63.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 13.0, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.0887345671596789)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad550_1892", "family": "ribbed", "tier": 1, "seed": 2468009296, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "d574a689bb395a44", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37100.0, "surface_area": 12400.0, "principal_moments": [8060000.0, 21400000.0, 25199999.999999996], "n_faces": 22, "n_edges": 52, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 70, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 37.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 18.9, "min": 7.6, "max": 37.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.1, "min": 1.0, "max": 12.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009296 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 70, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 37.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 18.9, \"min\": 7.6, \"max\": 37.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.1, \"min\": 1.0, \"max\": 12.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad551_1893", "family": "bracket", "tier": 1, "seed": 2468009297, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "9c9c51e476050ab3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25100.0, "surface_area": 18000.0, "principal_moments": [12699999.999999998, 25599999.999999996, 27999999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 72.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 70.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 60.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009297 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 72.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 70.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 60.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad553_1895", "family": "plate", "tier": 0, "seed": 2468009299, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "b38c0ab8526e31d4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23400.0, "surface_area": 7630.0, "principal_moments": [3460000.0, 9800000.0, 12999999.999999998], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 70.51, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 41.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009299 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 70.51, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 41.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad555_1897", "family": "compound", "tier": 1, "seed": 2468009301, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "f7e036a73229b535", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 107000.0, "surface_area": 17100.0, "principal_moments": [39200000.0, 40700000.0, 63699999.99999999], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 58.54, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 59.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 30.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 32.9, "min": 13.2, "max": 52.6, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 20.1, "min": 8.0, "max": 32.2, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.4, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009301 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 58.54, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 59.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 30.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 32.9, \"min\": 13.2, \"max\": 52.6, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 20.1, \"min\": 8.0, \"max\": 32.2, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.4, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .rect(p[\"tab_a\"], p[\"tab_b\"]).extrude(p[\"tab_t\"])\n )\n result = (\n result.faces('>X').workplane()\n .rect(p[\"tab_a\"] * 0.6, p[\"tab_b\"] * 0.6, forConstruction=True)\n .vertices().hole(p[\"tab_hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad556_1898", "family": "profiled", "tier": 1, "seed": 2468009302, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "776b923dbb03a78f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 90100.0, "surface_area": 14200.0, "principal_moments": [10600000.0, 120000000.0, 120000000.0], "n_faces": 7, "n_edges": 15, "n_vertices": 10}, "params": {"circ_r": {"type": "float", "default": 17.5, "min": 8.8, "max": 35.0, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 123.8, "min": 37.1, "max": 371.4, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009302 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 17.5, \"min\": 8.8, \"max\": 35.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 123.8, \"min\": 37.1, \"max\": 371.4, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad557_1899", "family": "block", "tier": 1, "seed": 2468009303, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "29275445a7fff2b6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15200.0, "surface_area": 4790.0, "principal_moments": [1490000.0, 1570000.0, 2340000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 29.88, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 16.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 30.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 1.9, "min": 2.0, "max": 1.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009303 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 29.88, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 16.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 30.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.9, \"min\": 2.0, \"max\": 1.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 11.2\n _ssy = 10.3\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad559_1901", "family": "bracket", "tier": 2, "seed": 2468009305, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "771ab94726ea9027", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25300.0, "surface_area": 11600.0, "principal_moments": [8170000.0, 10400000.0, 14499999.999999998], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 51.42, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 42.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.2, "min": 2.5, "max": 15.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009305 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 51.42, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 42.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.5, \"max\": 15.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad55a_1902", "family": "ribbed", "tier": 1, "seed": 2468009306, "symmetry": "none", "op_count": 2, "ir_hash": "a20b3135879d7072", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11600.0, "surface_area": 6320.0, "principal_moments": [1630000.0, 2550000.0, 4060000.0], "n_faces": 21, "n_edges": 48, "n_vertices": 32}, "params": {"base_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 40.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 5.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 5.4, "min": 2.2, "max": 10.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 2.2, "min": 1.0, "max": 5.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009306 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 40.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 5.4, \"min\": 2.2, \"max\": 10.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 2.2, \"min\": 1.0, \"max\": 5.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad55b_1903", "family": "revolved", "tier": 1, "seed": 2468009307, "symmetry": "radial", "op_count": 1, "ir_hash": "f3b944399ace0f03", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 295000.0, "surface_area": 40300.0, "principal_moments": [254000000.0, 294000000.0, 294000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 75.85, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 97.8, "min": 29.3, "max": 293.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009307 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75.85, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 97.8, \"min\": 29.3, \"max\": 293.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad55c_1904", "family": "plate", "tier": 2, "seed": 2468009308, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "241dd213426790a9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12400.0, "surface_area": 5710.0, "principal_moments": [1150000.0, 4310000.0, 5390000.0], "n_faces": 26, "n_edges": 72, "n_vertices": 48}, "params": {"plate_w": {"type": "float", "default": 65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 33.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.5, "step": 0.5, "group": "Holes", "label": "Slot width (mm)"}, "hole_slot_len": {"type": "float", "default": 6.8, "min": 4.8, "max": 10.0, "step": 0.5, "group": "Holes", "label": "Slot length (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009308 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 33.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.5, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot width (mm)'},\n \"hole_slot_len\": {\"type\": 'float', \"default\": 6.8, \"min\": 4.8, \"max\": 10.0, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Slot length (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().slot2D(p[\"hole_slot_len\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.08038480826740729)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad55d_1905", "family": "revolved", "tier": 0, "seed": 2468009309, "symmetry": "none", "op_count": 1, "ir_hash": "f5bf7bea862b1779", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 16500.0, "surface_area": 7570.0, "principal_moments": [1060000.0, 5920000.0, 5920000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 20.64, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 74.1, "min": 22.2, "max": 222.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009309 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 20.64, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 74.1, \"min\": 22.2, \"max\": 222.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad55e_1906", "family": "ribbed", "tier": 2, "seed": 2468009310, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3cc2ad973249aec8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42600.0, "surface_area": 23200.0, "principal_moments": [25699999.999999996, 40700000.0, 64099999.99999999], "n_faces": 16, "n_edges": 36, "n_vertices": 24}, "params": {"base_w": {"type": "float", "default": 95.61, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 85.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 4.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 2, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.9, "min": 6.8, "max": 33.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.9, "min": 1.0, "max": 9.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009310 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 95.61, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 85.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 2, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.9, \"min\": 6.8, \"max\": 33.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.9, \"min\": 1.0, \"max\": 9.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad560_1908", "family": "bracket", "tier": 1, "seed": 2468009312, "symmetry": "none", "op_count": 1, "ir_hash": "f7fd68cb37ff41c5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19400.0, "surface_area": 11000.0, "principal_moments": [5360000.0, 12299999.999999998, 13499999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 47.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009312 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 47.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad562_1910", "family": "bracket", "tier": 2, "seed": 2468009314, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "819db65af903b7ea", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14800.0, "surface_area": 8600.0, "principal_moments": [3240000.0, 11200000.0, 13599999.999999998], "n_faces": 15, "n_edges": 41, "n_vertices": 26}, "params": {"base_len": {"type": "float", "default": 74.37, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 75.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20.26, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 8.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 4.6, "min": 2.0, "max": 10.1, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009314 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 74.37, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 75.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20.26, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 8.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 4.6, \"min\": 2.0, \"max\": 10.1, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad563_1911", "family": "revolved", "tier": 2, "seed": 2468009315, "symmetry": "radial", "op_count": 1, "ir_hash": "9c864b0f3beb84fc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 55400.0, "surface_area": 12600.0, "principal_moments": [6980000.0, 40200000.0, 40200000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 30, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 89.1, "min": 26.7, "max": 267.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 10.4, "min": 2.0, "max": 21.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009315 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 89.1, \"min\": 26.7, \"max\": 267.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 10.4, \"min\": 2.0, \"max\": 21.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad564_1912", "family": "revolved", "tier": 1, "seed": 2468009316, "symmetry": "none", "op_count": 1, "ir_hash": "8b13051ed29ff50c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1840000.0, "surface_area": 144000.0, "principal_moments": [3180000000.0, 16700000000.0, 16700000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 77.75, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 298.6, "min": 89.6, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 30.9, "min": 2.0, "max": 54.4, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 142.8, "min": 93.3, "max": 233.2, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 57.3, "min": 17.2, "max": 149.3, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009316 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 77.75, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 298.6, \"min\": 89.6, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 30.9, \"min\": 2.0, \"max\": 54.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 142.8, \"min\": 93.3, \"max\": 233.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 57.3, \"min\": 17.2, \"max\": 149.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad565_1913", "family": "threaded", "tier": 2, "seed": 2468009317, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "3ebfbdfb95e382b8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18100.0, "surface_area": 5320.0, "principal_moments": [1940000.0, 2070000.0, 2080000.0], "n_faces": 60, "n_edges": 146, "n_vertices": 88}, "params": {"thread_size": {"type": "enum", "default": "1 1/4", "choices": ["1/4", "5/16", "3/8", "1/2", "5/8", "3/4", "7/8", "1", "1 1/4", "1 1/2"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 27.6, "min": 11.0, "max": 55.2, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009317 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '1 1/4', \"choices\": ['1/4', '5/16', '3/8', '1/2', '5/8', '3/4', '7/8', '1', '1 1/4', '1 1/2'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 27.6, \"min\": 11.0, \"max\": 55.2, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.AcmeThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad567_1915", "family": "compound", "tier": 1, "seed": 2468009319, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "1961e73c603db30c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 57500.0, "surface_area": 9120.0, "principal_moments": [12899999.999999998, 14199999.999999998, 16699999.999999998], "n_faces": 20, "n_edges": 48, "n_vertices": 32}, "params": {"block_w": {"type": "float", "default": 40, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 43.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 33.1, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 3.0, "min": 1.5, "max": 7.5, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 4.0, "min": 1.3, "max": 15.6, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009319 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 43.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 33.1, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.5, \"max\": 7.5, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.3, \"max\": 15.6, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad568_1916", "family": "enclosure", "tier": 2, "seed": 2468009320, "symmetry": "none", "op_count": 4, "ir_hash": "edb6207589645b47", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12200.0, "surface_area": 5640.0, "principal_moments": [1360000.0, 1700000.0, 2380000.0], "n_faces": 23, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 33.68, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 28.8, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 17.8, "min": 7.1, "max": 35.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.9, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009320 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 33.68, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 28.8, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 17.8, \"min\": 7.1, \"max\": 35.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.9, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.0659759702333295)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad569_1917", "family": "revolved", "tier": 0, "seed": 2468009321, "symmetry": "none", "op_count": 1, "ir_hash": "44563a0b8d967e70", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 244000.0, "surface_area": 39800.0, "principal_moments": [132000000.0, 310000000.0, 310000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 60, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 129.6, "min": 38.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009321 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 60, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 129.6, \"min\": 38.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad56b_1919", "family": "flanged", "tier": 1, "seed": 2468009323, "symmetry": "radial", "op_count": 2, "ir_hash": "1c2f730e487f04c3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 373000.0, "surface_area": 75800.0, "principal_moments": [659000000.0, 659000000.0, 1170000000.0], "n_faces": 12, "n_edges": 27, "n_vertices": 18}, "params": {"outer_d": {"type": "float", "default": 80.79, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 47.5, "min": 14.2, "max": 118.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 37.7, "min": 2.0, "max": 56.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 190.6, "min": 105.0, "max": 242.4, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.9, "min": 2.4, "max": 19.0, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 57.2, "min": 38.1, "max": 85.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009323 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 80.79, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 47.5, \"min\": 14.2, \"max\": 118.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 37.7, \"min\": 2.0, \"max\": 56.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 190.6, \"min\": 105.0, \"max\": 242.4, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.9, \"min\": 2.4, \"max\": 19.0, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 57.2, \"min\": 38.1, \"max\": 85.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad56c_1920", "family": "compound", "tier": 1, "seed": 2468009324, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "8d456c5629c4cc50", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17400.0, "surface_area": 5210.0, "principal_moments": [1410000.0, 2870000.0, 3230000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 34.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 19.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 9.1, "min": 3.6, "max": 13.5, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 18.6, "min": 2.7, "max": 36.4, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 3.9, "min": 2.0, "max": 6.6, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009324 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 34.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 19.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 9.1, \"min\": 3.6, \"max\": 13.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 18.6, \"min\": 2.7, \"max\": 36.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 3.9, \"min\": 2.0, \"max\": 6.6, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad56d_1921", "family": "compound", "tier": 2, "seed": 2468009325, "symmetry": "none", "op_count": 3, "ir_hash": "9bff1c6d6686b503", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9610.0, "surface_area": 3440.0, "principal_moments": [686000.0, 791000.0, 1120000.0], "n_faces": 16, "n_edges": 39, "n_vertices": 26}, "params": {"block_w": {"type": "float", "default": 25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 15.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 25.3, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 3.3, "min": 1.6, "max": 5.2, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 14.4, "min": 1.8, "max": 24.4, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.4, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009325 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 15.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 25.3, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 3.3, \"min\": 1.6, \"max\": 5.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 14.4, \"min\": 1.8, \"max\": 24.4, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.4, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad56e_1922", "family": "block", "tier": 2, "seed": 2468009326, "symmetry": "none", "op_count": 3, "ir_hash": "905d28fcca708a42", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 632000.0, "surface_area": 78100.0, "principal_moments": [887000000.0, 959000000.0, 1120000000.0], "n_faces": 27, "n_edges": 72, "n_vertices": 48}, "params": {"block_w": {"type": "float", "default": 100.0, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 79.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 10.1, "min": 2.0, "max": 16.9, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}, "pocket_w": {"type": "float", "default": 40.6, "min": 20.3, "max": 80.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 55.2, "min": 27.6, "max": 63.9, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 56.1, "min": 22.4, "max": 85.0, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009326 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 100.0, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 79.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.1, \"min\": 2.0, \"max\": 16.9, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 40.6, \"min\": 20.3, \"max\": 80.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 55.2, \"min\": 27.6, \"max\": 63.9, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 56.1, \"min\": 22.4, \"max\": 85.0, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad56f_1923", "family": "block", "tier": 2, "seed": 2468009327, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "961d3485f7f193a5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 57300.0, "surface_area": 13900.0, "principal_moments": [10400000.0, 24699999.999999996, 31099999.999999996], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 42.12, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 20.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 68.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 9.8, "min": 4.9, "max": 19.6, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 4.8, "min": 1.9, "max": 12.0, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.9, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009327 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 42.12, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 20.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 68.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 9.8, \"min\": 4.9, \"max\": 19.6, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 4.8, \"min\": 1.9, \"max\": 12.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.9, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad571_1925", "family": "revolved", "tier": 1, "seed": 2468009329, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "adf8e2a085023dbd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4590.0, "surface_area": 2840.0, "principal_moments": [151000.0, 505000.0, 505000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 14.87, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 40.1, "min": 12.0, "max": 120.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.4, "min": 0.1, "max": 4.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009329 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 14.87, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 40.1, \"min\": 12.0, \"max\": 120.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.4, \"min\": 0.1, \"max\": 4.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad573_1927", "family": "revolved", "tier": 2, "seed": 2468009331, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "883561402158058b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1700.0, "surface_area": 1690.0, "principal_moments": [23500.0, 144000.0, 144000.0], "n_faces": 9, "n_edges": 14, "n_vertices": 9}, "params": {"outer_d": {"type": "float", "default": 9.68, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 36.1, "min": 10.8, "max": 108.3, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "groove_depth": {"type": "float", "default": 0.57, "min": 0.23, "max": 1.71, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 3.68, "min": 1.47, "max": 11.04, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 20.7, "min": 5.4, "max": 30.7, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.1, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009331 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 9.68, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 36.1, \"min\": 10.8, \"max\": 108.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 0.57, \"min\": 0.23, \"max\": 1.71, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 3.68, \"min\": 1.47, \"max\": 11.04, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 20.7, \"min\": 5.4, \"max\": 30.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.1, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad577_1931", "family": "revolved", "tier": 1, "seed": 2468009335, "symmetry": "radial", "op_count": 2, "ir_hash": "98abc9c74b2a89da", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 58000.0, "surface_area": 16600.0, "principal_moments": [22999999.999999996, 22999999.999999996, 36100000.0], "n_faces": 10, "n_edges": 17, "n_vertices": 10}, "params": {"outer_d": {"type": "float", "default": 43.66, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 31.4, "min": 9.4, "max": 94.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 22.8, "min": 2.0, "max": 30.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 81.8, "min": 52.4, "max": 131.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.5, "min": 1.9, "max": 15.7, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.5, "min": 0.1, "max": 4.5, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009335 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 43.66, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 31.4, \"min\": 9.4, \"max\": 94.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 22.8, \"min\": 2.0, \"max\": 30.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 81.8, \"min\": 52.4, \"max\": 131.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.5, \"min\": 1.9, \"max\": 15.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.5, \"min\": 0.1, \"max\": 4.5, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad579_1933", "family": "bracket", "tier": 1, "seed": 2468009337, "symmetry": "none", "op_count": 1, "ir_hash": "9dbb502be6934f71", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8190.0, "surface_area": 5250.0, "principal_moments": [1400000.0, 1500000.0, 2110000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 29.43, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 34.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 23.49, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 9.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009337 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 29.43, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 34.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 23.49, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 9.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad57a_1934", "family": "plate", "tier": 2, "seed": 2468009338, "symmetry": "radial", "op_count": 3, "ir_hash": "de94c1caada03901", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7200.0, "surface_area": 3570.0, "principal_moments": [336000.0, 1930000.0, 2220000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"plate_w": {"type": "float", "default": 56.71, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 22.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 17.0, "min": 11.3, "max": 25.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009338 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 56.71, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 22.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 17.0, \"min\": 11.3, \"max\": 25.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.11372792204553783)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad57b_1935", "family": "revolved", "tier": 2, "seed": 2468009339, "symmetry": "none", "op_count": 2, "ir_hash": "38e0174f7948ebb0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 397000.0, "surface_area": 52400.0, "principal_moments": [328000000.0, 611000000.0, 611000000.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 74.22, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 137.8, "min": 41.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.2, "min": 0.1, "max": 3.6, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009339 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 74.22, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 137.8, \"min\": 41.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.2, \"min\": 0.1, \"max\": 3.6, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad57d_1937", "family": "compound", "tier": 1, "seed": 2468009341, "symmetry": "none", "op_count": 2, "ir_hash": "048eddb24bd99862", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 61900.0, "surface_area": 13400.0, "principal_moments": [16499999.999999998, 25799999.999999996, 25899999.999999996], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"base_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 28.14, "min": 16.9, "max": 45.0, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 27.1, "min": 10.8, "max": 67.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 22.7, "min": 11.3, "max": 36.4, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 42.2, "min": 12.7, "max": 105.5, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 10.7, "min": 2.0, "max": 16.3, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009341 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 28.14, \"min\": 16.9, \"max\": 45.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 27.1, \"min\": 10.8, \"max\": 67.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 22.7, \"min\": 11.3, \"max\": 36.4, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 42.2, \"min\": 12.7, \"max\": 105.5, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 10.7, \"min\": 2.0, \"max\": 16.3, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad57e_1938", "family": "revolved", "tier": 0, "seed": 2468009342, "symmetry": "none", "op_count": 1, "ir_hash": "3b6fde1440f2c146", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 222000.0, "surface_area": 33000.0, "principal_moments": [164000000.0, 179000000.0, 179000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 70.25, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 85.8, "min": 25.7, "max": 257.4, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009342 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 70.25, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 85.8, \"min\": 25.7, \"max\": 257.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad57f_1939", "family": "compound", "tier": 1, "seed": 2468009343, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "42d6e2c625084839", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 43100.0, "surface_area": 7990.0, "principal_moments": [4270000.0, 21800000.0, 21800000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 30, "min": 15.0, "max": 54.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 50.7, "min": 20.3, "max": 101.4, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 16.1, "min": 8.1, "max": 27.0, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 35.6, "min": 10.7, "max": 89.0, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009343 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 30, \"min\": 15.0, \"max\": 54.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 50.7, \"min\": 20.3, \"max\": 101.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 16.1, \"min\": 8.1, \"max\": 27.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 35.6, \"min\": 10.7, \"max\": 89.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad580_1940", "family": "plate", "tier": 1, "seed": 2468009344, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "ee38c2d58b695bcd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8520.0, "surface_area": 3820.0, "principal_moments": [437000.0, 1620000.0, 1970000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 48.06, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 24.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 5.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009344 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 48.06, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 24.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 5.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad581_1941", "family": "compound", "tier": 1, "seed": 2468009345, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "12916e646bd575fe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 92000.0, "surface_area": 15200.0, "principal_moments": [31199999.999999996, 32599999.999999996, 34000000.0], "n_faces": 14, "n_edges": 34, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 45, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 47.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 43.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 13.8, "min": 5.5, "max": 19.8, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 9.8, "min": 3.5, "max": 41.4, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 6.7, "min": 2.0, "max": 9.9, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009345 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 47.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 43.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 13.8, \"min\": 5.5, \"max\": 19.8, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 9.8, \"min\": 3.5, \"max\": 41.4, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 6.7, \"min\": 2.0, \"max\": 9.9, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad582_1942", "family": "plate", "tier": 1, "seed": 2468009346, "symmetry": "none", "op_count": 2, "ir_hash": "a57e25666476ed34", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 44100.0, "surface_area": 14300.0, "principal_moments": [18600000.0, 23499999.999999996, 41700000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 80.35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 71.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009346 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 80.35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 71.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad583_1943", "family": "revolved", "tier": 0, "seed": 2468009347, "symmetry": "none", "op_count": 1, "ir_hash": "653d557950b179a1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2660.0, "surface_area": 1660.0, "principal_moments": [121000.0, 121000.0, 215000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 23.23, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 9.4, "min": 2.8, "max": 28.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009347 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 23.23, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 9.4, \"min\": 2.8, \"max\": 28.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad584_1944", "family": "bracket", "tier": 2, "seed": 2468009348, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "3501f5416e73936e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13400.0, "surface_area": 7790.0, "principal_moments": [2920000.0, 3190000.0, 4520000.0], "n_faces": 19, "n_edges": 51, "n_vertices": 34}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 43.58, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.7, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009348 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 43.58, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.7, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad585_1945", "family": "block", "tier": 1, "seed": 2468009349, "symmetry": "none", "op_count": 2, "ir_hash": "9f0227d5ee827153", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 250000.0, "surface_area": 30200.0, "principal_moments": [140000000.0, 187000000.0, 227000000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 80.74, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 65.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 49.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 4, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009349 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80.74, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 65.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 49.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 20.2\n _ssy = 22.2\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad586_1946", "family": "revolved", "tier": 2, "seed": 2468009350, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "bd64f8738130f612", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6320.0, "surface_area": 2910.0, "principal_moments": [436000.0, 436000.0, 592000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 25, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 19.3, "min": 5.8, "max": 57.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009350 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 19.3, \"min\": 5.8, \"max\": 57.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad587_1947", "family": "revolved", "tier": 2, "seed": 2468009351, "symmetry": "none", "op_count": 2, "ir_hash": "24c902e91e6d73ee", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 113000.0, "surface_area": 27700.0, "principal_moments": [25699999.999999996, 151000000.0, 151000000.0], "n_faces": 9, "n_edges": 14, "n_vertices": 9}, "params": {"outer_d": {"type": "float", "default": 39.2, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 143.0, "min": 42.9, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "groove_depth": {"type": "float", "default": 2.54, "min": 1.02, "max": 7.62, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 7.75, "min": 3.1, "max": 23.25, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 78.1, "min": 21.4, "max": 121.5, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 1.4, "min": 0.1, "max": 4.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009351 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 39.2, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 143.0, \"min\": 42.9, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 2.54, \"min\": 1.02, \"max\": 7.62, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 7.75, \"min\": 3.1, \"max\": 23.25, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 78.1, \"min\": 21.4, \"max\": 121.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.4, \"min\": 0.1, \"max\": 4.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad58a_1950", "family": "revolved", "tier": 0, "seed": 2468009354, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "589cec90c016986e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 67500.0, "surface_area": 18400.0, "principal_moments": [12399999.999999998, 50699999.99999999, 50699999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 35, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 105.3, "min": 31.6, "max": 315.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009354 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 105.3, \"min\": 31.6, \"max\": 315.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad58c_1952", "family": "threaded", "tier": 0, "seed": 2468009356, "symmetry": "none", "op_count": 1, "ir_hash": "fb5870eb0ed20597", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 536.0, "surface_area": 679.0, "principal_moments": [1990.0, 25400.0, 25400.0], "n_faces": 240, "n_edges": 614, "n_vertices": 376}, "params": {"major_d": {"type": "float", "default": 6.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.0, "min": 0.5, "max": 2.0, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 23.5, "min": 9.4, "max": 47.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009356 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 6.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.5, \"max\": 2.0, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 23.5, \"min\": 9.4, \"max\": 47.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad58d_1953", "family": "bracket", "tier": 1, "seed": 2468009357, "symmetry": "none", "op_count": 1, "ir_hash": "045780566e479fe4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14500.0, "surface_area": 5860.0, "principal_moments": [2380000.0, 8220000.0, 9970000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 62.19, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 59.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 16.03, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 6.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009357 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 62.19, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 59.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 16.03, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 6.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad58f_1955", "family": "plate", "tier": 0, "seed": 2468009359, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "40ebafb11361270a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7720.0, "surface_area": 3440.0, "principal_moments": [666000.0, 1090000.0, 1710000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 40.72, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 31.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009359 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40.72, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 31.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad590_1956", "family": "plate", "tier": 1, "seed": 2468009360, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "2fbdcbe1a104b8c4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11100.0, "surface_area": 5730.0, "principal_moments": [1160000.0, 3900000.0, 5010000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 35.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 7.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009360 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 35.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 7.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad591_1957", "family": "compound", "tier": 2, "seed": 2468009361, "symmetry": "none", "op_count": 3, "ir_hash": "6e2a7a4c6e7f2307", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 42700.0, "surface_area": 12800.0, "principal_moments": [9160000.0, 16599999.999999998, 18800000.0], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"base_w": {"type": "float", "default": 64.24, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 42.1, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 16.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_d": {"type": "float", "default": 13.7, "min": 5.5, "max": 21.1, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 36.0, "min": 10.8, "max": 108.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 7.6, "min": 2.0, "max": 9.9, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 9.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009361 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 64.24, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 42.1, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 16.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 13.7, \"min\": 5.5, \"max\": 21.1, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 36.0, \"min\": 10.8, \"max\": 108.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 7.6, \"min\": 2.0, \"max\": 9.9, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 9.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad592_1958", "family": "bracket", "tier": 1, "seed": 2468009362, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "6abaa91f53d0572b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26900.0, "surface_area": 9060.0, "principal_moments": [5510000.0, 13599999.999999998, 13599999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 48.53, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 56.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009362 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 48.53, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 56.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad595_1961", "family": "compound", "tier": 2, "seed": 2468009365, "symmetry": "none", "op_count": 5, "ir_hash": "35c26478d3b459ad", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 508000.0, "surface_area": 51900.0, "principal_moments": [539000000.0, 563000000.0, 580000000.0], "n_faces": 42, "n_edges": 112, "n_vertices": 73}, "params": {"block_w": {"type": "float", "default": 84.28, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 79.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 78.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 10.3, "min": 5.2, "max": 17.6, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 12.6, "min": 4.8, "max": 57.1, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 9.9, "min": 2.0, "max": 13.7, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009365 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 84.28, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 79.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 78.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 10.3, \"min\": 5.2, \"max\": 17.6, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 12.6, \"min\": 4.8, \"max\": 57.1, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 9.9, \"min\": 2.0, \"max\": 13.7, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad597_1963", "family": "ribbed", "tier": 1, "seed": 2468009367, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "cf33166c77501ab5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23300.0, "surface_area": 10100.0, "principal_moments": [4480000.0, 8080000.0, 11599999.999999998], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 44.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 10.8, "min": 4.3, "max": 21.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.7, "min": 1.0, "max": 11.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009367 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 44.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 10.8, \"min\": 4.3, \"max\": 21.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.7, \"min\": 1.0, \"max\": 11.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad598_1964", "family": "bracket", "tier": 1, "seed": 2468009368, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "717cec0a543b3bb6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23800.0, "surface_area": 9850.0, "principal_moments": [5080000.0, 7330000.0, 7880000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 29.72, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 31.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 50, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009368 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 29.72, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 31.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad599_1965", "family": "bracket", "tier": 1, "seed": 2468009369, "symmetry": "none", "op_count": 1, "ir_hash": "4c8f055e0e34205c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29100.0, "surface_area": 13900.0, "principal_moments": [11699999.999999998, 37300000.0, 43000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 87.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 85.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 5.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009369 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 87.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 85.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 5.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad59e_1970", "family": "flanged", "tier": 1, "seed": 2468009374, "symmetry": "radial", "op_count": 2, "ir_hash": "a75513904acc1c55", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 404000.0, "surface_area": 60500.0, "principal_moments": [558000000.0, 558000000.0, 604000000.0], "n_faces": 10, "n_edges": 21, "n_vertices": 14}, "params": {"outer_d": {"type": "float", "default": 75, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 79.6, "min": 23.9, "max": 199.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 29.9, "min": 2.0, "max": 52.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 145.8, "min": 97.5, "max": 225.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.8, "min": 2.6, "max": 31.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 43.7, "min": 29.2, "max": 65.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009374 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 75, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 79.6, \"min\": 23.9, \"max\": 199.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 29.9, \"min\": 2.0, \"max\": 52.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 145.8, \"min\": 97.5, \"max\": 225.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.8, \"min\": 2.6, \"max\": 31.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 43.7, \"min\": 29.2, \"max\": 65.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad5a0_1972", "family": "block", "tier": 2, "seed": 2468009376, "symmetry": "none", "op_count": 3, "ir_hash": "01f60c1de2c598dd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13300.0, "surface_area": 5230.0, "principal_moments": [828000.0, 2490000.0, 3000000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 12.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 45.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.3, "min": 2.0, "max": 2.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009376 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 12.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 45.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.3, \"min\": 2.0, \"max\": 2.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.10441405273179663)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5a1_1973", "family": "plate", "tier": 1, "seed": 2468009377, "symmetry": "none", "op_count": 2, "ir_hash": "a9d3e1b1bea36590", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 40100.0, "surface_area": 12700.0, "principal_moments": [10700000.0, 27199999.999999996, 37500000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 90, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 56.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 12.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009377 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 90, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 56.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 12.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5a5_1977", "family": "plate", "tier": 0, "seed": 2468009381, "symmetry": "none", "op_count": 1, "ir_hash": "421913aa89ec8f3c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12400.0, "surface_area": 6090.0, "principal_moments": [1030000.0, 6660000.0, 7640000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 31.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009381 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 31.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad5a6_1978", "family": "gear", "tier": 2, "seed": 2468009382, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "433318c85affd262", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 189000.0, "surface_area": 32200.0, "principal_moments": [178000000.0, 178000000.0, 346000000.0], "n_faces": 213, "n_edges": 528, "n_vertices": 317}, "params": {"module": {"type": "float", "default": 5.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 21, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 17.1, "min": 6.8, "max": 42.8, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 26.0, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.01, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 1.05, "min": 0.0, "max": 2.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 13.7, "min": 2.0, "max": 55.5, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009382 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 5.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 21, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 17.1, \"min\": 6.8, \"max\": 42.8, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 26.0, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.01, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 1.05, \"min\": 0.0, \"max\": 2.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 13.7, \"min\": 2.0, \"max\": 55.5, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=True, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5a8_1980", "family": "bracket", "tier": 1, "seed": 2468009384, "symmetry": "none", "op_count": 1, "ir_hash": "f476a093e79d184b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 32900.0, "surface_area": 18200.0, "principal_moments": [11899999.999999998, 34500000.0, 39200000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 51.85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 56.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 55, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 49.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009384 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 51.85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 56.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 49.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad5a9_1981", "family": "profiled", "tier": 2, "seed": 2468009385, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "1b2ebed479aa99d2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 204000.0, "surface_area": 42400.0, "principal_moments": [61899999.99999999, 477000000.0, 477000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 45, "min": 22.5, "max": 90.0, "step": 1.0, "group": "Profile", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 192.1, "min": 57.6, "max": 576.3, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009385 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45, \"min\": 22.5, \"max\": 90.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 192.1, \"min\": 57.6, \"max\": 576.3, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5ac_1984", "family": "bracket", "tier": 1, "seed": 2468009388, "symmetry": "none", "op_count": 1, "ir_hash": "526677a90256826f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39200.0, "surface_area": 14300.0, "principal_moments": [30899999.999999996, 52899999.99999999, 81200000.0], "n_faces": 13, "n_edges": 33, "n_vertices": 22}, "params": {"base_len": {"type": "float", "default": 89.97, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 86.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009388 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 89.97, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 86.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5ae_1986", "family": "bracket", "tier": 2, "seed": 2468009390, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "95850213b4d48af9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 8330.0, "surface_area": 4050.0, "principal_moments": [863000.0, 1040000.0, 1140000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 25.45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 25.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 22.89, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 9.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 5.6, "min": 3.0, "max": 11.4, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009390 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 25.45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 25.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 22.89, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 9.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.6, \"min\": 3.0, \"max\": 11.4, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert1 = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n vert2 = (cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n .translate((_bl - _bt, 0, 0)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - 2 * _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [_bl / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert1 = (vert1.faces('X').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(0, z - _vl / 2) for z in _zs]).hole(_hd))\n result = base.union(vert1).union(vert2)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl / 2, _vl) * 0.55 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bl - _bt, _bt).lineTo(_bl - _bt - _g, _bt)\n .lineTo(_bl - _bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad5af_1987", "family": "revolved", "tier": 2, "seed": 2468009391, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "16233a5710f5be6c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 146000.0, "surface_area": 26800.0, "principal_moments": [32999999.999999996, 262000000.0, 262000000.0], "n_faces": 8, "n_edges": 12, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 40, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 140.2, "min": 42.1, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 15.3, "min": 2.0, "max": 28.0, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "groove_depth": {"type": "float", "default": 2.26, "min": 0.9, "max": 6.78, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 15.13, "min": 6.05, "max": 45.39, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 85.6, "min": 21.0, "max": 119.2, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009391 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 140.2, \"min\": 42.1, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 15.3, \"min\": 2.0, \"max\": 28.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 2.26, \"min\": 0.9, \"max\": 6.78, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 15.13, \"min\": 6.05, \"max\": 45.39, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 85.6, \"min\": 21.0, \"max\": 119.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad5b0_1988", "family": "revolved", "tier": 1, "seed": 2468009392, "symmetry": "radial", "op_count": 1, "ir_hash": "6a55954d4f4a2ef2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 123000.0, "surface_area": 21600.0, "principal_moments": [36400000.0, 152000000.0, 152000000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"outer_d": {"type": "float", "default": 30.99, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 110.7, "min": 33.2, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 9.6, "min": 2.0, "max": 21.7, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 59.1, "min": 37.2, "max": 93.0, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 23.9, "min": 7.2, "max": 55.4, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009392 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30.99, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 110.7, \"min\": 33.2, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 9.6, \"min\": 2.0, \"max\": 21.7, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 59.1, \"min\": 37.2, \"max\": 93.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 23.9, \"min\": 7.2, \"max\": 55.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5b1_1989", "family": "plate", "tier": 1, "seed": 2468009393, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "0db170db3da3d8f3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39600.0, "surface_area": 12900.0, "principal_moments": [10900000.0, 25699999.999999996, 36300000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 88.48, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 57.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 12.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009393 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 88.48, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 57.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 12.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5b2_1990", "family": "plate", "tier": 2, "seed": 2468009394, "symmetry": "none", "op_count": 3, "ir_hash": "f41efa3feea1edb5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25100.0, "surface_area": 10500.0, "principal_moments": [4330000.0, 18600000.0, 22799999.999999996], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 45.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 10.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009394 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 45.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 10.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.06316207959080344)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5b3_1991", "family": "plate", "tier": 2, "seed": 2468009395, "symmetry": "radial", "op_count": 3, "ir_hash": "88266ec98137fa0f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18200.0, "surface_area": 5400.0, "principal_moments": [1750000.0, 4050000.0, 5360000.0], "n_faces": 20, "n_edges": 54, "n_vertices": 36}, "params": {"plate_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 32.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 15.0, "min": 10.0, "max": 22.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009395 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 32.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 15.0, \"min\": 10.0, \"max\": 22.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.10883421412457159)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5b4_1992", "family": "bracket", "tier": 2, "seed": 2468009396, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "2dfad79fe69ad60e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 23300.0, "surface_area": 16800.0, "principal_moments": [8210000.0, 18700000.0, 23499999.999999996], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 53.79, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 41.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 58.11, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 42.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 2.5, "min": 1.5, "max": 9.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009396 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 53.79, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 41.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 58.11, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 42.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.5, \"max\": 9.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad5b5_1993", "family": "block", "tier": 1, "seed": 2468009397, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "a6ea4fee701a33fc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35800.0, "surface_area": 9230.0, "principal_moments": [4330000.0, 9970000.0, 11399999.999999998], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 31.37, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 22.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 53.4, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009397 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 31.37, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 22.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 53.4, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad5b6_1994", "family": "revolved", "tier": 0, "seed": 2468009398, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "51fa1ed49d6cd1c0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10100.0, "surface_area": 4230.0, "principal_moments": [1290000.0, 1290000.0, 2410000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 40, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 12.0, "min": 3.6, "max": 36.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009398 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 12.0, \"min\": 3.6, \"max\": 36.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad5b8_1996", "family": "ribbed", "tier": 1, "seed": 2468009400, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "e38034c102b843eb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18700.0, "surface_area": 10100.0, "principal_moments": [2910000.0, 3320000.0, 4500000.0], "n_faces": 31, "n_edges": 72, "n_vertices": 48}, "params": {"base_w": {"type": "float", "default": 40, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 39.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.9, "min": 6.8, "max": 33.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.4, "min": 1.0, "max": 8.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009400 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 39.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.9, \"min\": 6.8, \"max\": 33.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.4, \"min\": 1.0, \"max\": 8.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad5ba_1998", "family": "gear", "tier": 0, "seed": 2468009402, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "5f4402db368d0f53", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5890.0, "surface_area": 2880.0, "principal_moments": [328000.0, 328000.0, 549000.0], "n_faces": 110, "n_edges": 324, "n_vertices": 216}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 18, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 10.5, "min": 4.2, "max": 26.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009402 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 18, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 10.5, \"min\": 4.2, \"max\": 26.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5bb_1999", "family": "bracket", "tier": 1, "seed": 2468009403, "symmetry": "none", "op_count": 1, "ir_hash": "42128d977b8a6732", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 25600.0, "surface_area": 9140.0, "principal_moments": [2600000.0, 22100000.0, 22200000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 34.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 56.2, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009403 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 34.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 56.2, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5bc_2000", "family": "plate", "tier": 1, "seed": 2468009404, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "06e6f41dbe2b7c53", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1790.0, "surface_area": 1670.0, "principal_moments": [63400.0, 141000.0, 202000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 31.35, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 20.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 3.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009404 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 31.35, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 20.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad5bd_2001", "family": "block", "tier": 1, "seed": 2468009405, "symmetry": "none", "op_count": 2, "ir_hash": "2da5ed221a61e015", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 609000.0, "surface_area": 50900.0, "principal_moments": [672000000.0, 721000000.0, 967000000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 95, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 64.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009405 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 95, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 64.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 35.6\n _ssy = 41.4\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad5be_2002", "family": "block", "tier": 1, "seed": 2468009406, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "455dda33d517d923", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1790.0, "surface_area": 1240.0, "principal_moments": [29900.0, 66700.0, 74300.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 19.64, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 8.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 11.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009406 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 19.64, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 8.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 11.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5c0_2004", "family": "plate", "tier": 1, "seed": 2468009408, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "8fcd5a81af54b22c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14900.0, "surface_area": 5250.0, "principal_moments": [1610000.0, 2570000.0, 3930000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 44.99, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 35.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 7.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009408 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 44.99, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 35.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 7.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad5c1_2005", "family": "compound", "tier": 1, "seed": 2468009409, "symmetry": "none", "op_count": 2, "ir_hash": "ffa8bcbfb5f5a91a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11900.0, "surface_area": 3460.0, "principal_moments": [519000.0, 2710000.0, 2710000.0], "n_faces": 5, "n_edges": 6, "n_vertices": 4}, "params": {"shaft_d": {"type": "float", "default": 20, "min": 10.0, "max": 36.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 31.6, "min": 12.6, "max": 63.2, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 9.5, "min": 4.8, "max": 18.0, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 28.2, "min": 8.5, "max": 70.5, "step": 1.0, "group": "Step", "label": "Step length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009409 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 20, \"min\": 10.0, \"max\": 36.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 31.6, \"min\": 12.6, \"max\": 63.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 9.5, \"min\": 4.8, \"max\": 18.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 28.2, \"min\": 8.5, \"max\": 70.5, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5c2_2006", "family": "plate", "tier": 1, "seed": 2468009410, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "290d700b20b65cce", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2390.0, "surface_area": 1540.0, "principal_moments": [66900.0, 120000.0, 172000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 24.28, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 17.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009410 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 24.28, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 17.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5c3_2007", "family": "plate", "tier": 1, "seed": 2468009411, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "3ad4cef92f46e3cc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 59700.0, "surface_area": 18600.0, "principal_moments": [30399999.999999996, 47299999.99999999, 77200000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 97.95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 78.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009411 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 97.95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 78.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad5c4_2008", "family": "block", "tier": 1, "seed": 2468009412, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "9d592a63aa451766", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12900.0, "surface_area": 5450.0, "principal_moments": [975000.0, 1400000.0, 1670000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 25, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 18.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 31.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 5.5, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009412 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 18.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 31.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 5.5, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad5c5_2009", "family": "enclosure", "tier": 1, "seed": 2468009413, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "12961c825313d459", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 36100.0, "surface_area": 32000.0, "principal_moments": [17400000.0, 44400000.0, 45699999.99999999], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 93.78, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 37.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 50.3, "min": 20.1, "max": 100.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009413 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 93.78, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 37.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 50.3, \"min\": 20.1, \"max\": 100.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad5c6_2010", "family": "compound", "tier": 1, "seed": 2468009414, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "927adf6afd10fe87", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 117000.0, "surface_area": 17000.0, "principal_moments": [44700000.0, 47099999.99999999, 52499999.99999999], "n_faces": 22, "n_edges": 58, "n_vertices": 38}, "params": {"block_w": {"type": "float", "default": 50, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 52.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 44.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 7.2, "min": 3.6, "max": 10.1, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 9.1, "min": 2.9, "max": 34.9, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 5.2, "min": 2.0, "max": 8.4, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009414 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 52.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 44.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 7.2, \"min\": 3.6, \"max\": 10.1, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 9.1, \"min\": 2.9, \"max\": 34.9, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.0, \"max\": 8.4, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad5c8_2012", "family": "ribbed", "tier": 1, "seed": 2468009416, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f2401bf496b5a995", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 47100.0, "surface_area": 18300.0, "principal_moments": [12999999.999999998, 18600000.0, 27199999.999999996], "n_faces": 31, "n_edges": 72, "n_vertices": 48}, "params": {"base_w": {"type": "float", "default": 65, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 52.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.5, "min": 6.6, "max": 33.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.0, "min": 1.0, "max": 7.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009416 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 65, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 52.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.5, \"min\": 6.6, \"max\": 33.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 7.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad5c9_2013", "family": "block", "tier": 1, "seed": 2468009417, "symmetry": "none", "op_count": 2, "ir_hash": "fcf92eb73c652954", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 78100.0, "surface_area": 14800.0, "principal_moments": [20600000.0, 26999999.999999996, 37000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 49.02, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 28.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 57.7, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009417 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 49.02, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 28.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 57.7, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad5ca_2014", "family": "threaded", "tier": 1, "seed": 2468009418, "symmetry": "none", "op_count": 1, "ir_hash": "b13d4aff50a7678c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3140.0, "surface_area": 2010.0, "principal_moments": [47600.0, 314000.0, 314000.0], "n_faces": 200, "n_edges": 510, "n_vertices": 312}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 33.5, "min": 13.4, "max": 67.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009418 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 33.5, \"min\": 13.4, \"max\": 67.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad5cc_2016", "family": "revolved", "tier": 1, "seed": 2468009420, "symmetry": "none", "op_count": 1, "ir_hash": "a903ead60b2206ab", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 71300.0, "surface_area": 16100.0, "principal_moments": [21600000.0, 29899999.999999996, 29899999.999999996], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 45, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 67.2, "min": 20.2, "max": 201.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009420 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 67.2, \"min\": 20.2, \"max\": 201.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad5cd_2017", "family": "revolved", "tier": 1, "seed": 2468009421, "symmetry": "none", "op_count": 1, "ir_hash": "43852454d469e9c6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 250000.0, "surface_area": 43500.0, "principal_moments": [113000000.0, 425000000.0, 425000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 55, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 157.7, "min": 47.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009421 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 55, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 157.7, \"min\": 47.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad5ce_2018", "family": "gear", "tier": 0, "seed": 2468009422, "symmetry": "none", "op_count": 1, "ir_hash": "f43dbe39d6744598", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3140.0, "surface_area": 2230.0, "principal_moments": [184000.0, 184000.0, 357000.0], "n_faces": 146, "n_edges": 432, "n_vertices": 288}, "params": {"module": {"type": "float", "default": 1.25, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 24, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 4.5, "min": 1.8, "max": 11.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009422 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.25, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 24, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.8, \"max\": 11.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad5cf_2019", "family": "block", "tier": 1, "seed": 2468009423, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "bcb33ed13f65a768", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 518000.0, "surface_area": 53800.0, "principal_moments": [492000000.0, 593000000.0, 762000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 88.97, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 62.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009423 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 88.97, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 62.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5d0_2020", "family": "plate", "tier": 1, "seed": 2468009424, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "a465fe0a50c4a2dd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 46500.0, "surface_area": 12600.0, "principal_moments": [9710000.0, 27399999.999999996, 36000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 49.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 10.5, "min": 2.0, "max": 11.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009424 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 49.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 10.5, \"min\": 2.0, \"max\": 11.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad5d1_2021", "family": "compound", "tier": 2, "seed": 2468009425, "symmetry": "mirror_x", "op_count": 4, "ir_hash": "937c6981bbb71c45", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 58600.0, "surface_area": 17800.0, "principal_moments": [35800000.0, 44300000.0, 49299999.99999999], "n_faces": 27, "n_edges": 72, "n_vertices": 48}, "params": {"base_w": {"type": "float", "default": 80, "min": 30.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 69.2, "min": 25.0, "max": 160.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_h": {"type": "float", "default": 8.0, "min": 3.0, "max": 30.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "col_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Column", "label": "Column sides"}, "col_r": {"type": "float", "default": 10.1, "min": 5.0, "max": 17.3, "step": 1.0, "group": "Column", "label": "Column circumradius (mm)"}, "col_h": {"type": "float", "default": 72.4, "min": 21.7, "max": 217.2, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "hole_d": {"type": "float", "default": 13.0, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009425 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 80, \"min\": 30.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 69.2, \"min\": 25.0, \"max\": 160.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 30.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"col_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Column', \"label\": 'Column sides'},\n \"col_r\": {\"type\": 'float', \"default\": 10.1, \"min\": 5.0, \"max\": 17.3, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column circumradius (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 72.4, \"min\": 21.7, \"max\": 217.2, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 13.0, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_h\"])\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"col_sides\"], p[\"col_r\"] * 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"base_w\"], p[\"base_d\"]) * 0.06742683223491237)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad5d2_2022", "family": "gear", "tier": 1, "seed": 2468009426, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "5a1a15e912345d35", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 180000.0, "surface_area": 32200.0, "principal_moments": [140000000.0, 140000000.0, 268000000.0], "n_faces": 165, "n_edges": 489, "n_vertices": 326}, "params": {"module": {"type": "float", "default": 4.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 27, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 20.2, "min": 8.1, "max": 50.5, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 13.4, "min": 2.0, "max": 58.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009426 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 27, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 20.2, \"min\": 8.1, \"max\": 50.5, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 13.4, \"min\": 2.0, \"max\": 58.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad5d3_2023", "family": "threaded", "tier": 2, "seed": 2468009427, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "60bfda9b7e08d467", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1600.0, "surface_area": 1640.0, "principal_moments": [10500.0, 225000.0, 225000.0], "n_faces": 230, "n_edges": 588, "n_vertices": 360}, "params": {"thread_size": {"type": "enum", "default": "5/16", "choices": ["1/4", "5/16", "3/8", "1/2", "5/8", "3/4", "7/8", "1", "1 1/4", "1 1/2"], "group": "Thread", "label": "Size designation"}, "thread_len": {"type": "float", "default": 41.0, "min": 16.4, "max": 82.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009427 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"thread_size\": {\"type\": 'enum', \"default\": '5/16', \"choices\": ['1/4', '5/16', '3/8', '1/2', '5/8', '3/4', '7/8', '1', '1 1/4', '1 1/2'], \"group\": 'Thread', \"label\": 'Size designation'},\n \"thread_len\": {\"type\": 'float', \"default\": 41.0, \"min\": 16.4, \"max\": 82.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.AcmeThread(size=p[\"thread_size\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5d4_2024", "family": "plate", "tier": 2, "seed": 2468009428, "symmetry": "none", "op_count": 3, "ir_hash": "5753c8b2a3dec7c4", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5180.0, "surface_area": 2730.0, "principal_moments": [189000.0, 828000.0, 986000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 43.77, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 20.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.3, "min": 2.0, "max": 2.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 2, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009428 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 43.77, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 20.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.3, \"min\": 2.0, \"max\": 2.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 2, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(17.5, 16.3, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.11041845971997011)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5d5_2025", "family": "bracket", "tier": 1, "seed": 2468009429, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "891ccf6e5ab12afc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 38300.0, "surface_area": 14900.0, "principal_moments": [15899999.999999998, 23299999.999999996, 30399999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 62.21, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 50.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 60.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009429 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 62.21, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 50.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 60.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad5d7_2027", "family": "ribbed", "tier": 2, "seed": 2468009431, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "162b60bdabc0612c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 48700.0, "surface_area": 21400.0, "principal_moments": [14599999.999999998, 24899999.999999996, 34600000.0], "n_faces": 54, "n_edges": 148, "n_vertices": 92}, "params": {"base_w": {"type": "float", "default": 75, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 51.5, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 17.4, "min": 7.0, "max": 34.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.5, "min": 1.0, "max": 8.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 11.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009431 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 75, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 51.5, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 17.4, \"min\": 7.0, \"max\": 34.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 1.0, \"max\": 8.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 11.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad5d9_2029", "family": "block", "tier": 1, "seed": 2468009433, "symmetry": "none", "op_count": 2, "ir_hash": "08b6aa359cc7e0ba", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12300.0, "surface_area": 5520.0, "principal_moments": [812000.0, 1470000.0, 1610000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 22.41, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 19.0, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 33.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 5.6, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009433 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 22.41, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 19.0, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 33.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 5.6, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad5da_2030", "family": "gear", "tier": 1, "seed": 2468009434, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "dae031703dea2162", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24000.0, "surface_area": 8700.0, "principal_moments": [5370000.0, 5370000.0, 10300000.0], "n_faces": 117, "n_edges": 345, "n_vertices": 230}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 19, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 10.0, "min": 4.0, "max": 25.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 11.3, "min": 2.0, "max": 29.7, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009434 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 19, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 10.0, \"min\": 4.0, \"max\": 25.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 11.3, \"min\": 2.0, \"max\": 29.7, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad5db_2031", "family": "enclosure", "tier": 2, "seed": 2468009435, "symmetry": "none", "op_count": 3, "ir_hash": "b8b78a4129f4e6bc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5340.0, "surface_area": 4080.0, "principal_moments": [308000.0, 596000.0, 642000.0], "n_faces": 19, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 30.0, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 15.0, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 19.1, "min": 7.6, "max": 38.2, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.7, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009435 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 30.0, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 15.0, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 19.1, \"min\": 7.6, \"max\": 38.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.7, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad5dc_2032", "family": "revolved", "tier": 2, "seed": 2468009436, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f7d7ca21e7dd834d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 302.0, "surface_area": 355.0, "principal_moments": [3340.0, 3340.0, 6090.0], "n_faces": 5, "n_edges": 8, "n_vertices": 5}, "params": {"outer_d": {"type": "float", "default": 11.91, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 4.5, "min": 1.3, "max": 13.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "end_chamfer": {"type": "float", "default": 1.0, "min": 0.1, "max": 3.0, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009436 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 11.91, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 4.5, \"min\": 1.3, \"max\": 13.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.0, \"min\": 0.1, \"max\": 3.0, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z or 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5e2_2038", "family": "bracket", "tier": 1, "seed": 2468009442, "symmetry": "none", "op_count": 1, "ir_hash": "713912298d9281a9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20600.0, "surface_area": 7710.0, "principal_moments": [3890000.0, 16399999.999999998, 18900000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 57.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009442 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 57.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5e6_2042", "family": "bracket", "tier": 1, "seed": 2468009446, "symmetry": "none", "op_count": 1, "ir_hash": "1847b10ba824dfab", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33400.0, "surface_area": 13200.0, "principal_moments": [11599999.999999998, 13699999.999999998, 22300000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 35, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 36.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 60.0, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 33.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009446 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 35, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 36.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 60.0, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 33.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5e7_2043", "family": "plate", "tier": 0, "seed": 2468009447, "symmetry": "radial", "op_count": 1, "ir_hash": "5470c5b2d20da19b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1700.0, "surface_area": 1070.0, "principal_moments": [29700.0, 92100.0, 115000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 25, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 13.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009447 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 25, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 13.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad5e8_2044", "family": "compound", "tier": 1, "seed": 2468009448, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "8f9bf612e58150a2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31300.0, "surface_area": 8000.0, "principal_moments": [4270000.0, 6090000.0, 7050000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 40, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 31.6, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 25.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "tab_a": {"type": "float", "default": 20.9, "min": 8.4, "max": 33.4, "step": 1.0, "group": "Tab", "label": "Tab width (mm)"}, "tab_b": {"type": "float", "default": 14.7, "min": 5.9, "max": 23.5, "step": 1.0, "group": "Tab", "label": "Tab height (mm)"}, "tab_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Tab", "label": "Tab thickness (mm)"}, "tab_hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.2, "step": 0.1, "group": "Tab", "label": "Tab hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009448 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 31.6, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 25.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"tab_a\": {\"type\": 'float', \"default\": 20.9, \"min\": 8.4, \"max\": 33.4, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab width (mm)'},\n \"tab_b\": {\"type\": 'float', \"default\": 14.7, \"min\": 5.9, \"max\": 23.5, \"step\": 1.0, \"group\": 'Tab', \"label\": 'Tab height (mm)'},\n \"tab_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Tab', \"label\": 'Tab thickness (mm)'},\n \"tab_hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.2, \"step\": 0.1, \"group\": 'Tab', \"label\": 'Tab hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad5ea_2046", "family": "flanged", "tier": 1, "seed": 2468009450, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "99c4f61d08a933c3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29600.0, "surface_area": 12000.0, "principal_moments": [6180000.0, 8450000.0, 8450000.0], "n_faces": 21, "n_edges": 78, "n_vertices": 52}, "params": {"outer_d": {"type": "float", "default": 33.0, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 42.8, "min": 12.8, "max": 107.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 11.2, "min": 2.0, "max": 23.1, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 55.7, "min": 42.9, "max": 99.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.2, "min": 1.3, "max": 17.1, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 16.7, "min": 11.1, "max": 25.1, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009450 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 33.0, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 42.8, \"min\": 12.8, \"max\": 107.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 11.2, \"min\": 2.0, \"max\": 23.1, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 55.7, \"min\": 42.9, \"max\": 99.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.2, \"min\": 1.3, \"max\": 17.1, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 16.7, \"min\": 11.1, \"max\": 25.1, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5eb_2047", "family": "bracket", "tier": 2, "seed": 2468009451, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "1ab4c9985d0f2370", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 63400.0, "surface_area": 24400.0, "principal_moments": [28099999.999999996, 138000000.0, 143000000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 85, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 47.1, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 56.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 5.7, "min": 3.0, "max": 18.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009451 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 85, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 47.1, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 56.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.7, \"min\": 3.0, \"max\": 18.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad5ec_2048", "family": "enclosure", "tier": 2, "seed": 2468009452, "symmetry": "mirror_xy", "op_count": 4, "ir_hash": "65b07bec5faeb593", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 99500.0, "surface_area": 34400.0, "principal_moments": [54999999.99999999, 83200000.0, 101000000.0], "n_faces": 42, "n_edges": 124, "n_vertices": 85}, "params": {"enc_w": {"type": "float", "default": 82.73, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 40.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 57.5, "min": 23.0, "max": 115.0, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 5.7, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 2.0, "max": 9.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009452 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 82.73, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 40.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 57.5, \"min\": 23.0, \"max\": 115.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 5.7, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 2.0, \"max\": 9.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.05416104534114037)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad5ed_2049", "family": "ribbed", "tier": 1, "seed": 2468009453, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "8da7f0ff91a7aad3", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18300.0, "surface_area": 7300.0, "principal_moments": [2030000.0, 4650000.0, 5460000.0], "n_faces": 30, "n_edges": 72, "n_vertices": 44}, "params": {"base_w": {"type": "float", "default": 49.26, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 25.3, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 3, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 11.2, "min": 4.5, "max": 22.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.4, "min": 1.0, "max": 11.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009453 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 49.26, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 25.3, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 11.2, \"min\": 4.5, \"max\": 22.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.4, \"min\": 1.0, \"max\": 11.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad5ee_2050", "family": "ribbed", "tier": 1, "seed": 2468009454, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "72490fe398bc047a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26700.0, "surface_area": 17500.0, "principal_moments": [7310000.0, 11399999.999999998, 16800000.0], "n_faces": 46, "n_edges": 112, "n_vertices": 68}, "params": {"base_w": {"type": "float", "default": 69.2, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 50.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 3.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.4, "min": 6.6, "max": 32.8, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.6, "min": 1.0, "max": 9.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009454 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 69.2, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 50.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.4, \"min\": 6.6, \"max\": 32.8, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.6, \"min\": 1.0, \"max\": 9.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad5ef_2051", "family": "ribbed", "tier": 1, "seed": 2468009455, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "37837eaad7fa4afe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 35700.0, "surface_area": 13300.0, "principal_moments": [9760000.0, 11300000.0, 19700000.0], "n_faces": 31, "n_edges": 72, "n_vertices": 48}, "params": {"base_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 57.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 5, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 8.7, "min": 3.5, "max": 17.4, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 3.9, "min": 1.0, "max": 9.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009455 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 57.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 8.7, \"min\": 3.5, \"max\": 17.4, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 3.9, \"min\": 1.0, \"max\": 9.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad5f0_2052", "family": "ribbed", "tier": 1, "seed": 2468009456, "symmetry": "none", "op_count": 2, "ir_hash": "3bce7632c2515b3b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 52000.0, "surface_area": 16500.0, "principal_moments": [13199999.999999998, 35400000.0, 46699999.99999999], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 88.74, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 48.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 10.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 7.1, "min": 2.8, "max": 14.2, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 4.3, "min": 1.0, "max": 10.8, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009456 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 88.74, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 48.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 7.1, \"min\": 2.8, \"max\": 14.2, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 4.3, \"min\": 1.0, \"max\": 10.8, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5f1_2053", "family": "plate", "tier": 0, "seed": 2468009457, "symmetry": "none", "op_count": 1, "ir_hash": "4983ebbf586dc732", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9130.0, "surface_area": 5330.0, "principal_moments": [1720000.0, 1790000.0, 3480000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 48.28, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 47.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009457 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 48.28, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 47.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad5f3_2055", "family": "flanged", "tier": 2, "seed": 2468009459, "symmetry": "none", "op_count": 2, "ir_hash": "beae0a3d1ab9a457", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 50000.0, "surface_area": 16700.0, "principal_moments": [17300000.0, 19900000.0, 19900000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"outer_d": {"type": "float", "default": 35, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 47.0, "min": 14.1, "max": 117.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 13.1, "min": 2.0, "max": 24.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 77.5, "min": 45.5, "max": 105.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 3.3, "min": 1.0, "max": 18.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 23.2, "min": 15.5, "max": 34.9, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009459 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 47.0, \"min\": 14.1, \"max\": 117.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 13.1, \"min\": 2.0, \"max\": 24.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 77.5, \"min\": 45.5, \"max\": 105.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 3.3, \"min\": 1.0, \"max\": 18.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 23.2, \"min\": 15.5, \"max\": 34.9, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad5f4_2056", "family": "compound", "tier": 1, "seed": 2468009460, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "3b6b6453e2e1b909", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 419000.0, "surface_area": 37700.0, "principal_moments": [348000000.0, 411000000.0, 473000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 63.75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 87.0, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 76.2, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 9.1, "min": 4.5, "max": 22.3, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 14.4, "min": 4.7, "max": 63.0, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 9.3, "min": 2.0, "max": 11.3, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009460 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 63.75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 87.0, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 76.2, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 9.1, \"min\": 4.5, \"max\": 22.3, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 14.4, \"min\": 4.7, \"max\": 63.0, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 9.3, \"min\": 2.0, \"max\": 11.3, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"spig_sides\"], p[\"spig_r\"] * 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5f5_2057", "family": "bracket", "tier": 1, "seed": 2468009461, "symmetry": "none", "op_count": 1, "ir_hash": "e38bf6ce2dd303a2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 15200.0, "surface_area": 11500.0, "principal_moments": [3490000.0, 22799999.999999996, 24399999.999999996], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 70, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 66.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 27.39, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 55.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009461 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 70, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 66.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 27.39, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 55.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5f6_2058", "family": "bracket", "tier": 1, "seed": 2468009462, "symmetry": "none", "op_count": 1, "ir_hash": "faf9917a11e59785", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 13100.0, "surface_area": 6220.0, "principal_moments": [2020000.0, 8040000.0, 9150000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 68.86, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 49.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009462 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 68.86, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 49.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad5fa_2062", "family": "plate", "tier": 1, "seed": 2468009466, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "2258c78bc10de6e7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37400.0, "surface_area": 14800.0, "principal_moments": [13799999.999999998, 27999999.999999996, 41600000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 66.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009466 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 66.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad5fb_2063", "family": "revolved", "tier": 0, "seed": 2468009467, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "9a6fa493cdce5224", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19700.0, "surface_area": 6730.0, "principal_moments": [2650000.0, 3360000.0, 3360000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 30, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 41.7, "min": 12.5, "max": 125.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009467 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 30, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 41.7, \"min\": 12.5, \"max\": 125.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad5fc_2064", "family": "bracket", "tier": 1, "seed": 2468009468, "symmetry": "none", "op_count": 1, "ir_hash": "7368c723fbd38db8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9820.0, "surface_area": 7360.0, "principal_moments": [1950000.0, 4020000.0, 4350000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 45, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 46.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 37.22, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009468 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 45, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 46.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 37.22, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad5ff_2067", "family": "compound", "tier": 1, "seed": 2468009471, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "f114a5606d80ab33", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 50000.0, "surface_area": 9060.0, "principal_moments": [10800000.0, 11200000.0, 16900000.0], "n_faces": 13, "n_edges": 26, "n_vertices": 17}, "params": {"block_w": {"type": "float", "default": 44.34, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 45.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 24.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 5.3, "min": 2.1, "max": 11.2, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 4.0, "min": 1.3, "max": 15.9, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 2.7, "min": 2.0, "max": 3.8, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009471 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 44.34, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 45.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 24.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.1, \"max\": 11.2, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 4.0, \"min\": 1.3, \"max\": 15.9, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 2.7, \"min\": 2.0, \"max\": 3.8, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad601_2069", "family": "bracket", "tier": 2, "seed": 2468009473, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "9c1ee41f68351ddf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29600.0, "surface_area": 16300.0, "principal_moments": [10300000.0, 21900000.0, 27899999.999999996], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 40.8, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 57.98, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 37.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}, "gusset_t": {"type": "float", "default": 5.4, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009473 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 40.8, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 57.98, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 37.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n \"gusset_t\": {\"type\": 'float', \"default\": 5.4, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n if p[\"gusset\"]:\n _gt = p[\"gusset_t\"]\n _g = min(_bl, _tl, _vl) * 0.4 - _bt\n if _g > _bt and _gt < _bw:\n gus1 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n gus2 = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(0, _vl - _bt).lineTo(-_g, _vl - _bt)\n .lineTo(0, _vl - _bt - _g).close().extrude(-_gt))\n result = result.union(gus1).union(gus2)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad602_2070", "family": "block", "tier": 2, "seed": 2468009474, "symmetry": "radial", "op_count": 3, "ir_hash": "285618b3ac8a5f5e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 240000.0, "surface_area": 25700.0, "principal_moments": [140000000.0, 162000000.0, 232000000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 80, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 41.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 72.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 24.0, "min": 16.0, "max": 36.0, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009474 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 41.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 72.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 24.0, \"min\": 16.0, \"max\": 36.0, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.11012289518519411)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad603_2071", "family": "compound", "tier": 2, "seed": 2468009475, "symmetry": "none", "op_count": 3, "ir_hash": "7a4aefe54b1350a2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 385000.0, "surface_area": 39400.0, "principal_moments": [285000000.0, 419000000.0, 422000000.0], "n_faces": 9, "n_edges": 18, "n_vertices": 12}, "params": {"block_w": {"type": "float", "default": 67.17, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 85.8, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 66.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_d": {"type": "float", "default": 20.3, "min": 8.1, "max": 46.5, "step": 1.0, "group": "Spigot", "label": "Spigot diameter (mm)"}, "spig_len": {"type": "float", "default": 47.9, "min": 6.1, "max": 81.2, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 11.3, "min": 2.0, "max": 14.6, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009475 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 67.17, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 85.8, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 66.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_d\": {\"type\": 'float', \"default\": 20.3, \"min\": 8.1, \"max\": 46.5, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot diameter (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 47.9, \"min\": 6.1, \"max\": 81.2, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 11.3, \"min\": 2.0, \"max\": 14.6, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"spig_d\"] / 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad606_2074", "family": "ribbed", "tier": 2, "seed": 2468009478, "symmetry": "none", "op_count": 2, "ir_hash": "5d51858230deccf5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 71000.0, "surface_area": 24000.0, "principal_moments": [28699999.999999996, 51799999.99999999, 73900000.0], "n_faces": 38, "n_edges": 92, "n_vertices": 56}, "params": {"base_w": {"type": "float", "default": 89.33, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 61.6, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 8.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 16.3, "min": 6.5, "max": 32.6, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 5.8, "min": 1.0, "max": 14.5, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009478 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 89.33, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 61.6, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 16.3, \"min\": 6.5, \"max\": 32.6, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 5.8, \"min\": 1.0, \"max\": 14.5, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad607_2075", "family": "bracket", "tier": 1, "seed": 2468009479, "symmetry": "none", "op_count": 1, "ir_hash": "f1453aba4894da3e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 19900.0, "surface_area": 14600.0, "principal_moments": [8450000.0, 26099999.999999996, 29199999.999999996], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 81.06, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 89.1, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 40, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009479 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 81.06, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 89.1, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 40, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"enc_w\"], p[\"enc_d\"]) * 0.0876075388291562)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad60b_2079", "family": "revolved", "tier": 2, "seed": 2468009483, "symmetry": "none", "op_count": 1, "ir_hash": "39647c8d40904ae0", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28200.0, "surface_area": 10700.0, "principal_moments": [2650000.0, 13799999.999999998, 13799999.999999998], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 25, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 86.3, "min": 25.9, "max": 258.9, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009483 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 25, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 86.3, \"min\": 25.9, \"max\": 258.9, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad60c_2080", "family": "block", "tier": 1, "seed": 2468009484, "symmetry": "radial", "op_count": 2, "ir_hash": "d0ff970f15fa37b5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9080.0, "surface_area": 4590.0, "principal_moments": [590000.0, 1260000.0, 1460000.0], "n_faces": 16, "n_edges": 42, "n_vertices": 28}, "params": {"block_w": {"type": "float", "default": 36.09, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 15.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 22.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 10.8, "min": 7.2, "max": 16.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 6, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009484 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 36.09, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 15.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 22.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 10.8, \"min\": 7.2, \"max\": 16.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad60d_2081", "family": "compound", "tier": 2, "seed": 2468009485, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "dacf6f851f6c99cb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 225000.0, "surface_area": 24900.0, "principal_moments": [57799999.99999999, 441000000.0, 441000000.0], "n_faces": 12, "n_edges": 24, "n_vertices": 16}, "params": {"shaft_d": {"type": "float", "default": 50.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 76.2, "min": 30.5, "max": 152.4, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 35.3, "min": 17.6, "max": 45.0, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 66.3, "min": 19.9, "max": 165.8, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "head_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Head", "label": "Drive head sides"}, "head_r": {"type": "float", "default": 14.5, "min": 8.7, "max": 16.9, "step": 1.0, "group": "Head", "label": "Drive head circumradius (mm)"}, "head_len": {"type": "float", "default": 19.3, "min": 5.8, "max": 38.6, "step": 1.0, "group": "Head", "label": "Drive head length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009485 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 50.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 76.2, \"min\": 30.5, \"max\": 152.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 35.3, \"min\": 17.6, \"max\": 45.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 66.3, \"min\": 19.9, \"max\": 165.8, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"head_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Head', \"label\": 'Drive head sides'},\n \"head_r\": {\"type\": 'float', \"default\": 14.5, \"min\": 8.7, \"max\": 16.9, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head circumradius (mm)'},\n \"head_len\": {\"type\": 'float', \"default\": 19.3, \"min\": 5.8, \"max\": 38.6, \"step\": 1.0, \"group\": 'Head', \"label\": 'Drive head length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"head_sides\"], p[\"head_r\"] * 2).extrude(p[\"head_len\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad60e_2082", "family": "block", "tier": 1, "seed": 2468009486, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "7e8dfdfd12d73acd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 491000.0, "surface_area": 43900.0, "principal_moments": [442000000.0, 557000000.0, 571000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 75, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 72.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 91.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009486 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 72.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 91.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad60f_2083", "family": "plate", "tier": 0, "seed": 2468009487, "symmetry": "none", "op_count": 1, "ir_hash": "31b257c1f26011a8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1220.0, "surface_area": 770.0, "principal_moments": [13800.0, 45600.0, 52100.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 20.32, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 10.0, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009487 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 20.32, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 10.0, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad610_2084", "family": "enclosure", "tier": 1, "seed": 2468009488, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "43ba3679654d408a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 24500.0, "surface_area": 21800.0, "principal_moments": [9630000.0, 14899999.999999998, 18700000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 65, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 27.4, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 52.9, "min": 21.2, "max": 105.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 2.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009488 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 65, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 27.4, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 52.9, \"min\": 21.2, \"max\": 105.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 2.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad611_2085", "family": "revolved", "tier": 1, "seed": 2468009489, "symmetry": "radial", "op_count": 1, "ir_hash": "edb930c118eb9987", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 743000.0, "surface_area": 97200.0, "principal_moments": [577000000.0, 3600000000.0, 3600000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 71.95, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 274.0, "min": 82.2, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009489 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 71.95, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 274.0, \"min\": 82.2, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad612_2086", "family": "plate", "tier": 2, "seed": 2468009490, "symmetry": "radial", "op_count": 3, "ir_hash": "e5a1b177708d458e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 17100.0, "surface_area": 5570.0, "principal_moments": [1200000.0, 6220000.0, 7130000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"plate_w": {"type": "float", "default": 65.41, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 26.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 19.6, "min": 13.1, "max": 29.4, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009490 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 65.41, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 26.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 19.6, \"min\": 13.1, \"max\": 29.4, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.067420996913379)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad613_2087", "family": "threaded", "tier": 0, "seed": 2468009491, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "31da31f4b1609d1b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 3980.0, "surface_area": 2510.0, "principal_moments": [60500.0, 621000.0, 621000.0], "n_faces": 250, "n_edges": 640, "n_vertices": 392}, "params": {"major_d": {"type": "float", "default": 12.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.75, "min": 0.88, "max": 3.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 42.4, "min": 17.0, "max": 84.8, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009491 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 12.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.75, \"min\": 0.88, \"max\": 3.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 42.4, \"min\": 17.0, \"max\": 84.8, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad614_2088", "family": "plate", "tier": 2, "seed": 2468009492, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "1642bae03500ed0f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14300.0, "surface_area": 4690.0, "principal_moments": [772000.0, 3620000.0, 4050000.0], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 54.2, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 22.6, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009492 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 54.2, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 22.6, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.04494843891283349)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad615_2089", "family": "compound", "tier": 2, "seed": 2468009493, "symmetry": "mirror_x", "op_count": 5, "ir_hash": "3bd029fb7c720f64", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 264000.0, "surface_area": 31300.0, "principal_moments": [160000000.0, 198000000.0, 215000000.0], "n_faces": 21, "n_edges": 49, "n_vertices": 31}, "params": {"block_w": {"type": "float", "default": 75, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 56.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 63.0, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 12.2, "min": 4.9, "max": 25.6, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 10.3, "min": 3.0, "max": 36.6, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 7.2, "min": 2.0, "max": 8.8, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 12.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009493 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 75, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 56.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 63.0, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 12.2, \"min\": 4.9, \"max\": 25.6, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 10.3, \"min\": 3.0, \"max\": 36.6, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 7.2, \"min\": 2.0, \"max\": 8.8, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 12.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad616_2090", "family": "bracket", "tier": 1, "seed": 2468009494, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "bdd59e5b41ca0d39", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11000.0, "surface_area": 6720.0, "principal_moments": [1910000.0, 6600000.0, 7340000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 65, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 50.5, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 25, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009494 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 65, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 50.5, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 25, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.04769239447266694)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad618_2092", "family": "plate", "tier": 2, "seed": 2468009496, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "9ac1fb9cf6bccd83", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 34300.0, "surface_area": 10200.0, "principal_moments": [3880000.0, 27999999.999999996, 31399999.999999996], "n_faces": 18, "n_edges": 44, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 99.48, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 35.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 8.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "cs_angle": {"type": "float", "default": 82.0, "min": 60.0, "max": 120.0, "step": 15.0, "group": "Holes", "label": "Countersink angle (\u00b0)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009496 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 99.48, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 35.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 8.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"cs_angle\": {\"type\": 'float', \"default\": 82.0, \"min\": 60.0, \"max\": 120.0, \"step\": 15.0, \"group\": 'Holes', \"label\": 'Countersink angle (\u00b0)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cskHole(p[\"hole_d\"], p[\"hole_d\"] * 2, p[\"cs_angle\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.059551684522298795)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad619_2093", "family": "revolved", "tier": 2, "seed": 2468009497, "symmetry": "none", "op_count": 2, "ir_hash": "0c159d30cbd8e12b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12600.0, "surface_area": 5790.0, "principal_moments": [1250000.0, 2140000.0, 2140000.0], "n_faces": 11, "n_edges": 17, "n_vertices": 11}, "params": {"outer_d": {"type": "float", "default": 17.77, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 46.6, "min": 14.0, "max": 139.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 33.1, "min": 21.3, "max": 53.3, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.3, "min": 2.5, "max": 23.3, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "groove_depth": {"type": "float", "default": 0.68, "min": 0.27, "max": 2.04, "step": 0.1, "group": "Body", "label": "Groove depth (mm)"}, "groove_w": {"type": "float", "default": 3.9, "min": 1.56, "max": 11.7, "step": 0.2, "group": "Body", "label": "Groove width (mm)"}, "groove_pos": {"type": "float", "default": 31.3, "min": 7.0, "max": 39.6, "step": 1.0, "group": "Body", "label": "Groove position (mm)"}, "end_chamfer": {"type": "float", "default": 0.4, "min": 0.1, "max": 1.2, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009497 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 17.77, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 46.6, \"min\": 14.0, \"max\": 139.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 33.1, \"min\": 21.3, \"max\": 53.3, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.3, \"min\": 2.5, \"max\": 23.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"groove_depth\": {\"type\": 'float', \"default\": 0.68, \"min\": 0.27, \"max\": 2.04, \"step\": 0.1, \"group\": 'Body', \"label\": 'Groove depth (mm)'},\n \"groove_w\": {\"type\": 'float', \"default\": 3.9, \"min\": 1.56, \"max\": 11.7, \"step\": 0.2, \"group\": 'Body', \"label\": 'Groove width (mm)'},\n \"groove_pos\": {\"type\": 'float', \"default\": 31.3, \"min\": 7.0, \"max\": 39.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Groove position (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.4, \"min\": 0.1, \"max\": 1.2, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] - p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2 - p[\"groove_depth\"], p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"groove_pos\"] + p[\"groove_w\"] / 2)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad61b_2095", "family": "block", "tier": 2, "seed": 2468009499, "symmetry": "radial", "op_count": 3, "ir_hash": "1aaaacb5799792fe", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 78100.0, "surface_area": 29000.0, "principal_moments": [22000000.0, 57599999.99999999, 72600000.0], "n_faces": 25, "n_edges": 78, "n_vertices": 52}, "params": {"block_w": {"type": "float", "default": 50.15, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 22.7, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 94.2, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 15.0, "min": 10.0, "max": 22.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "pocket_w": {"type": "float", "default": 23.0, "min": 11.5, "max": 40.1, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 11.9, "min": 6.0, "max": 18.2, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 32.3, "min": 12.9, "max": 80.1, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009499 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50.15, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 22.7, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 94.2, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 15.0, \"min\": 10.0, \"max\": 22.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"pocket_w\": {\"type\": 'float', \"default\": 23.0, \"min\": 11.5, \"max\": 40.1, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 11.9, \"min\": 6.0, \"max\": 18.2, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 32.3, \"min\": 12.9, \"max\": 80.1, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad61c_2096", "family": "gear", "tier": 2, "seed": 2468009500, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "6f9b4e495c1e369d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4840.0, "surface_area": 2740.0, "principal_moments": [283000.0, 283000.0, 509000.0], "n_faces": 115, "n_edges": 339, "n_vertices": 226}, "params": {"module": {"type": "float", "default": 2.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 14, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 8.4, "min": 3.4, "max": 21.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "profile_shift": {"type": "float", "default": -0.01, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.33, "min": 0.0, "max": 1.0, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 5.1, "min": 2.0, "max": 13.8, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009500 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 14, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.4, \"max\": 21.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"profile_shift\": {\"type\": 'float', \"default\": -0.01, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.33, \"min\": 0.0, \"max\": 1.0, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 5.1, \"min\": 2.0, \"max\": 13.8, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad61d_2097", "family": "flanged", "tier": 2, "seed": 2468009501, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "17cbfc3839d25546", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 106000.0, "surface_area": 25600.0, "principal_moments": [59699999.99999999, 59699999.99999999, 80700000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"outer_d": {"type": "float", "default": 46.97, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 44.3, "min": 13.3, "max": 110.8, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.7, "min": 2.0, "max": 32.9, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 96.8, "min": 61.1, "max": 140.9, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 7.9, "min": 2.4, "max": 17.7, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 29.0, "min": 19.4, "max": 43.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009501 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 46.97, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 44.3, \"min\": 13.3, \"max\": 110.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.7, \"min\": 2.0, \"max\": 32.9, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 96.8, \"min\": 61.1, \"max\": 140.9, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 7.9, \"min\": 2.4, \"max\": 17.7, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 29.0, \"min\": 19.4, \"max\": 43.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad61e_2098", "family": "plate", "tier": 2, "seed": 2468009502, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "ffcbbb1c8b6799b8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 31700.0, "surface_area": 11000.0, "principal_moments": [4090000.0, 29399999.999999996, 33099999.999999996], "n_faces": 14, "n_edges": 36, "n_vertices": 24}, "params": {"plate_w": {"type": "float", "default": 106.98, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 39.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 8.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009502 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 106.98, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 39.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 8.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09757814017058278)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad61f_2099", "family": "bracket", "tier": 1, "seed": 2468009503, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "5d61b56ffd120dfc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9190.0, "surface_area": 7030.0, "principal_moments": [1770000.0, 5140000.0, 5650000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 54.78, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 56.6, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 28.52, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009503 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 54.78, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 56.6, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 28.52, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.08497559797499411)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad623_2103", "family": "plate", "tier": 0, "seed": 2468009507, "symmetry": "radial", "op_count": 1, "ir_hash": "312678736fea2b1b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33200.0, "surface_area": 8350.0, "principal_moments": [3380000.0, 20100000.0, 22700000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 84.4, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 32.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 12.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009507 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 84.4, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 32.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 12.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad624_2104", "family": "threaded", "tier": 1, "seed": 2468009508, "symmetry": "none", "op_count": 1, "ir_hash": "a0a934aea0ffb48b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4790.0, "surface_area": 3470.0, "principal_moments": [156000.0, 698000.0, 698000.0], "n_faces": 255, "n_edges": 695, "n_vertices": 442}, "params": {"major_d": {"type": "float", "default": 8.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 1.25, "min": 0.62, "max": 2.5, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 39.5, "min": 15.8, "max": 79.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009508 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 8.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 1.25, \"min\": 0.62, \"max\": 2.5, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 39.5, \"min\": 15.8, \"max\": 79.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=False, end_finishes=(\"fade\", \"fade\"))\n _body = _bd.Cylinder(radius=(p[\"major_d\"]) * 0.9, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _bore = _bd.Cylinder(radius=(p[\"major_d\"]) / 2, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = (_body - _bore) + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad626_2106", "family": "block", "tier": 2, "seed": 2468009510, "symmetry": "none", "op_count": 3, "ir_hash": "88d449cb6e99b55a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 64400.0, "surface_area": 15000.0, "principal_moments": [18100000.0, 23499999.999999996, 24599999.999999996], "n_faces": 22, "n_edges": 63, "n_vertices": 42}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 39.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 39.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 3.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 5, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}, "pocket_w": {"type": "float", "default": 27.8, "min": 13.9, "max": 40.0, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 17.5, "min": 8.8, "max": 31.4, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 23.2, "min": 9.3, "max": 33.6, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009510 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 39.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 39.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 3.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 5, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n \"pocket_w\": {\"type\": 'float', \"default\": 27.8, \"min\": 13.9, \"max\": 40.0, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 17.5, \"min\": 8.8, \"max\": 31.4, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 23.2, \"min\": 9.3, \"max\": 33.6, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 9.4\n _ssy = 7.8\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad628_2108", "family": "compound", "tier": 1, "seed": 2468009512, "symmetry": "none", "op_count": 3, "ir_hash": "b4ea39f0f2e15f88", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 619000.0, "surface_area": 52100.0, "principal_moments": [693000000.0, 781000000.0, 848000000.0], "n_faces": 13, "n_edges": 26, "n_vertices": 17}, "params": {"block_w": {"type": "float", "default": 86.32, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 90.2, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 78.4, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_d": {"type": "float", "default": 24.0, "min": 9.6, "max": 35.3, "step": 1.0, "group": "Ports", "label": "Ports diameter (mm)"}, "port_len": {"type": "float", "default": 25.6, "min": 6.0, "max": 72.0, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 11.6, "min": 2.0, "max": 17.3, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009512 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 86.32, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 90.2, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 78.4, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_d\": {\"type\": 'float', \"default\": 24.0, \"min\": 9.6, \"max\": 35.3, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports diameter (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 25.6, \"min\": 6.0, \"max\": 72.0, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 11.6, \"min\": 2.0, \"max\": 17.3, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"port_d\"] / 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad629_2109", "family": "block", "tier": 1, "seed": 2468009513, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "f30da912eaed23b9", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 157000.0, "surface_area": 24400.0, "principal_moments": [56099999.99999999, 139000000.0, 178000000.0], "n_faces": 11, "n_edges": 27, "n_vertices": 18}, "params": {"block_w": {"type": "float", "default": 60, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 26.5, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 100.0, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.5, "min": 2.0, "max": 2.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 2, "max": 5, "step": 1, "group": "Holes", "label": "Holes per row"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009513 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 60, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 26.5, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 100.0, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.5, \"min\": 2.0, \"max\": 2.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 2, \"max\": 5, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per row'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n _snx = max(2, int(p[\"hole_nx\"]))\n _ssx = 22.5\n _ssy = 22.2\n _spts = (\n [(-_ssx * (_snx - 1) / 2 + _ssx * _i, -_ssy / 2) for _i in range(_snx)]\n + [(-_ssx * (_snx - 2) / 2 + _ssx * _i, _ssy / 2) for _i in range(_snx - 1)]\n )\n result = (\n result.faces('>Z').workplane()\n .pushPoints(_spts)\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad62a_2110", "family": "profiled", "tier": 0, "seed": 2468009514, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "307c0d196c869b2f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14400.0, "surface_area": 4500.0, "principal_moments": [506000.0, 7900000.0, 8190000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 20.0, "min": 10.0, "max": 40.0, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 10, "min": 5.0, "max": 20.0, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 80.6, "min": 24.2, "max": 241.8, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009514 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 20.0, \"min\": 10.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 10, \"min\": 5.0, \"max\": 20.0, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 80.6, \"min\": 24.2, \"max\": 241.8, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad62d_2113", "family": "plate", "tier": 1, "seed": 2468009517, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "342a77fdf0c6a381", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4920.0, "surface_area": 2670.0, "principal_moments": [142000.0, 934000.0, 1050000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 47.83, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 17.8, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 4.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009517 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 47.83, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 17.8, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 4.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad62e_2114", "family": "flanged", "tier": 2, "seed": 2468009518, "symmetry": "none", "op_count": 2, "ir_hash": "b884e402b69cae99", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 120000.0, "surface_area": 26000.0, "principal_moments": [62899999.99999999, 82200000.0, 82200000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"outer_d": {"type": "float", "default": 45, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 65.0, "min": 19.5, "max": 162.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 16.0, "min": 2.0, "max": 31.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 89.3, "min": 58.5, "max": 135.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 6.5, "min": 1.9, "max": 26.0, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 26.8, "min": 17.9, "max": 40.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 8, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009518 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 45, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 65.0, \"min\": 19.5, \"max\": 162.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 2.0, \"max\": 31.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 89.3, \"min\": 58.5, \"max\": 135.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 6.5, \"min\": 1.9, \"max\": 26.0, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 26.8, \"min\": 17.9, \"max\": 40.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad62f_2115", "family": "block", "tier": 1, "seed": 2468009519, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "ec0dbab7f21b629f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 4880.0, "surface_area": 2840.0, "principal_moments": [214000.0, 275000.0, 396000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 24.49, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 11.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 20.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.8, "min": 2.0, "max": 3.2, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009519 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 24.49, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 11.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 20.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.8, \"min\": 2.0, \"max\": 3.2, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad630_2116", "family": "plate", "tier": 0, "seed": 2468009520, "symmetry": "none", "op_count": 1, "ir_hash": "a06dd6d504f19dcc", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18400.0, "surface_area": 7590.0, "principal_moments": [2050000.0, 11100000.0, 13099999.999999998], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 85, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 36.1, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009520 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 85, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 36.1, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad632_2118", "family": "plate", "tier": 1, "seed": 2468009522, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "57736ad49ade27e7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 9280.0, "surface_area": 4040.0, "principal_moments": [360000.0, 2770000.0, 3030000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 20.3, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009522 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 20.3, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad633_2119", "family": "revolved", "tier": 0, "seed": 2468009523, "symmetry": "none", "op_count": 1, "ir_hash": "3d775b626af984fb", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 52600.0, "surface_area": 13300.0, "principal_moments": [12599999.999999998, 18700000.0, 18700000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 39.95, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 63.0, "min": 18.9, "max": 189.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009523 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 39.95, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 63.0, \"min\": 18.9, \"max\": 189.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad634_2120", "family": "enclosure", "tier": 1, "seed": 2468009524, "symmetry": "none", "op_count": 2, "ir_hash": "da5894e875f40266", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 135000.0, "surface_area": 64200.0, "principal_moments": [168000000.0, 242000000.0, 284000000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"enc_w": {"type": "float", "default": 105, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 55.7, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 88.4, "min": 35.4, "max": 176.8, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009524 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 105, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 55.7, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 88.4, \"min\": 35.4, \"max\": 176.8, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad635_2121", "family": "plate", "tier": 1, "seed": 2468009525, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "eee443eac9400519", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2710.0, "surface_area": 1850.0, "principal_moments": [104000.0, 173000.0, 266000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 27.92, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 21.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 4.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009525 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 27.92, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 21.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 4.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad636_2122", "family": "gear", "tier": 1, "seed": 2468009526, "symmetry": "none", "op_count": 1, "ir_hash": "8b72b0d79e45660c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 21900.0, "surface_area": 8130.0, "principal_moments": [4460000.0, 4460000.0, 8610000.0], "n_faces": 225, "n_edges": 669, "n_vertices": 446}, "params": {"module": {"type": "float", "default": 1.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 37, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 9.3, "min": 3.7, "max": 23.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "bore_d": {"type": "float", "default": 7.7, "min": 2.0, "max": 31.0, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009526 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 37, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 9.3, \"min\": 3.7, \"max\": 23.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 7.7, \"min\": 2.0, \"max\": 31.0, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad637_2123", "family": "compound", "tier": 1, "seed": 2468009527, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "c42da321ef644b31", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37400.0, "surface_area": 8700.0, "principal_moments": [7020000.0, 8220000.0, 8220000.0], "n_faces": 6, "n_edges": 9, "n_vertices": 6}, "params": {"shaft_d": {"type": "float", "default": 38.44, "min": 19.2, "max": 69.2, "step": 1.0, "group": "Body", "label": "Shaft diameter (mm)"}, "shaft_len": {"type": "float", "default": 32.2, "min": 12.9, "max": 64.4, "step": 1.0, "group": "Body", "label": "Shaft length (mm)"}, "step_d": {"type": "float", "default": 18.0, "min": 9.0, "max": 34.6, "step": 1.0, "group": "Step", "label": "Step diameter (mm)"}, "step_len": {"type": "float", "default": 17.6, "min": 5.3, "max": 44.0, "step": 1.0, "group": "Step", "label": "Step length (mm)"}, "axial_bore": {"type": "float", "default": 10.7, "min": 2.0, "max": 13.0, "step": 0.5, "group": "Bore", "label": "Axial bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009527 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"shaft_d\": {\"type\": 'float', \"default\": 38.44, \"min\": 19.2, \"max\": 69.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft diameter (mm)'},\n \"shaft_len\": {\"type\": 'float', \"default\": 32.2, \"min\": 12.9, \"max\": 64.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Shaft length (mm)'},\n \"step_d\": {\"type\": 'float', \"default\": 18.0, \"min\": 9.0, \"max\": 34.6, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step diameter (mm)'},\n \"step_len\": {\"type\": 'float', \"default\": 17.6, \"min\": 5.3, \"max\": 44.0, \"step\": 1.0, \"group\": 'Step', \"label\": 'Step length (mm)'},\n \"axial_bore\": {\"type\": 'float', \"default\": 10.7, \"min\": 2.0, \"max\": 13.0, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Axial bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').circle(p[\"shaft_d\"] / 2).extrude(p[\"shaft_len\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"step_d\"] / 2).extrude(p[\"step_len\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"axial_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad638_2124", "family": "profiled", "tier": 2, "seed": 2468009528, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "293085fa0fc34f9b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 297000.0, "surface_area": 39900.0, "principal_moments": [75300000.0, 1980000000.0, 2040000000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"slot_len": {"type": "float", "default": 55.24, "min": 27.6, "max": 110.5, "step": 1.0, "group": "Profile", "label": "Slot length (mm)"}, "slot_w": {"type": "float", "default": 20.78, "min": 10.4, "max": 41.6, "step": 0.5, "group": "Profile", "label": "Slot width (mm)"}, "length": {"type": "float", "default": 281.9, "min": 84.6, "max": 845.7, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009528 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"slot_len\": {\"type\": 'float', \"default\": 55.24, \"min\": 27.6, \"max\": 110.5, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Slot length (mm)'},\n \"slot_w\": {\"type\": 'float', \"default\": 20.78, \"min\": 10.4, \"max\": 41.6, \"step\": 0.5, \"group\": 'Profile', \"label\": 'Slot width (mm)'},\n \"length\": {\"type\": 'float', \"default\": 281.9, \"min\": 84.6, \"max\": 845.7, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').slot2D(p[\"slot_len\"], p[\"slot_w\"]).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad639_2125", "family": "gear", "tier": 0, "seed": 2468009529, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "efbe0cca61ed8b1f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7520.0, "surface_area": 3550.0, "principal_moments": [584000.0, 584000.0, 1080000.0], "n_faces": 164, "n_edges": 486, "n_vertices": 324}, "params": {"module": {"type": "float", "default": 1.25, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 27, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 8.5, "min": 3.4, "max": 21.2, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009529 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.25, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 27, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 8.5, \"min\": 3.4, \"max\": 21.2, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad63a_2126", "family": "bracket", "tier": 2, "seed": 2468009530, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "305bad6be526116b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 14000.0, "surface_area": 8250.0, "principal_moments": [2650000.0, 6620000.0, 6720000.0], "n_faces": 14, "n_edges": 37, "n_vertices": 24}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 45.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 35, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}, "gusset_t": {"type": "float", "default": 3.5, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Gusset", "label": "Gusset thickness (mm)"}, "gusset": {"type": "bool", "default": true, "group": "Gusset", "label": "Corner gusset"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009530 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 45.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 35, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n \"gusset_t\": {\"type\": 'float', \"default\": 3.5, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Gusset', \"label\": 'Gusset thickness (mm)'},\n \"gusset\": {\"type\": 'bool', \"default\": True, \"group\": 'Gusset', \"label\": 'Corner gusset'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' _bt and _gt < _bw:\n gus = (cq.Workplane('XZ').workplane(offset=_gt / 2)\n .moveTo(_bt, _bt).lineTo(_bt + _g, _bt)\n .lineTo(_bt, _bt + _g).close().extrude(-_gt))\n result = result.union(gus)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "profiled_931ad63d_2129", "family": "profiled", "tier": 1, "seed": 2468009533, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "5677c0f50ffeb7aa", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 228000.0, "surface_area": 26100.0, "principal_moments": [44500000.0, 679000000.0, 679000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"circ_r": {"type": "float", "default": 20.8, "min": 10.4, "max": 41.6, "step": 1.0, "group": "Profile", "label": "Circumscribed radius (mm)"}, "n_sides": {"type": "int", "default": 8, "min": 3, "max": 8, "step": 1, "group": "Profile", "label": "Sides"}, "length": {"type": "float", "default": 186.1, "min": 55.8, "max": 558.3, "step": 5.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009533 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"circ_r\": {\"type\": 'float', \"default\": 20.8, \"min\": 10.4, \"max\": 41.6, \"step\": 1.0, \"group\": 'Profile', \"label\": 'Circumscribed radius (mm)'},\n \"n_sides\": {\"type\": 'int', \"default\": 8, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Profile', \"label\": 'Sides'},\n \"length\": {\"type\": 'float', \"default\": 186.1, \"min\": 55.8, \"max\": 558.3, \"step\": 5.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"n_sides\"], p[\"circ_r\"] * 2).extrude(p[\"length\"]))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad63e_2130", "family": "plate", "tier": 2, "seed": 2468009534, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "c639440514bf8268", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12500.0, "surface_area": 5020.0, "principal_moments": [861000.0, 3620000.0, 4350000.0], "n_faces": 18, "n_edges": 56, "n_vertices": 36}, "params": {"plate_w": {"type": "float", "default": 60, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 28.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 8.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 2.0, "max": 6.4, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "cs_angle": {"type": "float", "default": 82.0, "min": 60.0, "max": 120.0, "step": 15.0, "group": "Holes", "label": "Countersink angle (\u00b0)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009534 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 60, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 28.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 8.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 2.0, \"max\": 6.4, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"cs_angle\": {\"type\": 'float', \"default\": 82.0, \"min\": 60.0, \"max\": 120.0, \"step\": 15.0, \"group\": 'Holes', \"label\": 'Countersink angle (\u00b0)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cskHole(p[\"hole_d\"], p[\"hole_d\"] * 2, p[\"cs_angle\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.11474582638358499)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad63f_2131", "family": "gear", "tier": 2, "seed": 2468009535, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "10c03fe0289953ab", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5130.0, "surface_area": 2770.0, "principal_moments": [303000.0, 303000.0, 534000.0], "n_faces": 83, "n_edges": 243, "n_vertices": 162}, "params": {"module": {"type": "float", "default": 2.5, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 10, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 9.2, "min": 3.7, "max": 23.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 21.2, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.13, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.55, "min": 0.0, "max": 1.25, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 4.5, "min": 2.0, "max": 11.2, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009535 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 2.5, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 10, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 9.2, \"min\": 3.7, \"max\": 23.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 21.2, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.13, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.55, \"min\": 0.0, \"max\": 1.25, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 4.5, \"min\": 2.0, \"max\": 11.2, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=False, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad640_2132", "family": "flanged", "tier": 2, "seed": 2468009536, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "1e97030867af7723", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 26800.0, "surface_area": 10500.0, "principal_moments": [5740000.0, 5740000.0, 8350000.0], "n_faces": 29, "n_edges": 114, "n_vertices": 76}, "params": {"outer_d": {"type": "float", "default": 35, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 25.0, "min": 7.5, "max": 62.5, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 13.2, "min": 2.0, "max": 24.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 60.4, "min": 45.5, "max": 105.0, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 4.9, "min": 1.5, "max": 10.0, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 18.1, "min": 12.1, "max": 27.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009536 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 35, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 25.0, \"min\": 7.5, \"max\": 62.5, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 13.2, \"min\": 2.0, \"max\": 24.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 60.4, \"min\": 45.5, \"max\": 105.0, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 4.9, \"min\": 1.5, \"max\": 10.0, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 18.1, \"min\": 12.1, \"max\": 27.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad641_2133", "family": "plate", "tier": 2, "seed": 2468009537, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "a2fe1c256d6fb76d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 73100.0, "surface_area": 19200.0, "principal_moments": [35600000.0, 59299999.99999999, 93599999.99999999], "n_faces": 18, "n_edges": 44, "n_vertices": 28}, "params": {"plate_w": {"type": "float", "default": 100, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 77.2, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 10.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "cs_angle": {"type": "float", "default": 82.0, "min": 60.0, "max": 120.0, "step": 15.0, "group": "Holes", "label": "Countersink angle (\u00b0)"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009537 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 100, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 77.2, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 10.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"cs_angle\": {\"type\": 'float', \"default\": 82.0, \"min\": 60.0, \"max\": 120.0, \"step\": 15.0, \"group\": 'Holes', \"label\": 'Countersink angle (\u00b0)'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().cskHole(p[\"hole_d\"], p[\"hole_d\"] * 2, p[\"cs_angle\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.09858143420676191)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad642_2134", "family": "gear", "tier": 0, "seed": 2468009538, "symmetry": "none", "op_count": 1, "ir_hash": "92bce45aff47b774", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2730.0, "surface_area": 1890.0, "principal_moments": [122000.0, 122000.0, 232000.0], "n_faces": 158, "n_edges": 468, "n_vertices": 312}, "params": {"module": {"type": "float", "default": 1.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 26, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 5.2, "min": 2.1, "max": 13.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009538 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 1.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 26, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 5.2, \"min\": 2.1, \"max\": 13.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.SpurGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad643_2135", "family": "enclosure", "tier": 2, "seed": 2468009539, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "9155695ec5033241", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 6400.0, "surface_area": 4170.0, "principal_moments": [517000.0, 693000.0, 981000.0], "n_faces": 15, "n_edges": 48, "n_vertices": 32}, "params": {"enc_w": {"type": "float", "default": 30.0, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 24.6, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 14.3, "min": 5.7, "max": 28.6, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 4.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 2.0, "max": 5.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009539 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 30.0, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 24.6, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 14.3, \"min\": 5.7, \"max\": 28.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 2.0, \"max\": 5.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad645_2137", "family": "block", "tier": 1, "seed": 2468009541, "symmetry": "none", "op_count": 2, "ir_hash": "0e19fb699335e0f8", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 96300.0, "surface_area": 16400.0, "principal_moments": [29899999.999999996, 40600000.0, 58799999.99999999], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 27.2, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 65.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009541 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 27.2, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 65.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad646_2138", "family": "block", "tier": 1, "seed": 2468009542, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "fd44458a1e271768", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5720.0, "surface_area": 3090.0, "principal_moments": [223000.0, 553000.0, 695000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 19.89, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 9.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 32.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.0, "min": 2.0, "max": 2.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009542 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 19.89, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 9.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 32.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.0, \"min\": 2.0, \"max\": 2.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad647_2139", "family": "flanged", "tier": 1, "seed": 2468009543, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "3da725b9e7efb293", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 148000.0, "surface_area": 35100.0, "principal_moments": [106000000.0, 136000000.0, 136000000.0], "n_faces": 18, "n_edges": 45, "n_vertices": 30}, "params": {"outer_d": {"type": "float", "default": 50.43, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 74.4, "min": 22.3, "max": 186.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 25.2, "min": 2.0, "max": 35.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 103.5, "min": 65.6, "max": 151.3, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 5.9, "min": 1.8, "max": 29.8, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 31.0, "min": 20.7, "max": 46.6, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009543 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 50.43, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 74.4, \"min\": 22.3, \"max\": 186.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 25.2, \"min\": 2.0, \"max\": 35.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 103.5, \"min\": 65.6, \"max\": 151.3, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 5.9, \"min\": 1.8, \"max\": 29.8, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 31.0, \"min\": 20.7, \"max\": 46.6, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad648_2140", "family": "bracket", "tier": 1, "seed": 2468009544, "symmetry": "none", "op_count": 1, "ir_hash": "9f0a3a216601341c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 18000.0, "surface_area": 6770.0, "principal_moments": [2910000.0, 8870000.0, 10300000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 55, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 56.7, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 22.08, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 8.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 5.3, "min": 3.0, "max": 8.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009544 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 55, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 56.7, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 22.08, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 8.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 5.3, \"min\": 3.0, \"max\": 8.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad64c_2144", "family": "block", "tier": 1, "seed": 2468009548, "symmetry": "none", "op_count": 2, "ir_hash": "f15a76762b6c5ebf", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 72800.0, "surface_area": 13600.0, "principal_moments": [21800000.0, 22000000.0, 36500000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 55, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 24.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 55.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009548 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 55, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 24.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 55.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad64d_2145", "family": "revolved", "tier": 0, "seed": 2468009549, "symmetry": "none", "op_count": 1, "ir_hash": "712c7fb9ce5afd49", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 120000.0, "surface_area": 28200.0, "principal_moments": [29199999.999999996, 158000000.0, 158000000.0], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 40.24, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 141.7, "min": 42.5, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009549 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 40.24, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 141.7, \"min\": 42.5, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad64e_2146", "family": "bracket", "tier": 1, "seed": 2468009550, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "e5815ad884367d8a", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 7460.0, "surface_area": 5930.0, "principal_moments": [1480000.0, 5220000.0, 6200000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 67.48, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 61.3, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 20, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 3.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 8.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009550 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 67.48, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 61.3, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 20, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 3.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 8.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces('Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad651_2149", "family": "block", "tier": 1, "seed": 2468009553, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "81157e46251790c1", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 105000.0, "surface_area": 22400.0, "principal_moments": [25499999.999999996, 89100000.0, 106000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 50, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 22.4, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 98.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.8, "min": 2.0, "max": 6.6, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009553 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 50, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 22.4, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 98.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.8, \"min\": 2.0, \"max\": 6.6, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad652_2150", "family": "compound", "tier": 1, "seed": 2468009554, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "6dd38bdd4e548b58", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 234000.0, "surface_area": 25900.0, "principal_moments": [117000000.0, 178000000.0, 190000000.0], "n_faces": 21, "n_edges": 51, "n_vertices": 34}, "params": {"block_w": {"type": "float", "default": 80, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body width (mm)"}, "block_d": {"type": "float", "default": 56.9, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body depth (mm)"}, "block_h": {"type": "float", "default": 51.7, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Body height (mm)"}, "port_sides": {"type": "int", "default": 5, "min": 3, "max": 8, "step": 1, "group": "Ports", "label": "Ports sides"}, "port_r": {"type": "float", "default": 7.7, "min": 3.9, "max": 11.7, "step": 1.0, "group": "Ports", "label": "Ports circumradius (mm)"}, "port_len": {"type": "float", "default": 9.3, "min": 3.1, "max": 37.4, "step": 1.0, "group": "Ports", "label": "Port boss length (mm)"}, "port_bore": {"type": "float", "default": 7.3, "min": 2.0, "max": 9.0, "step": 0.5, "group": "Ports", "label": "Port bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009554 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 56.9, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 51.7, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Body height (mm)'},\n \"port_sides\": {\"type\": 'int', \"default\": 5, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Ports', \"label\": 'Ports sides'},\n \"port_r\": {\"type\": 'float', \"default\": 7.7, \"min\": 3.9, \"max\": 11.7, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Ports circumradius (mm)'},\n \"port_len\": {\"type\": 'float', \"default\": 9.3, \"min\": 3.1, \"max\": 37.4, \"step\": 1.0, \"group\": 'Ports', \"label\": 'Port boss length (mm)'},\n \"port_bore\": {\"type\": 'float', \"default\": 7.3, \"min\": 2.0, \"max\": 9.0, \"step\": 0.5, \"group\": 'Ports', \"label\": 'Port bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('Y').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"port_sides\"], p[\"port_r\"] * 2).extrude(p[\"port_len\"])\n )\n result = (\n result.faces('>Y').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"port_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad653_2151", "family": "revolved", "tier": 1, "seed": 2468009555, "symmetry": "none", "op_count": 2, "ir_hash": "56b454f6268aae3b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 28600.0, "surface_area": 9490.0, "principal_moments": [2290000.0, 18300000.0, 18300000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 23.14, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 85.4, "min": 25.6, "max": 256.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 10.3, "min": 2.0, "max": 16.2, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 1.3, "min": 0.1, "max": 3.9, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009555 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 23.14, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 85.4, \"min\": 25.6, \"max\": 256.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 10.3, \"min\": 2.0, \"max\": 16.2, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.3, \"min\": 0.1, \"max\": 3.9, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or X').workplane(centerOption='CenterOfBoundBox')\n .rect(p[\"tab_a\"], p[\"tab_b\"]).extrude(p[\"tab_t\"])\n )\n result = (\n result.faces('>X').workplane()\n .rect(p[\"tab_a\"] * 0.6, p[\"tab_b\"] * 0.6, forConstruction=True)\n .vertices().hole(p[\"tab_hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad659_2157", "family": "revolved", "tier": 1, "seed": 2468009561, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "0b377631cb65f443", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 39100.0, "surface_area": 12000.0, "principal_moments": [7360000.0, 17300000.0, 17300000.0], "n_faces": 4, "n_edges": 6, "n_vertices": 4}, "params": {"outer_d": {"type": "float", "default": 33.73, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 64.7, "min": 19.4, "max": 194.1, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 19.2, "min": 2.0, "max": 23.6, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009561 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 33.73, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 64.7, \"min\": 19.4, \"max\": 194.1, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 19.2, \"min\": 2.0, \"max\": 23.6, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad65a_2158", "family": "revolved", "tier": 0, "seed": 2468009562, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "6e9ca7f5412aa598", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 97300.0, "surface_area": 17900.0, "principal_moments": [42000000.0, 42000000.0, 61699999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 65, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 44.0, "min": 13.2, "max": 132.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009562 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 44.0, \"min\": 13.2, \"max\": 132.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad65b_2159", "family": "block", "tier": 1, "seed": 2468009563, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "eaf2c5e292a6ee6b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 144000.0, "surface_area": 20000.0, "principal_moments": [59299999.99999999, 71700000.0, 104000000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 33.6, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 61.9, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 7.6, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009563 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 33.6, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 61.9, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 7.6, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "flanged_931ad65c_2160", "family": "flanged", "tier": 1, "seed": 2468009564, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "200183ec63cb0a60", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 150000.0, "surface_area": 29900.0, "principal_moments": [97499999.99999999, 97499999.99999999, 145000000.0], "n_faces": 13, "n_edges": 42, "n_vertices": 28}, "params": {"outer_d": {"type": "float", "default": 58.28, "min": 20.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 42.5, "min": 12.8, "max": 106.2, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 21.1, "min": 2.0, "max": 40.8, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "flange_d": {"type": "float", "default": 107.7, "min": 75.8, "max": 174.8, "step": 1.0, "group": "Flange", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 8.3, "min": 2.5, "max": 17.0, "step": 0.5, "group": "Flange", "label": "Flange height (mm)"}, "bolt_d": {"type": "float", "default": 8.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 32.3, "min": 21.5, "max": 48.5, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009564 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 58.28, \"min\": 20.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 42.5, \"min\": 12.8, \"max\": 106.2, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 21.1, \"min\": 2.0, \"max\": 40.8, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 107.7, \"min\": 75.8, \"max\": 174.8, \"step\": 1.0, \"group\": 'Flange', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 8.3, \"min\": 2.5, \"max\": 17.0, \"step\": 0.5, \"group\": 'Flange', \"label\": 'Flange height (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 32.3, \"min\": 21.5, \"max\": 48.5, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad65d_2161", "family": "plate", "tier": 2, "seed": 2468009565, "symmetry": "radial", "op_count": 3, "ir_hash": "64c19f71c5474589", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 12700.0, "surface_area": 8130.0, "principal_moments": [2300000.0, 6210000.0, 8480000.0], "n_faces": 28, "n_edges": 78, "n_vertices": 52}, "params": {"plate_w": {"type": "float", "default": 75, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 47.7, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 6.4, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 22.5, "min": 15.0, "max": 33.8, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 12, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}, "filleted": {"type": "bool", "default": true, "group": "Body", "label": "Fillet corners"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009565 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 75, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 47.7, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 6.4, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 22.5, \"min\": 15.0, \"max\": 33.8, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 12, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n \"filleted\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'Fillet corners'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"plate_w\"], p[\"plate_d\"]) * 0.10628286249089075)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad65e_2162", "family": "block", "tier": 2, "seed": 2468009566, "symmetry": "mirror_xy", "op_count": 3, "ir_hash": "66f79dadb91e1c4b", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 5470.0, "surface_area": 2550.0, "principal_moments": [251000.0, 300000.0, 408000.0], "n_faces": 15, "n_edges": 35, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 23.96, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 12.8, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 16.6, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 2.6, "min": 2.0, "max": 2.9, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 14.5, "min": 7.2, "max": 29.0, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 4.4, "min": 1.8, "max": 11.0, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009566 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 23.96, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 12.8, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 16.6, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.6, \"min\": 2.0, \"max\": 2.9, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 14.5, \"min\": 7.2, \"max\": 29.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 4.4, \"min\": 1.8, \"max\": 11.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad660_2164", "family": "revolved", "tier": 2, "seed": 2468009568, "symmetry": "radial", "op_count": 2, "ir_hash": "a80a4e8611d2433e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 779000.0, "surface_area": 91200.0, "principal_moments": [1690000000.0, 1690000000.0, 1850000000.0], "n_faces": 7, "n_edges": 11, "n_vertices": 7}, "params": {"outer_d": {"type": "float", "default": 74.57, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 136.8, "min": 41.0, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "flange_d": {"type": "float", "default": 162.1, "min": 89.5, "max": 223.7, "step": 1.0, "group": "Body", "label": "Flange diameter (mm)"}, "flange_h": {"type": "float", "default": 23.4, "min": 7.0, "max": 68.4, "step": 0.5, "group": "Body", "label": "Flange height (mm)"}, "end_chamfer": {"type": "float", "default": 1.1, "min": 0.1, "max": 3.3, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009568 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 74.57, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 136.8, \"min\": 41.0, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"flange_d\": {\"type\": 'float', \"default\": 162.1, \"min\": 89.5, \"max\": 223.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Flange diameter (mm)'},\n \"flange_h\": {\"type\": 'float', \"default\": 23.4, \"min\": 7.0, \"max\": 68.4, \"step\": 0.5, \"group\": 'Body', \"label\": 'Flange height (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 1.1, \"min\": 0.1, \"max\": 3.3, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"flange_d\"] / 2, 0)\n .lineTo(p[\"flange_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"flange_h\"])\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad663_2167", "family": "plate", "tier": 0, "seed": 2468009571, "symmetry": "radial", "op_count": 1, "ir_hash": "8d67207ba6eb0ebd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 20200.0, "surface_area": 9450.0, "principal_moments": [3080000.0, 15199999.999999998, 18200000.0], "n_faces": 6, "n_edges": 12, "n_vertices": 8}, "params": {"plate_w": {"type": "float", "default": 95, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 42.5, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 5.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009571 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 95, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 42.5, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 5.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "enclosure_931ad664_2168", "family": "enclosure", "tier": 2, "seed": 2468009572, "symmetry": "none", "op_count": 3, "ir_hash": "fb90e0a4634190fd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 50900.0, "surface_area": 32900.0, "principal_moments": [27999999.999999996, 56899999.99999999, 59399999.99999999], "n_faces": 19, "n_edges": 60, "n_vertices": 40}, "params": {"enc_w": {"type": "float", "default": 86.49, "min": 30.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure width (mm)"}, "enc_d": {"type": "float", "default": 41.1, "min": 12.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Enclosure depth (mm)"}, "enc_h": {"type": "float", "default": 54.7, "min": 21.9, "max": 109.4, "step": 1.0, "group": "Body", "label": "Enclosure height (mm)"}, "wall_t": {"type": "float", "default": 3.3, "min": 2.0, "max": 6.0, "step": 0.5, "group": "Body", "label": "Wall thickness (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 9.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009572 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"enc_w\": {\"type\": 'float', \"default\": 86.49, \"min\": 30.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure width (mm)'},\n \"enc_d\": {\"type\": 'float', \"default\": 41.1, \"min\": 12.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure depth (mm)'},\n \"enc_h\": {\"type\": 'float', \"default\": 54.7, \"min\": 21.9, \"max\": 109.4, \"step\": 1.0, \"group\": 'Body', \"label\": 'Enclosure height (mm)'},\n \"wall_t\": {\"type\": 'float', \"default\": 3.3, \"min\": 2.0, \"max\": 6.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Wall thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 9.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"enc_w\"], p[\"enc_d\"], p[\"enc_h\"])\n result = result.faces('>Z').shell(-p[\"wall_t\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"enc_w\"] * 0.7, p[\"enc_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad666_2170", "family": "revolved", "tier": 1, "seed": 2468009574, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "4dbbaa37a4d80a56", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 151000.0, "surface_area": 31000.0, "principal_moments": [55899999.99999999, 220000000.0, 220000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 47.53, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 123.6, "min": 37.1, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 26.5, "min": 2.0, "max": 33.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.7, "min": 0.1, "max": 2.1, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009574 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 47.53, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 123.6, \"min\": 37.1, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 26.5, \"min\": 2.0, \"max\": 33.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.1, \"max\": 2.1, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad66a_2174", "family": "compound", "tier": 1, "seed": 2468009578, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "5365bf5c238828f7", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 11300.0, "surface_area": 4510.0, "principal_moments": [999000.0, 1510000.0, 1510000.0], "n_faces": 11, "n_edges": 24, "n_vertices": 16}, "params": {"base_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Base", "label": "Base sides"}, "base_r": {"type": "float", "default": 15.18, "min": 9.1, "max": 24.3, "step": 1.0, "group": "Base", "label": "Base circumradius (mm)"}, "base_h": {"type": "float", "default": 15.5, "min": 6.2, "max": 38.8, "step": 1.0, "group": "Base", "label": "Base height (mm)"}, "col_d": {"type": "float", "default": 15.7, "min": 7.8, "max": 21.0, "step": 1.0, "group": "Column", "label": "Column diameter (mm)"}, "col_h": {"type": "float", "default": 21.2, "min": 6.4, "max": 53.0, "step": 1.0, "group": "Column", "label": "Column height (mm)"}, "col_bore": {"type": "float", "default": 8.4, "min": 2.0, "max": 11.3, "step": 0.5, "group": "Column", "label": "Column bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009578 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Base', \"label\": 'Base sides'},\n \"base_r\": {\"type\": 'float', \"default\": 15.18, \"min\": 9.1, \"max\": 24.3, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base circumradius (mm)'},\n \"base_h\": {\"type\": 'float', \"default\": 15.5, \"min\": 6.2, \"max\": 38.8, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base height (mm)'},\n \"col_d\": {\"type\": 'float', \"default\": 15.7, \"min\": 7.8, \"max\": 21.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column diameter (mm)'},\n \"col_h\": {\"type\": 'float', \"default\": 21.2, \"min\": 6.4, \"max\": 53.0, \"step\": 1.0, \"group\": 'Column', \"label\": 'Column height (mm)'},\n \"col_bore\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 11.3, \"step\": 0.5, \"group\": 'Column', \"label\": 'Column bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = (cq.Workplane('XY').polygon(p[\"base_sides\"], p[\"base_r\"] * 2).extrude(p[\"base_h\"]))\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"col_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "threaded_931ad66b_2175", "family": "threaded", "tier": 1, "seed": 2468009579, "symmetry": "mirror_x", "op_count": 1, "ir_hash": "761dc0cf571ce352", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 241.0, "surface_area": 453.0, "principal_moments": [396.0, 11700.0, 11700.0], "n_faces": 350, "n_edges": 902, "n_vertices": 554}, "params": {"major_d": {"type": "float", "default": 4.0, "min": 4.0, "max": 24.0, "step": 0.5, "group": "Thread", "label": "Major diameter (mm)"}, "pitch": {"type": "float", "default": 0.7, "min": 0.35, "max": 1.4, "step": 0.05, "group": "Thread", "label": "Pitch (mm)"}, "thread_len": {"type": "float", "default": 24.0, "min": 9.6, "max": 48.0, "step": 1.0, "group": "Thread", "label": "Thread length (mm)"}}, "source": "import cadquery as cq\nfrom bd_warehouse import thread as _bdt\nimport build123d as _bd\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009579 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"major_d\": {\"type\": 'float', \"default\": 4.0, \"min\": 4.0, \"max\": 24.0, \"step\": 0.5, \"group\": 'Thread', \"label\": 'Major diameter (mm)'},\n \"pitch\": {\"type\": 'float', \"default\": 0.7, \"min\": 0.35, \"max\": 1.4, \"step\": 0.05, \"group\": 'Thread', \"label\": 'Pitch (mm)'},\n \"thread_len\": {\"type\": 'float', \"default\": 24.0, \"min\": 9.6, \"max\": 48.0, \"step\": 1.0, \"group\": 'Thread', \"label\": 'Thread length (mm)'},\n}\n\n\ndef build(p):\n\n _thr = _bdt.IsoThread(major_diameter=p[\"major_d\"], pitch=p[\"pitch\"], length=p[\"thread_len\"], external=True, end_finishes=(\"fade\", \"fade\"))\n _r = _thr.min_radius if hasattr(_thr, 'min_radius') else _thr.root_radius\n _shank = _bd.Cylinder(radius=_r, height=p[\"thread_len\"], align=(_bd.Align.CENTER, _bd.Align.CENTER, _bd.Align.MIN))\n _part = _shank + _thr\n result = cq.Workplane('XY').add(cq.Solid(_part.wrapped))\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad66e_2178", "family": "plate", "tier": 1, "seed": 2468009582, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "b318902565c7364d", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 1190.0, "surface_area": 1020.0, "principal_moments": [16300.0, 63300.0, 76400.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"plate_w": {"type": "float", "default": 25.36, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 12.4, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 2.4, "min": 2.0, "max": 2.8, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009582 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 25.36, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 12.4, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 2.4, \"min\": 2.0, \"max\": 2.8, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"plate_w\"] * 0.7, p[\"plate_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad66f_2179", "family": "revolved", "tier": 1, "seed": 2468009583, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "7c3da0c00a45f364", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 411000.0, "surface_area": 59100.0, "principal_moments": [280000000.0, 1180000000.0, 1180000000.0], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 65, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 174.2, "min": 52.3, "max": 320.0, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 34.9, "min": 2.0, "max": 45.5, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.9, "min": 0.1, "max": 2.7, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009583 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 65, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 174.2, \"min\": 52.3, \"max\": 320.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 34.9, \"min\": 2.0, \"max\": 45.5, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.9, \"min\": 0.1, \"max\": 2.7, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane(centerOption='CenterOfBoundBox')\n .circle(p[\"col_d\"] / 2).extrude(p[\"col_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "gear_931ad671_2181", "family": "gear", "tier": 2, "seed": 2468009585, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "df2c469ed388cbed", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 67300.0, "surface_area": 15500.0, "principal_moments": [22999999.999999996, 22999999.999999996, 42300000.0], "n_faces": 243, "n_edges": 603, "n_vertices": 362}, "params": {"module": {"type": "float", "default": 3.0, "min": 1.0, "max": 6.0, "step": 0.25, "group": "Gear", "label": "Module (mm)"}, "teeth": {"type": "int", "default": 20, "min": 10, "max": 40, "step": 1, "group": "Gear", "label": "Number of teeth"}, "gear_w": {"type": "float", "default": 18.4, "min": 7.4, "max": 46.0, "step": 1.0, "group": "Gear", "label": "Face width (mm)"}, "helix_angle": {"type": "float", "default": 28.4, "min": 5.0, "max": 40.0, "step": 1.0, "group": "Gear", "label": "Helix angle (deg)"}, "profile_shift": {"type": "float", "default": 0.21, "min": -0.5, "max": 0.7, "step": 0.05, "group": "Gear", "label": "Profile shift"}, "root_fillet": {"type": "float", "default": 0.45, "min": 0.0, "max": 1.5, "step": 0.05, "group": "Gear", "label": "Root fillet (mm)"}, "bore_d": {"type": "float", "default": 11.2, "min": 2.0, "max": 31.5, "step": 0.5, "group": "Bore", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\nimport math\nimport py_gearworks as _gw\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009585 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"module\": {\"type\": 'float', \"default\": 3.0, \"min\": 1.0, \"max\": 6.0, \"step\": 0.25, \"group\": 'Gear', \"label\": 'Module (mm)'},\n \"teeth\": {\"type\": 'int', \"default\": 20, \"min\": 10, \"max\": 40, \"step\": 1, \"group\": 'Gear', \"label\": 'Number of teeth'},\n \"gear_w\": {\"type\": 'float', \"default\": 18.4, \"min\": 7.4, \"max\": 46.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Face width (mm)'},\n \"helix_angle\": {\"type\": 'float', \"default\": 28.4, \"min\": 5.0, \"max\": 40.0, \"step\": 1.0, \"group\": 'Gear', \"label\": 'Helix angle (deg)'},\n \"profile_shift\": {\"type\": 'float', \"default\": 0.21, \"min\": -0.5, \"max\": 0.7, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Profile shift'},\n \"root_fillet\": {\"type\": 'float', \"default\": 0.45, \"min\": 0.0, \"max\": 1.5, \"step\": 0.05, \"group\": 'Gear', \"label\": 'Root fillet (mm)'},\n \"bore_d\": {\"type\": 'float', \"default\": 11.2, \"min\": 2.0, \"max\": 31.5, \"step\": 0.5, \"group\": 'Bore', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n _gear = _gw.HelicalGear(number_of_teeth=int(p[\"teeth\"]), height=p[\"gear_w\"], module=p[\"module\"], helix_angle=math.radians(p[\"helix_angle\"]), herringbone=True, profile_shift=p[\"profile_shift\"], root_fillet=p[\"root_fillet\"])\n _gpart = _gear.build_part()\n result = cq.Workplane('XY').add(cq.Solid(_gpart.wrapped))\n result = result.faces('>Z').workplane().hole(p[\"bore_d\"])\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad672_2182", "family": "revolved", "tier": 2, "seed": 2468009586, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "fc49973d4540dc8f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 33800.0, "surface_area": 11900.0, "principal_moments": [3260000.0, 27699999.999999996, 27699999.999999996], "n_faces": 8, "n_edges": 14, "n_vertices": 8}, "params": {"outer_d": {"type": "float", "default": 24.69, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 96.2, "min": 28.9, "max": 288.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}, "inner_d": {"type": "float", "default": 12.7, "min": 2.0, "max": 17.3, "step": 0.5, "group": "Body", "label": "Bore diameter (mm)"}, "end_chamfer": {"type": "float", "default": 0.5, "min": 0.1, "max": 1.5, "step": 0.1, "group": "Body", "label": "End chamfer (mm)"}, "end_chamfered": {"type": "bool", "default": true, "group": "Body", "label": "End chamfers"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009586 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 24.69, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 96.2, \"min\": 28.9, \"max\": 288.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n \"inner_d\": {\"type\": 'float', \"default\": 12.7, \"min\": 2.0, \"max\": 17.3, \"step\": 0.5, \"group\": 'Body', \"label\": 'Bore diameter (mm)'},\n \"end_chamfer\": {\"type\": 'float', \"default\": 0.5, \"min\": 0.1, \"max\": 1.5, \"step\": 0.1, \"group\": 'Body', \"label\": 'End chamfer (mm)'},\n \"end_chamfered\": {\"type\": 'bool', \"default\": True, \"group\": 'Body', \"label\": 'End chamfers'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(p[\"inner_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .lineTo(p[\"inner_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n if p[\"end_chamfered\"]:\n result = result.edges('>Z or Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n if p[\"filleted\"]:\n result = result.edges('|Z').fillet(min(p[\"block_w\"], p[\"block_d\"]) * 0.08632647690120096)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad678_2188", "family": "bracket", "tier": 1, "seed": 2468009592, "symmetry": "none", "op_count": 1, "ir_hash": "501fe62a35c49f2c", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 29900.0, "surface_area": 16800.0, "principal_moments": [13599999.999999998, 39900000.0, 43200000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"base_len": {"type": "float", "default": 80, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 90.0, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 45.22, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 4.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 10.0, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per leg"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009592 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 80, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 90.0, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 45.22, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 4.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 10.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per leg'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n vert = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_v = _vl - _bt - 2 * _m\n if _span_v > 0:\n _zs = ([_bt + _m + _span_v * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _vl) / 2])\n vert = (vert.faces(' 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"base_w\"] * 0.7, p[\"base_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad67b_2191", "family": "plate", "tier": 1, "seed": 2468009595, "symmetry": "radial", "op_count": 2, "ir_hash": "b1b77b756d09a6d5", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 30400.0, "surface_area": 12200.0, "principal_moments": [5000000.0, 34200000.0, 39000000.0], "n_faces": 8, "n_edges": 18, "n_vertices": 12}, "params": {"plate_w": {"type": "float", "default": 116.08, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 43.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 6.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "bolt_d": {"type": "float", "default": 4.3, "min": 3.0, "max": 13.0, "step": 0.1, "group": "Holes", "label": "Bolt hole diameter (mm)"}, "bolt_r": {"type": "float", "default": 34.8, "min": 23.2, "max": 52.2, "step": 1.0, "group": "Holes", "label": "Bolt circle radius (mm)"}, "n_bolts": {"type": "int", "default": 4, "min": 3, "max": 12, "step": 1, "group": "Holes", "label": "Number of bolts"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009595 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 116.08, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 43.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"bolt_d\": {\"type\": 'float', \"default\": 4.3, \"min\": 3.0, \"max\": 13.0, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Bolt hole diameter (mm)'},\n \"bolt_r\": {\"type\": 'float', \"default\": 34.8, \"min\": 23.2, \"max\": 52.2, \"step\": 1.0, \"group\": 'Holes', \"label\": 'Bolt circle radius (mm)'},\n \"n_bolts\": {\"type\": 'int', \"default\": 4, \"min\": 3, \"max\": 12, \"step\": 1, \"group\": 'Holes', \"label\": 'Number of bolts'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .polarArray(p[\"bolt_r\"], 0, 360, p[\"n_bolts\"])\n .hole(p[\"bolt_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad67c_2192", "family": "revolved", "tier": 0, "seed": 2468009596, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "d03f35a764074c9f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 37500.0, "surface_area": 10800.0, "principal_moments": [6730000.0, 11399999.999999998, 11399999.999999998], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 34.59, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 59.9, "min": 18.0, "max": 179.7, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009596 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 34.59, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 59.9, \"min\": 18.0, \"max\": 179.7, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "ribbed_931ad67e_2194", "family": "ribbed", "tier": 1, "seed": 2468009598, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "9b6b1168b7b60947", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 64400.0, "surface_area": 24100.0, "principal_moments": [34400000.0, 46999999.99999999, 78600000.0], "n_faces": 26, "n_edges": 60, "n_vertices": 40}, "params": {"base_w": {"type": "float", "default": 91.22, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base width (mm)"}, "base_d": {"type": "float", "default": 80.8, "min": 15.0, "max": 120.0, "step": 1.0, "group": "Base", "label": "Base depth (mm)"}, "base_t": {"type": "float", "default": 6.0, "min": 2.0, "max": 15.0, "step": 0.5, "group": "Base", "label": "Base thickness (mm)"}, "rib_count": {"type": "int", "default": 4, "min": 2, "max": 8, "step": 1, "group": "Ribs", "label": "Rib count"}, "rib_h": {"type": "float", "default": 11.5, "min": 4.6, "max": 23.0, "step": 1.0, "group": "Ribs", "label": "Rib height (mm)"}, "rib_t": {"type": "float", "default": 6.0, "min": 1.0, "max": 15.0, "step": 0.5, "group": "Ribs", "label": "Rib thickness (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009598 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_w\": {\"type\": 'float', \"default\": 91.22, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base width (mm)'},\n \"base_d\": {\"type\": 'float', \"default\": 80.8, \"min\": 15.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Base', \"label\": 'Base depth (mm)'},\n \"base_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 2.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Base', \"label\": 'Base thickness (mm)'},\n \"rib_count\": {\"type\": 'int', \"default\": 4, \"min\": 2, \"max\": 8, \"step\": 1, \"group\": 'Ribs', \"label\": 'Rib count'},\n \"rib_h\": {\"type\": 'float', \"default\": 11.5, \"min\": 4.6, \"max\": 23.0, \"step\": 1.0, \"group\": 'Ribs', \"label\": 'Rib height (mm)'},\n \"rib_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 1.0, \"max\": 15.0, \"step\": 0.5, \"group\": 'Ribs', \"label\": 'Rib thickness (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"base_w\"], p[\"base_d\"], p[\"base_t\"])\n _rib_spacing = (p[\"base_w\"] * 0.8 / (p[\"rib_count\"] - 1)) if p[\"rib_count\"] > 1 else 0\n result = (\n result.faces('>Z').workplane()\n .rarray(_rib_spacing, 1, p[\"rib_count\"], 1)\n .rect(p[\"rib_t\"], p[\"base_w\"] * 0.8).extrude(p[\"rib_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "compound_931ad67f_2195", "family": "compound", "tier": 1, "seed": 2468009599, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "68b85fe50e221b90", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 234000.0, "surface_area": 26900.0, "principal_moments": [130000000.0, 162000000.0, 177000000.0], "n_faces": 14, "n_edges": 33, "n_vertices": 22}, "params": {"block_w": {"type": "float", "default": 70, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 54.4, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 61.1, "min": 10.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "spig_sides": {"type": "int", "default": 6, "min": 3, "max": 8, "step": 1, "group": "Spigot", "label": "Spigot sides"}, "spig_r": {"type": "float", "default": 10.0, "min": 5.0, "max": 19.1, "step": 1.0, "group": "Spigot", "label": "Spigot circumradius (mm)"}, "spig_len": {"type": "float", "default": 25.7, "min": 5.2, "max": 69.3, "step": 1.0, "group": "Spigot", "label": "Spigot length (mm)"}, "spig_bore": {"type": "float", "default": 8.8, "min": 2.0, "max": 12.5, "step": 0.5, "group": "Spigot", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009599 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 70, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 54.4, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 61.1, \"min\": 10.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"spig_sides\": {\"type\": 'int', \"default\": 6, \"min\": 3, \"max\": 8, \"step\": 1, \"group\": 'Spigot', \"label\": 'Spigot sides'},\n \"spig_r\": {\"type\": 'float', \"default\": 10.0, \"min\": 5.0, \"max\": 19.1, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot circumradius (mm)'},\n \"spig_len\": {\"type\": 'float', \"default\": 25.7, \"min\": 5.2, \"max\": 69.3, \"step\": 1.0, \"group\": 'Spigot', \"label\": 'Spigot length (mm)'},\n \"spig_bore\": {\"type\": 'float', \"default\": 8.8, \"min\": 2.0, \"max\": 12.5, \"step\": 0.5, \"group\": 'Spigot', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .polygon(p[\"spig_sides\"], p[\"spig_r\"] * 2).extrude(p[\"spig_len\"])\n )\n result = (\n result.faces('>X').workplane(centerOption='CenterOfBoundBox')\n .hole(p[\"spig_bore\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "bracket_931ad680_2196", "family": "bracket", "tier": 1, "seed": 2468009600, "symmetry": "mirror_xy", "op_count": 1, "ir_hash": "3766ebc8c4aab543", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 10700.0, "surface_area": 5070.0, "principal_moments": [711000.0, 4740000.0, 4830000.0], "n_faces": 12, "n_edges": 30, "n_vertices": 20}, "params": {"base_len": {"type": "float", "default": 39.31, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Base leg length (mm)"}, "vert_len": {"type": "float", "default": 30.9, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Vertical leg length (mm)"}, "bracket_w": {"type": "float", "default": 18.63, "min": 15.0, "max": 60.0, "step": 1.0, "group": "Body", "label": "Width (mm)"}, "bracket_t": {"type": "float", "default": 6.0, "min": 3.0, "max": 8.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "top_len": {"type": "float", "default": 38.4, "min": 25.0, "max": 90.0, "step": 1.0, "group": "Body", "label": "Top flange length (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 3.0, "max": 7.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "n_holes": {"type": "int", "default": 1, "min": 1, "max": 3, "step": 1, "group": "Holes", "label": "Holes per flange"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009600 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"base_len\": {\"type\": 'float', \"default\": 39.31, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Base leg length (mm)'},\n \"vert_len\": {\"type\": 'float', \"default\": 30.9, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Vertical leg length (mm)'},\n \"bracket_w\": {\"type\": 'float', \"default\": 18.63, \"min\": 15.0, \"max\": 60.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Width (mm)'},\n \"bracket_t\": {\"type\": 'float', \"default\": 6.0, \"min\": 3.0, \"max\": 8.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"top_len\": {\"type\": 'float', \"default\": 38.4, \"min\": 25.0, \"max\": 90.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Top flange length (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 3.0, \"max\": 7.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"n_holes\": {\"type\": 'int', \"default\": 1, \"min\": 1, \"max\": 3, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes per flange'},\n}\n\n\ndef build(p):\n\n _bl = p[\"base_len\"]\n _vl = p[\"vert_len\"]\n _tl = p[\"top_len\"]\n _bw = p[\"bracket_w\"]\n _bt = p[\"bracket_t\"]\n base = cq.Workplane('XY').box(_bl, _bw, _bt, centered=(False, True, False))\n web = cq.Workplane('XY').box(_bt, _bw, _vl, centered=(False, True, False))\n top = (cq.Workplane('XY').box(_tl, _bw, _bt, centered=(False, True, False))\n .translate((_bt - _tl, 0, _vl - _bt)))\n _hd = p[\"hole_d\"]\n _nh = max(1, int(p[\"n_holes\"]))\n if _hd > 0:\n _m = max(_hd, _bt) * 1.2\n _span_b = _bl - _bt - 2 * _m\n if _span_b > 0:\n _xs = ([_bt + _m + _span_b * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt + _bl) / 2])\n base = (base.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _bl / 2, 0) for x in _xs]).hole(_hd))\n _span_t = _tl - _bt - 2 * _m\n if _span_t > 0:\n _txc = (_bt - _tl) + _tl / 2\n _xt = ([(_bt - _tl) + _m + _span_t * i / max(_nh - 1, 1) for i in range(_nh)] if _nh > 1 else [(_bt - _tl) / 2])\n top = (top.faces('>Z').workplane(centerOption='CenterOfBoundBox')\n .pushPoints([(x - _txc, 0) for x in _xt]).hole(_hd))\n result = base.union(web).union(top)\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "plate_931ad681_2197", "family": "plate", "tier": 1, "seed": 2468009601, "symmetry": "none", "op_count": 2, "ir_hash": "beae441241608c8f", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 2100.0, "surface_area": 1750.0, "principal_moments": [36500.0, 278000.0, 309000.0], "n_faces": 18, "n_edges": 48, "n_vertices": 32}, "params": {"plate_w": {"type": "float", "default": 40, "min": 20.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate width (mm)"}, "plate_d": {"type": "float", "default": 13.9, "min": 8.0, "max": 120.0, "step": 1.0, "group": "Body", "label": "Plate depth (mm)"}, "thickness": {"type": "float", "default": 4.0, "min": 2.0, "max": 12.0, "step": 0.5, "group": "Body", "label": "Thickness (mm)"}, "hole_d": {"type": "float", "default": 1.8, "min": 2.0, "max": 1.7, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "hole_nx": {"type": "int", "default": 3, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes across"}, "hole_ny": {"type": "int", "default": 4, "min": 1, "max": 4, "step": 1, "group": "Holes", "label": "Holes deep"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009601 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"plate_w\": {\"type\": 'float', \"default\": 40, \"min\": 20.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate width (mm)'},\n \"plate_d\": {\"type\": 'float', \"default\": 13.9, \"min\": 8.0, \"max\": 120.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Plate depth (mm)'},\n \"thickness\": {\"type\": 'float', \"default\": 4.0, \"min\": 2.0, \"max\": 12.0, \"step\": 0.5, \"group\": 'Body', \"label\": 'Thickness (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 1.8, \"min\": 2.0, \"max\": 1.7, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"hole_nx\": {\"type\": 'int', \"default\": 3, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes across'},\n \"hole_ny\": {\"type\": 'int', \"default\": 4, \"min\": 1, \"max\": 4, \"step\": 1, \"group\": 'Holes', \"label\": 'Holes deep'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"plate_w\"], p[\"plate_d\"], p[\"thickness\"])\n result = (\n result.faces('>Z').workplane()\n .rarray(16.0, 3.7, p[\"hole_nx\"], p[\"hole_ny\"])\n .hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad683_2199", "family": "block", "tier": 2, "seed": 2468009603, "symmetry": "mirror_x", "op_count": 3, "ir_hash": "ace8a061c99116e6", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 69000.0, "surface_area": 17000.0, "principal_moments": [20000000.0, 20500000.0, 22899999.999999996], "n_faces": 13, "n_edges": 30, "n_vertices": 20}, "params": {"block_w": {"type": "float", "default": 45.26, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 40.3, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 43.8, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 9.1, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "boss_d": {"type": "float", "default": 16.0, "min": 8.0, "max": 32.0, "step": 1.0, "group": "Boss", "label": "Boss diameter (mm)"}, "boss_h": {"type": "float", "default": 8.7, "min": 3.5, "max": 21.8, "step": 1.0, "group": "Boss", "label": "Boss height (mm)"}, "boss_bore_d": {"type": "float", "default": 8.4, "min": 2.0, "max": 11.2, "step": 0.1, "group": "Boss", "label": "Bore diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009603 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 45.26, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 40.3, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 43.8, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 9.1, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"boss_d\": {\"type\": 'float', \"default\": 16.0, \"min\": 8.0, \"max\": 32.0, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss diameter (mm)'},\n \"boss_h\": {\"type\": 'float', \"default\": 8.7, \"min\": 3.5, \"max\": 21.8, \"step\": 1.0, \"group\": 'Boss', \"label\": 'Boss height (mm)'},\n \"boss_bore_d\": {\"type\": 'float', \"default\": 8.4, \"min\": 2.0, \"max\": 11.2, \"step\": 0.1, \"group\": 'Boss', \"label\": 'Bore diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .circle(p[\"boss_d\"] / 2).extrude(p[\"boss_h\"])\n )\n result = (\n result.faces('>Z').workplane()\n .hole(p[\"boss_bore_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad684_2200", "family": "block", "tier": 1, "seed": 2468009604, "symmetry": "mirror_xy", "op_count": 2, "ir_hash": "995da7415900031e", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 27900.0, "surface_area": 7500.0, "principal_moments": [3280000.0, 5310000.0, 6210000.0], "n_faces": 10, "n_edges": 24, "n_vertices": 16}, "params": {"block_w": {"type": "float", "default": 30.33, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 22.9, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 42.1, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 5.2, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009604 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 30.33, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 22.9, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 42.1, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 5.2, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad685_2201", "family": "block", "tier": 1, "seed": 2468009605, "symmetry": "mirror_x", "op_count": 2, "ir_hash": "a3d889ac10c60fbd", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 229000.0, "surface_area": 32100.0, "principal_moments": [124000000.0, 158000000.0, 207000000.0], "n_faces": 22, "n_edges": 60, "n_vertices": 40}, "params": {"block_w": {"type": "float", "default": 80.84, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 45.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 67.3, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 7.7, "min": 2.0, "max": 13.2, "step": 0.5, "group": "Holes", "label": "Square hole size (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009605 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 80.84, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 45.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 67.3, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 7.7, \"min\": 2.0, \"max\": 13.2, \"step\": 0.5, \"group\": 'Holes', \"label\": 'Square hole size (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().rect(p[\"hole_d\"], p[\"hole_d\"]).cutThruAll()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "block_931ad686_2202", "family": "block", "tier": 2, "seed": 2468009606, "symmetry": "none", "op_count": 3, "ir_hash": "7934014cf9f1fba2", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 71500.0, "surface_area": 17500.0, "principal_moments": [23399999.999999996, 24699999.999999996, 36600000.0], "n_faces": 15, "n_edges": 36, "n_vertices": 24}, "params": {"block_w": {"type": "float", "default": 51.99, "min": 15.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block width (mm)"}, "block_d": {"type": "float", "default": 29.1, "min": 6.0, "max": 100.0, "step": 1.0, "group": "Body", "label": "Block depth (mm)"}, "block_h": {"type": "float", "default": 58.5, "min": 4.5, "max": 200.0, "step": 1.0, "group": "Body", "label": "Block height (mm)"}, "hole_d": {"type": "float", "default": 3.2, "min": 2.0, "max": 6.5, "step": 0.1, "group": "Holes", "label": "Hole diameter (mm)"}, "pocket_w": {"type": "float", "default": 36.3, "min": 18.1, "max": 41.6, "step": 1.0, "group": "Pocket", "label": "Pocket width (mm)"}, "pocket_d": {"type": "float", "default": 16.1, "min": 8.1, "max": 23.3, "step": 1.0, "group": "Pocket", "label": "Pocket depth (mm)"}, "pocket_h": {"type": "float", "default": 25.8, "min": 10.3, "max": 49.7, "step": 0.5, "group": "Pocket", "label": "Pocket height (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009606 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"block_w\": {\"type\": 'float', \"default\": 51.99, \"min\": 15.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block width (mm)'},\n \"block_d\": {\"type\": 'float', \"default\": 29.1, \"min\": 6.0, \"max\": 100.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block depth (mm)'},\n \"block_h\": {\"type\": 'float', \"default\": 58.5, \"min\": 4.5, \"max\": 200.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Block height (mm)'},\n \"hole_d\": {\"type\": 'float', \"default\": 3.2, \"min\": 2.0, \"max\": 6.5, \"step\": 0.1, \"group\": 'Holes', \"label\": 'Hole diameter (mm)'},\n \"pocket_w\": {\"type\": 'float', \"default\": 36.3, \"min\": 18.1, \"max\": 41.6, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket width (mm)'},\n \"pocket_d\": {\"type\": 'float', \"default\": 16.1, \"min\": 8.1, \"max\": 23.3, \"step\": 1.0, \"group\": 'Pocket', \"label\": 'Pocket depth (mm)'},\n \"pocket_h\": {\"type\": 'float', \"default\": 25.8, \"min\": 10.3, \"max\": 49.7, \"step\": 0.5, \"group\": 'Pocket', \"label\": 'Pocket height (mm)'},\n}\n\n\ndef build(p):\n\n result = cq.Workplane('XY').box(p[\"block_w\"], p[\"block_d\"], p[\"block_h\"])\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"block_w\"] * 0.7, p[\"block_d\"] * 0.7, forConstruction=True)\n .vertices().hole(p[\"hole_d\"])\n )\n result = (\n result.faces('>Z').workplane()\n .rect(p[\"pocket_w\"], p[\"pocket_d\"])\n .cutBlind(-p[\"pocket_h\"])\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} +{"part_id": "revolved_931ad687_2203", "family": "revolved", "tier": 0, "seed": 2468009607, "symmetry": "none", "op_count": 1, "ir_hash": "c041c1dd1b5f22ab", "generator_version": "0.5.0", "license": "CC0-1.0", "geometry_signature": {"version": 2, "volume": 85000.0, "surface_area": 16500.0, "principal_moments": [37400000.0, 37400000.0, 64299999.99999999], "n_faces": 3, "n_edges": 4, "n_vertices": 3}, "params": {"outer_d": {"type": "float", "default": 71.01, "min": 6.0, "max": 80.0, "step": 1.0, "group": "Body", "label": "Outer diameter (mm)"}, "length": {"type": "float", "default": 32.2, "min": 9.7, "max": 96.6, "step": 1.0, "group": "Body", "label": "Length (mm)"}}, "source": "import cadquery as cq\n\n# Generated by CadQuarry v0.5.0 \u2014 seed 2468009607 \u2014 CC0-1.0\n# https://github.com/jacobjennings/CadQuarry\n\nPARAMS = {\n \"outer_d\": {\"type\": 'float', \"default\": 71.01, \"min\": 6.0, \"max\": 80.0, \"step\": 1.0, \"group\": 'Body', \"label\": 'Outer diameter (mm)'},\n \"length\": {\"type\": 'float', \"default\": 32.2, \"min\": 9.7, \"max\": 96.6, \"step\": 1.0, \"group\": 'Body', \"label\": 'Length (mm)'},\n}\n\n\ndef build(p):\n\n result = (\n cq.Workplane('XZ')\n .moveTo(0, 0)\n .lineTo(p[\"outer_d\"] / 2, 0)\n .lineTo(p[\"outer_d\"] / 2, p[\"length\"])\n .close()\n .revolve()\n )\n return result\n\n\nresult = build({k: v[\"default\"] for k, v in PARAMS.items()})\n"} diff --git a/50k/README.md b/50k/README.md new file mode 100644 index 0000000000000000000000000000000000000000..23cd2107f1c69f79ff87d24a52322a85cf803b32 --- /dev/null +++ b/50k/README.md @@ -0,0 +1,20 @@ +# CadQuarry — `50k` (50,000 parts) + +Generator: **CadQuarry v0.1.0** · Seed: **770077** · Rows: **50,000** +License: **CC0-1.0** (data) · Generator code: **Apache-2.0** + +Regenerate this exact corpus from the [generator](https://github.com/jacobjennings/CadQuarry): + +```bash +cadquarry generate --seed 770077 --count 50000 \ + --config configs/default.toml --out 50k/ +python scripts/publish_to_hf.py --sizes 50k # pack + upload +``` + +`corpus.jsonl` has one row per part with the parametric `source` and `params` +inlined. Load it with: + +```python +from datasets import load_dataset +ds = load_dataset("jacobjennings/cadquarry", "50k", split="train") +``` diff --git a/50k/corpus-full.parquet b/50k/corpus-full.parquet new file mode 100644 index 0000000000000000000000000000000000000000..01b8259800598fbab32e4f44ccd19fb89f102bd2 --- /dev/null +++ b/50k/corpus-full.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3cd3fde9b446d70daf3774e3489b6f79d402dcdf094b5755a6b48d02c97753a4 +size 28091287475 diff --git a/50k/corpus-geo.parquet b/50k/corpus-geo.parquet new file mode 100644 index 0000000000000000000000000000000000000000..ae91f4f5c21d8fb5283e5d81c3989c6a28093a36 --- /dev/null +++ b/50k/corpus-geo.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:832ae303b90af412c2116262bacda4f57a2389b80f675735c9a2a1c10b49dbe1 +size 24427228544 diff --git a/50k/corpus-renders.parquet b/50k/corpus-renders.parquet new file mode 100644 index 0000000000000000000000000000000000000000..13c99e57f13b7cd106a842979d74a6ffbd2f4b9a --- /dev/null +++ b/50k/corpus-renders.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d1aed8f413a8df60e64b46d54a37a813c4b4c0d1543e8bb0056aee6dbc5295b +size 19139711543 diff --git a/50k/corpus-step.parquet b/50k/corpus-step.parquet new file mode 100644 index 0000000000000000000000000000000000000000..e06d816fb2425189f2a188216bf764d26a1a4589 --- /dev/null +++ b/50k/corpus-step.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb3b9972122ef26fbc54c30ae87f4361c326293f71c1aa03cb451271798b1d38 +size 3687664897 diff --git a/50k/corpus-stl.parquet b/50k/corpus-stl.parquet new file mode 100644 index 0000000000000000000000000000000000000000..17f98d1b4fa1dc6fa4e1b93c78c4ce74fd8fdfea --- /dev/null +++ b/50k/corpus-stl.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bbacc4df5d51c17fae274e1df9ed9a289f22077953f020dc91dac02b4a6e0b5a +size 5311122968 diff --git a/50k/corpus.jsonl b/50k/corpus.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..51d1ed51d9c9b41d03a1d3484111379b21b7427d --- /dev/null +++ b/50k/corpus.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3bc8fef28779d8d51f0b54a4a29f26f7e95253edd2cdc361026cab7362cdfbb0 +size 139697050 diff --git a/50k/tier0-2/corpus-full.parquet b/50k/tier0-2/corpus-full.parquet new file mode 100644 index 0000000000000000000000000000000000000000..a8f2226f4c9b4e903ab5ff0ce9eda2a7a130ffb3 --- /dev/null +++ b/50k/tier0-2/corpus-full.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dbd21be0531e480dbd7c9f4d978ac68dd29397d26a4c30407124db47cd731df7 +size 25129639341 diff --git a/50k/tier0-2/corpus-geo.parquet b/50k/tier0-2/corpus-geo.parquet new file mode 100644 index 0000000000000000000000000000000000000000..6bb48178486fbabfae9d912b36d70669cbf70589 --- /dev/null +++ b/50k/tier0-2/corpus-geo.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d95b9bd20b4c7d648201a907534ac3c4e50123fb730bbc3be68a5f45861b6898 +size 21953045444 diff --git a/50k/tier0-2/corpus-renders.parquet b/50k/tier0-2/corpus-renders.parquet new file mode 100644 index 0000000000000000000000000000000000000000..8f5192ba4abf2183deb142050264ae7815a7c052 --- /dev/null +++ b/50k/tier0-2/corpus-renders.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf627ea3ca7e7f4760151e5e283c501f29fa5a9683e3ba911e8a0131382eaf92 +size 17308252416 diff --git a/50k/tier0-2/corpus-step.parquet b/50k/tier0-2/corpus-step.parquet new file mode 100644 index 0000000000000000000000000000000000000000..ce7f717665d4ad27d5e3494e85d3848c94473c33 --- /dev/null +++ b/50k/tier0-2/corpus-step.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d64d5236fbcfb9cc6413163c60ca6d2b7a6969bd6fb8dd3ef8d36b2e9676c976 +size 3197253623 diff --git a/50k/tier0-2/corpus-stl.parquet b/50k/tier0-2/corpus-stl.parquet new file mode 100644 index 0000000000000000000000000000000000000000..21439e41feede014d5e17cd061bfda12e996841c --- /dev/null +++ b/50k/tier0-2/corpus-stl.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b8b10e65807ad1bdf589ff736eb661666776a67b1913dd8e3bd58be780adc7ad +size 4665452755 diff --git a/50k/tier0-2/corpus.jsonl b/50k/tier0-2/corpus.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..31645b29efb4d5a8575b081ba77c7ce562a29cca --- /dev/null +++ b/50k/tier0-2/corpus.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0ba041d5a34421ffe72e2e7b850622069081c8f08bf53de0fb4773b799f2470b +size 123104188 diff --git a/5k/README.md b/5k/README.md new file mode 100644 index 0000000000000000000000000000000000000000..78f8b6ff88c277ea8697d5b69100f04e252221c2 --- /dev/null +++ b/5k/README.md @@ -0,0 +1,20 @@ +# CadQuarry — `5k` (5,000 parts) + +Generator: **CadQuarry v0.1.0** · Seed: **50500** · Rows: **5,000** +License: **CC0-1.0** (data) · Generator code: **Apache-2.0** + +Regenerate this exact corpus from the [generator](https://github.com/jacobjennings/CadQuarry): + +```bash +cadquarry generate --seed 50500 --count 5000 \ + --config configs/default.toml --out 5k/ +python scripts/publish_to_hf.py --sizes 5k # pack + upload +``` + +`corpus.jsonl` has one row per part with the parametric `source` and `params` +inlined. Load it with: + +```python +from datasets import load_dataset +ds = load_dataset("jacobjennings/cadquarry", "5k", split="train") +``` diff --git a/5k/corpus-full.parquet b/5k/corpus-full.parquet new file mode 100644 index 0000000000000000000000000000000000000000..6bacab43ff6df515764ca8bd259e9bef937db913 --- /dev/null +++ b/5k/corpus-full.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:34a016a623050da2e16897aad448d5686aca2592feb3baa448fd2b69d7916459 +size 2939068219 diff --git a/5k/corpus-geo.parquet b/5k/corpus-geo.parquet new file mode 100644 index 0000000000000000000000000000000000000000..c31a024c43827ed44a9999c3145dae7399d33050 --- /dev/null +++ b/5k/corpus-geo.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:daf10931e6510b8bb4e65b52c0962afa7f3d5514f668bfe2cb0c938e0effb677 +size 2501883311 diff --git a/5k/corpus-renders.parquet b/5k/corpus-renders.parquet new file mode 100644 index 0000000000000000000000000000000000000000..f859bd2a8a2f2d53e587340ae8e9a868c3bf3c10 --- /dev/null +++ b/5k/corpus-renders.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8b10a27a571abc2e944c18e38107e309f66cf7dfac3964bf9c57752ce31c13cf +size 1923487108 diff --git a/5k/corpus-step.parquet b/5k/corpus-step.parquet new file mode 100644 index 0000000000000000000000000000000000000000..41eb3cf08dacf6f52030938f1b6dc99627af59ea --- /dev/null +++ b/5k/corpus-step.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c9563b4fa0ba41f0d82dc19c0f106ce9a5d89b329c1db3cd7eed0fc3f477bbc6 +size 439551241 diff --git a/5k/corpus-stl.parquet b/5k/corpus-stl.parquet new file mode 100644 index 0000000000000000000000000000000000000000..61ee2c50471b372ef037c02c5859d260fd859e14 --- /dev/null +++ b/5k/corpus-stl.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7bd84db32d4336c759b2cbc1fa7e21a4ad7172258724b7bf38c6eecc9e95d149 +size 580762536 diff --git a/5k/corpus.jsonl b/5k/corpus.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..11e9e76a72e00e03a87aef356f5d517cc4ba1f52 --- /dev/null +++ b/5k/corpus.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:729e31550a9ee4c28f649ca1c748ffab1d2a8540abb5b4bf0667eedec7c027e4 +size 13960086 diff --git a/5k/tier0-2/corpus-full.parquet b/5k/tier0-2/corpus-full.parquet new file mode 100644 index 0000000000000000000000000000000000000000..fd72d22d50f39d3a57b85b62e98ee19924269943 --- /dev/null +++ b/5k/tier0-2/corpus-full.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:48d08cb1c2605e1606ae70ea824a0acf0a127928a05d02fe945737087a980266 +size 2652840952 diff --git a/5k/tier0-2/corpus-geo.parquet b/5k/tier0-2/corpus-geo.parquet new file mode 100644 index 0000000000000000000000000000000000000000..9118e2c6809c27434f3a3b542c4816f5136a3a02 --- /dev/null +++ b/5k/tier0-2/corpus-geo.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:128e4c936f629ac4c6918ada6710a050d767ca85ca07e4e39a838f635b4e7255 +size 2260011975 diff --git a/5k/tier0-2/corpus-renders.parquet b/5k/tier0-2/corpus-renders.parquet new file mode 100644 index 0000000000000000000000000000000000000000..957c31bbbdc293d9dc8c109916fb4089534fbad2 --- /dev/null +++ b/5k/tier0-2/corpus-renders.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c7bdb55d8ff2b280c5c87b55c3d25cdb70b4357e07f2248bc18053fd6e1765a8 +size 1744959917 diff --git a/5k/tier0-2/corpus-step.parquet b/5k/tier0-2/corpus-step.parquet new file mode 100644 index 0000000000000000000000000000000000000000..6acb7851c81ed3306fadf073780ef764fb260ad0 --- /dev/null +++ b/5k/tier0-2/corpus-step.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c7ae788536dd210f047476c11c1cf233eeab9ab6bb179ee3a224ac207cea50f +size 394914147 diff --git a/5k/tier0-2/corpus-stl.parquet b/5k/tier0-2/corpus-stl.parquet new file mode 100644 index 0000000000000000000000000000000000000000..4debdce559a5eba638f3648cddc0523c554a19a9 --- /dev/null +++ b/5k/tier0-2/corpus-stl.parquet @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e85c7e57280bbb41216ad2188a5d81698775f7ace1f518c9c59c90d7206f26d1 +size 517137228 diff --git a/5k/tier0-2/corpus.jsonl b/5k/tier0-2/corpus.jsonl new file mode 100644 index 0000000000000000000000000000000000000000..3313a8a76036a83bcdd4d9d0a28f9281a5c745eb --- /dev/null +++ b/5k/tier0-2/corpus.jsonl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:382f55749706c29d7826646698ea5512131e102a9746bc4cb0ded2d5e1b708de +size 12338025